Skip to content

Commit

Permalink
sh: constify prefetch pointers.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed Jan 11, 2011
1 parent 89e9fd3 commit c81fc38
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions arch/sh/include/asm/processor_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,15 +194,17 @@ extern unsigned long get_wchan(struct task_struct *p);
#define KSTK_ESP(tsk) (task_pt_regs(tsk)->regs[15])

#if defined(CONFIG_CPU_SH2A) || defined(CONFIG_CPU_SH4)

#define PREFETCH_STRIDE L1_CACHE_BYTES
#define ARCH_HAS_PREFETCH
#define ARCH_HAS_PREFETCHW
static inline void prefetch(void *x)

static inline void prefetch(const void *x)
{
__builtin_prefetch(x, 0, 3);
}

static inline void prefetchw(void *x)
static inline void prefetchw(const void *x)
{
__builtin_prefetch(x, 1, 3);
}
Expand Down

0 comments on commit c81fc38

Please sign in to comment.