All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [TRIVIAL] namespace.c - compiler warning
@ 2002-06-13  3:53 kuebelr
  2002-06-13  5:24 ` Rusty Russell
  0 siblings, 1 reply; 3+ messages in thread
From: kuebelr @ 2002-06-13  3:53 UTC (permalink / raw)
  To: trivial; +Cc: linux-kernel

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);

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] [TRIVIAL] namespace.c - compiler warning
  2002-06-13  3:53 [PATCH] [TRIVIAL] namespace.c - compiler warning kuebelr
@ 2002-06-13  5:24 ` Rusty Russell
  2002-07-01 15:20   ` Geert Uytterhoeven
  0 siblings, 1 reply; 3+ messages in thread
From: Rusty Russell @ 2002-06-13  5:24 UTC (permalink / raw)
  To: kuebelr; +Cc: linux-kernel

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] [TRIVIAL] namespace.c - compiler warning
  2002-06-13  5:24 ` Rusty Russell
@ 2002-07-01 15:20   ` Geert Uytterhoeven
  0 siblings, 0 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2002-07-01 15:20 UTC (permalink / raw)
  To: Marcelo Tosatti, Rusty Russell; +Cc: kuebelr, Linux Kernel Development

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-07-01 15:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-13  3:53 [PATCH] [TRIVIAL] namespace.c - compiler warning kuebelr
2002-06-13  5:24 ` Rusty Russell
2002-07-01 15:20   ` Geert Uytterhoeven

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.