Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b05d1865b46ea72c66ba082598ba370582bb590e
Commit:     b05d1865b46ea72c66ba082598ba370582bb590e
Parent:     2d009328db0951d5eec77a5fe0df3c3e64b35851
Author:     Paul Mundt <[EMAIL PROTECTED]>
AuthorDate: Tue Aug 21 12:25:09 2007 +0900
Committer:  Paul Mundt <[EMAIL PROTECTED]>
CommitDate: Fri Sep 21 11:57:51 2007 +0900

    sh: Kill off volatile silliness in sq_flush_range().
    
      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 <[EMAIL PROTECTED]>
---
 arch/sh/kernel/cpu/sh4/sq.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/sh/kernel/cpu/sh4/sq.c b/arch/sh/kernel/cpu/sh4/sq.c
index c21512c..b22a78c 100644
--- a/arch/sh/kernel/cpu/sh4/sq.c
+++ b/arch/sh/kernel/cpu/sh4/sq.c
@@ -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();
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to