Skip to contentSkip to conversation

Make fat compile again

PATCH Russell King 1 participant 1 message Jun 12, 2001 VFAT/FAT/msdos filesystem

lore
Share & tools
lore
#0 lore raw

The following makes fat/inode.c compile on ARM systems (and probably many others).

fat/inode.c uses ffs(), which is defined in asm/bitops.h. ARM uses generic_ffs() which is in turn defined in linux/bitopts.h. (linux/bitops.h includes asm/bitops.h)

fs/fat/inode.c +1 -0
diff -urN orig/fs/fat/inode.c linux/fs/fat/inode.c
@@ -21,6 +21,7 @@
 #include <linux/sched.h>
 #include <linux/errno.h>
 #include <linux/string.h>
+#include <linux/bitops.h>
 #include <linux/major.h>
 #include <linux/blkdev.h>
 #include <linux/fs.h>

--
Russell King ([email protected]) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html