diff options
author | Paul Mundt <lethal@linux-sh.org> | 2011-01-11 00:39:35 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-01-11 00:39:35 -0500 |
commit | c81fc389255d287dbfb17a70cd172663f962341a (patch) | |
tree | 0ae533f6c2163c4fb0013e58cb47d71b3c50f9d9 /arch | |
parent | 89e9fd32c6f4ed58cd6f6e3c3cf5b536a3f36100 (diff) |
sh: constify prefetch pointers.
prefetch()/prefetchw() are supposed to take a const void * instead of a
straight void *, which the build recently started complaining about, fix
them up.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/include/asm/processor_32.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/sh/include/asm/processor_32.h b/arch/sh/include/asm/processor_32.h index e3c73cdd8c90..900f8d72ffe2 100644 --- a/arch/sh/include/asm/processor_32.h +++ b/arch/sh/include/asm/processor_32.h | |||
@@ -194,15 +194,17 @@ extern unsigned long get_wchan(struct task_struct *p); | |||
194 | #define KSTK_ESP(tsk) (task_pt_regs(tsk)->regs[15]) | 194 | #define KSTK_ESP(tsk) (task_pt_regs(tsk)->regs[15]) |
195 | 195 | ||
196 | #if defined(CONFIG_CPU_SH2A) || defined(CONFIG_CPU_SH4) | 196 | #if defined(CONFIG_CPU_SH2A) || defined(CONFIG_CPU_SH4) |
197 | |||
197 | #define PREFETCH_STRIDE L1_CACHE_BYTES | 198 | #define PREFETCH_STRIDE L1_CACHE_BYTES |
198 | #define ARCH_HAS_PREFETCH | 199 | #define ARCH_HAS_PREFETCH |
199 | #define ARCH_HAS_PREFETCHW | 200 | #define ARCH_HAS_PREFETCHW |
200 | static inline void prefetch(void *x) | 201 | |
202 | static inline void prefetch(const void *x) | ||
201 | { | 203 | { |
202 | __builtin_prefetch(x, 0, 3); | 204 | __builtin_prefetch(x, 0, 3); |
203 | } | 205 | } |
204 | 206 | ||
205 | static inline void prefetchw(void *x) | 207 | static inline void prefetchw(const void *x) |
206 | { | 208 | { |
207 | __builtin_prefetch(x, 1, 3); | 209 | __builtin_prefetch(x, 1, 3); |
208 | } | 210 | } |