X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-m68k%2Fbitops.h;h=83d1f286230b6da68492a6b64fedaaaad8e5746e;hb=161fb0cf5c7e94cd0490e4bd04edcf1e24d1d288;hp=da151f70cdc6389a245590245863029129e12075;hpb=a57793651ff1a09ef18bade998632435ca2dc13f;p=linux-2.6 diff --git a/include/asm-m68k/bitops.h b/include/asm-m68k/bitops.h index da151f70cd..83d1f28623 100644 --- a/include/asm-m68k/bitops.h +++ b/include/asm-m68k/bitops.h @@ -8,6 +8,10 @@ * for more details. */ +#ifndef _LINUX_BITOPS_H +#error only can be included directly +#endif + #include /* @@ -406,6 +410,8 @@ static inline int ext2_find_next_zero_bit(const void *vaddr, unsigned size, res = ext2_find_first_zero_bit (p, size - 32 * (p - addr)); return (p - addr) * 32 + res; } +#define ext2_find_next_bit(addr, size, off) \ + generic_find_next_le_bit((unsigned long *)(addr), (size), (off)) #endif /* __KERNEL__ */