Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+4 -2
+4 -2
arch/sh/include/asm/processor_32.h
··· 194 194 #define KSTK_ESP(tsk) (task_pt_regs(tsk)->regs[15]) 195 195 196 196 #if defined(CONFIG_CPU_SH2A) || defined(CONFIG_CPU_SH4) 197 + 197 198 #define PREFETCH_STRIDE L1_CACHE_BYTES 198 199 #define ARCH_HAS_PREFETCH 199 200 #define ARCH_HAS_PREFETCHW 200 - static inline void prefetch(void *x) 201 + 202 + static inline void prefetch(const void *x) 201 203 { 202 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 209 __builtin_prefetch(x, 1, 3); 208 210 }