Skip to content

Commit

Permalink
sh: Kill off volatile silliness in sq_flush_range().
Browse files Browse the repository at this point in the history
  CC      arch/sh/kernel/cpu/sh4/sq.o
arch/sh/kernel/cpu/sh4/sq.c: In function 'sq_flush_range':
arch/sh/kernel/cpu/sh4/sq.c:65: warning: passing argument 1 of 'prefetch' discards qualifiers from pointer target type

This didn't actually need to be volatile in the first place, so just
kill off the qualifier entirely.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Sep 21, 2007
1 parent 2d00932 commit b05d186
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/sh/kernel/cpu/sh4/sq.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ do { \
*/
void sq_flush_range(unsigned long start, unsigned int len)
{
volatile unsigned long *sq = (unsigned long *)start;
unsigned long *sq = (unsigned long *)start;

/* Flush the queues */
for (len >>= 5; len--; sq += 8)
prefetchw((void *)sq);
prefetchw(sq);

/* Wait for completion */
store_queue_barrier();
Expand Down

0 comments on commit b05d186

Please sign in to comment.