X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-m68k%2Fbitops.h;h=83d1f286230b6da68492a6b64fedaaaad8e5746e;hb=13c48c490208d9e70d8d66d56f96c5054db69af7;hp=1a61fdb56aaf671dc82e669d009d6fb6f3e64324;hpb=d4965b3e2ff94d0c7b7e6e7e9794b54950a2f4b9;p=linux-2.6 diff --git a/include/asm-m68k/bitops.h b/include/asm-m68k/bitops.h index 1a61fdb56a..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 /* @@ -314,6 +318,7 @@ static inline int fls(int x) #include #include #include +#include /* Bitmap functions for the minix filesystem */ @@ -405,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__ */