]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] include/asm-*/bitops.h: fix more "~0UL >> size" typos
authorAlexey Dobriyan <adobriyan@gmail.com>
Fri, 3 Feb 2006 11:03:54 +0000 (03:03 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 3 Feb 2006 16:32:02 +0000 (08:32 -0800)
"[PATCH] m68knommu: fix find_next_zero_bit in bitops.h" fixed a typo in
m68knommu implementation of find_next_zero_bit().

grep(1) shows that cris, frv, h8300, v850 are also affected.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Mikael Starvik <starvik@axis.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Miles Bader <uclinux-v850@lsi.nec.co.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-cris/bitops.h
include/asm-frv/bitops.h
include/asm-h8300/bitops.h
include/asm-v850/bitops.h

index d3eb0f1e42085c7911aaa6f5d4303d38a78cd022..b7fef1572dc0f52d34ad9efa7eae87faf3ac684a 100644 (file)
@@ -290,7 +290,7 @@ static inline int find_next_zero_bit (const unsigned long * addr, int size, int
        tmp = *p;
        
  found_first:
-       tmp |= ~0UL >> size;
+       tmp |= ~0UL << size;
  found_middle:
        return result + ffz(tmp);
 }
index 02be7b3a8a83fd3fcd652472a4b3848c45cbd255..f686b519878ed34ed5f557d1e40014f869116e53 100644 (file)
@@ -209,7 +209,7 @@ static inline int find_next_zero_bit(const void *addr, int size, int offset)
        tmp = *p;
 
 found_first:
-       tmp |= ~0UL >> size;
+       tmp |= ~0UL << size;
 found_middle:
        return result + ffz(tmp);
 }
index c0411ec9d651785200e64d45734983db17d2fcbc..ff7c2b7215946a37fc8fc11eb9c2f29750d1f963 100644 (file)
@@ -227,7 +227,7 @@ static __inline__ int find_next_zero_bit (const unsigned long * addr, int size,
        tmp = *p;
 
 found_first:
-       tmp |= ~0UL >> size;
+       tmp |= ~0UL << size;
 found_middle:
        return result + ffz(tmp);
 }
index 8955d2376ac824e5e3a7bd3e97459b442f206cf7..609b9e87222a41c3594014e4f585d6a88333af79 100644 (file)
@@ -188,7 +188,7 @@ static inline int find_next_zero_bit(const void *addr, int size, int offset)
        tmp = *p;
 
  found_first:
-       tmp |= ~0UL >> size;
+       tmp |= ~0UL << size;
  found_middle:
        return result + ffz (tmp);
 }