]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Don't #ifdef prototypes
authorRussell King <rmk@arm.linux.org.uk>
Thu, 4 Sep 2003 02:43:03 +0000 (19:43 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Thu, 4 Sep 2003 02:43:03 +0000 (19:43 -0700)
It seems that changing CONFIG_BLK_DEV_INITRD causes the whole kernel to
rebuild due to an inappropriate ifdef in linux/fs.h - we should not
conditionalise prototypes.

In addition, real_root_dev is only used by two files (kernel/sysctl.c
and init/do_mounts_initrd.c) so it makes even less sense that it was in
linux/fs.h

include/linux/fs.h
include/linux/initrd.h
kernel/sysctl.c

index 936f34c469dd37692df75736c286253cb774f7ae..87ae270bf96c78305bafb2ff71ab0a7ab4009bd8 100644 (file)
@@ -1391,10 +1391,6 @@ extern int simple_fill_super(struct super_block *, int, struct tree_descr *);
 extern int simple_pin_fs(char *name, struct vfsmount **mount, int *count);
 extern void simple_release_fs(struct vfsmount **mount, int *count);
 
-#ifdef CONFIG_BLK_DEV_INITRD
-extern unsigned int real_root_dev;
-#endif
-
 extern int inode_change_ok(struct inode *, struct iattr *);
 extern int inode_setattr(struct inode *, struct iattr *);
 
index 32452d53dac3a858177ad2509d291e346f51d694..55289d261b4faffd928039bc997bc2780705c182 100644 (file)
@@ -16,3 +16,5 @@ extern int initrd_below_start_ok;
 /* free_initrd_mem always gets called with the next two as arguments.. */
 extern unsigned long initrd_start, initrd_end;
 extern void free_initrd_mem(unsigned long, unsigned long);
+
+extern unsigned int real_root_dev;
index 142ccfcf835b923ce5b25452b0c20d6893ba5566..3180fa00d248a1c1ee81e4068adc68b5d15403b9 100644 (file)
@@ -35,6 +35,7 @@
 #include <linux/writeback.h>
 #include <linux/hugetlb.h>
 #include <linux/security.h>
+#include <linux/initrd.h>
 #include <asm/uaccess.h>
 
 #ifdef CONFIG_ROOT_NFS