sh64: mm: use 'unsigned long' instead of 'unsigned long long'
PATCH 1/1 sh64: mm: use 'unsigned long' instead of 'unsigned long long'
The address's type is 'unsigned long', so use 'unsigned long' instead of 'unsigned long long' (warning is treated as error).
The related error (with 'allmodconfig', without "EXTRA_CFLAGS=-W"):
CC arch/sh/mm/cache-sh5.o
arch/sh/mm/cache-sh5.c: In function ‘sh64_dcache_purge_sets’:
arch/sh/mm/cache-sh5.c:255:12: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
cc1: all warnings being treated as errors
Signed-off-by Chen Gang <[email protected]>
--- arch/sh/mm/cache-sh5.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/sh/mm/cache-sh5.c +1 -1
@@ -252,7 +252,7 @@ static void inline sh64_dcache_purge_sets(int sets_to_purge_base, int n_sets)for (j =0 ; j < n_sets; j++, set_offset++) { set_offset &= (cpu_data->dcache.sets -1 ); - eaddr0 = (unsigned long long )dummy_alloco_area + + eaddr0 = (unsigned long )dummy_alloco_area + (set_offset << cpu_data->dcache.entry_shift);/*
Signature · 1 line
1.7.7.6