mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Move struct mm_struct forward-declaration in proc_fs,h
@ 2008-06-10  3:26 Ben Nizette
  0 siblings, 0 replies; only message in thread
From: Ben Nizette @ 2008-06-10  3:26 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

Move the forward-declaration of struct mm_struct a little way up
proc_fs.h.  This fixes a bunch of "'struct mm_struct' declared inside
parameter list" warnings with CONFIG_PROC_FS=n

Signed-off-by: Ben Nizette <bn@niasdigital.com>

---
diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h
index 9883bc9..fff1d27 100644
--- a/include/linux/proc_fs.h
+++ b/include/linux/proc_fs.h
@@ -9,6 +9,8 @@
 
 struct net;
 struct completion;
+struct mm_struct;
+
 /*
  * The proc filesystem constants/structures
  */
@@ -101,8 +103,6 @@ extern spinlock_t proc_subdir_lock;
 extern void proc_root_init(void);
 extern void proc_misc_init(void);
 
-struct mm_struct;
-
 void proc_flush_task(struct task_struct *task);
 struct dentry *proc_pid_lookup(struct inode *dir, struct dentry * dentry, struct nameidata *);
 int proc_pid_readdir(struct file * filp, void * dirent, filldir_t filldir);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-06-10  3:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-10  3:26 [PATCH] Move struct mm_struct forward-declaration in proc_fs,h Ben Nizette

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®