Hi,

This patch removes the following warning of find_next_zero_bit() for m32r. 
Please apply.

---
$ make ARCH=m32r CROSS_COMPILE=m32r-linux- 
   :
  LDS     arch/m32r/kernel/vmlinux.lds
  CC      arch/m32r/mm/init.o
In file included from 
/project/m32r-linux/kernel/linux-2.6.11-rc4-bk4/b/arch/m32r/mm/init.c:20:
/project/m32r-linux/kernel/linux-2.6.11-rc4-bk4/b/include/linux/nodemask.h: In 
function `__first_unset_node':
/project/m32r-linux/kernel/linux-2.6.11-rc4-bk4/b/include/linux/nodemask.h:246: 
warning: passing arg 1 of `find_next_zero_bit' discards qualifiers from pointer 
target type
  CC      arch/m32r/mm/fault.o
  AS      arch/m32r/mm/mmu.o
   :
---

Thanks,

Signed-off-by: Hirokazu Takata <[EMAIL PROTECTED]>
---

 include/asm-m32r/bitops.h |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff -ruNp a/include/asm-m32r/bitops.h b/include/asm-m32r/bitops.h
--- a/include/asm-m32r/bitops.h 2005-02-16 20:58:08.000000000 +0900
+++ b/include/asm-m32r/bitops.h 2005-02-17 09:57:15.000000000 +0900
@@ -405,9 +405,10 @@ static __inline__ unsigned long ffz(unsi
  * @offset: The bitnumber to start searching at
  * @size: The maximum size to search
  */
-static __inline__ int find_next_zero_bit(void *addr, int size, int offset)
+static __inline__ int find_next_zero_bit(const unsigned long *addr,
+                                        int size, int offset)
 {
-       unsigned long *p = ((unsigned long *) addr) + (offset >> 5);
+       const unsigned long *p = addr + (offset >> 5);
        unsigned long result = offset & ~31UL;
        unsigned long tmp;
 

--
Hirokazu Takata <[EMAIL PROTECTED]>
Linux/M32R Project:  http://www.linux-m32r.org/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to