Thread (11 messages) 11 messages, 8 authors, 2007-10-29

Re: [PATCH] proc_fs.h redux

From: Joe Perches <joe@perches.com>
Date: 2007-10-27 22:40:40
Also in: linux-arch, lkml

On Sat, 2007-10-27 at 23:47 +0400, Alexey Dobriyan wrote:
Remove proc_fs.h from headers that doesn't really need it.
quoted hunk ↗ jump to hunk
--- a/arch/powerpc/kernel/process.c
+++ b/arch/powerpc/kernel/process.c
@@ -17,6 +17,7 @@
 #include <linux/errno.h>
 #include <linux/sched.h>
 #include <linux/kernel.h>
+#include <linux/fs.h>
Your code doesn't match your patch description.

You've got new includes of:

<linux/fs.h>
<linux/proc_fs.h>
<linux/err.h>
<linux/kref.h>

and forward declarations of

struct proc_dir_entry;
struct file_operations;

As a general rule, I think it better to use includes
than use naked forward declarations.

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help