diff options
author | 2014-12-05 12:34:54 +0000 | |
---|---|---|
committer | 2016-08-18 12:38:11 +0100 | |
commit | a93a4d62324123dcda383bdb4ab89151bbc0e499 (patch) | |
tree | 6b33d42b66ef7979d5388873d7dc36d6930e3d53 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | arm64: kernel: avoid literal load of virtual address with MMU off (diff) | |
download | linux-dev-a93a4d62324123dcda383bdb4ab89151bbc0e499.tar.xz linux-dev-a93a4d62324123dcda383bdb4ab89151bbc0e499.zip |
arm64: Fix shift warning in arch/arm64/mm/dump.c
When building with 48-bit VAs and 16K page configuration, it's possible
to get the following warning when building the arm64 page table dumping
code:
arch/arm64/mm/dump.c: In function ‘walk_pud’:
arch/arm64/mm/dump.c:274:102: warning: right shift count >= width of type [-Wshift-count-overflow]
This is because pud_offset(pgd, 0) performs a shift to the right by 36
while the value 0 has the type 'int' by default, therefore 32-bit.
This patch modifies all the p*_offset() uses in arch/arm64/mm/dump.c to
use 0UL for the address argument.
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions