Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] m68knommu: change addr arg to const in bitops.h/find_next_zero_bit()

Change addr arg to find_next_zero_bit to be a const.
Cleans up compiler warning.

Signed-off-by: Greg Ungerer <gerg@uclinux.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Greg Ungerer and committed by
Linus Torvalds
9c1ee938 df28f34b

+1 -1
+1 -1
include/asm-m68knommu/bitops.h
··· 259 259 #define find_first_bit(addr, size) \ 260 260 find_next_bit((addr), (size), 0) 261 261 262 - static __inline__ int find_next_zero_bit (void * addr, int size, int offset) 262 + static __inline__ int find_next_zero_bit (const void * addr, int size, int offset) 263 263 { 264 264 unsigned long *p = ((unsigned long *) addr) + (offset >> 5); 265 265 unsigned long result = offset & ~31UL;