Make fat compile again

Russell King (rmk@arm.linux.org.uk)
Tue, 12 Jun 2001 21:49:15 +0100


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)

diff -urN orig/fs/fat/inode.c linux/fs/fat/inode.c
--- orig/fs/fat/inode.c Thu May 24 18:36:34 2001
+++ linux/fs/fat/inode.c Tue Jun 12 10:44:35 2001
@@ -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 (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/