* [PATCH] sh64: mm: use 'unsigned long' instead of 'unsigned long long'
@ 2013-07-30 2:40 Chen Gang
0 siblings, 0 replies; only message in thread
From: Chen Gang @ 2013-07-30 2:40 UTC (permalink / raw)
To: linux-sh
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 <gang.chen@asianux.com>
---
arch/sh/mm/cache-sh5.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/sh/mm/cache-sh5.c b/arch/sh/mm/cache-sh5.c
index d1bffbc..1da2900 100644
--- a/arch/sh/mm/cache-sh5.c
+++ b/arch/sh/mm/cache-sh5.c
@@ -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);
/*
--
1.7.7.6
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-07-30 2:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-30 2:40 [PATCH] sh64: mm: use 'unsigned long' instead of 'unsigned long long' Chen Gang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.