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

Geert Uytterhoeven (geert@linux-m68k.org)
Mon, 1 Jul 2002 17:20:06 +0200 (MEST)


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 -- geert@linux-m68k.org

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

- 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/