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);
In message <20020613035339.GA3950@cartman> you write:
> 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.
Please simply backport the declaration from 2.5: it gets the function
type correct.
Thanks,
Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
On Thu, 13 Jun 2002, Rusty Russell wrote:
> In message <20020613035339.GA3950@cartman> you write:
> > 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.
>
> Please simply backport the declaration from 2.5: it gets the function
> type correct.
So that becomes:
--- linux-2.4.19-rc1/fs/namespace.c Fri Apr 5 12:08:18 2002
+++ linux-geert-2.4.19-rc1/fs/namespace.c Fri Jun 28 17:21:23 2002
@@ -24,6 +24,7 @@
struct vfsmount *do_kern_mount(const char *type, int flags, char *name, void *data);
int do_remount_sb(struct super_block *sb, int flags, void * data);
void kill_super(struct super_block *sb);
+extern int __init init_rootfs(void);
static struct list_head *mount_hashtable;
static int hash_mask, hash_bits;
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds