[PATCH] [TRIVIAL] namespace.c - compiler warning

kuebelr@email.uc.edu
Wed, 12 Jun 2002 23:53:39 -0400


init_rootfs() (from ramfs) doesn't appear in any header file. I didn't
see any that looked like a good home, so lets put a prototype at the top
of fs/namespace.c. This only use of this function is in namespace.c.

Patch is agains 2.4.19-pre10.

Rob.

--- linux-clean/fs/namespace.c Fri Jun 7 23:42:07 2002
+++ linux-dirty/fs/namespace.c Wed Jun 12 23:48:02 2002
@@ -29,6 +29,8 @@
static int hash_mask, hash_bits;
static kmem_cache_t *mnt_cache;

+extern void init_rootfs(void);
+
static inline unsigned long hash(struct vfsmount *mnt, struct dentry *dentry)
{
unsigned long tmp = ((unsigned long) mnt / L1_CACHE_BYTES);
-
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/