Skip to contentSkip to conversation

fs/proc/kmsg.c should #include <linux/proc_fs.h>

PATCH In review Adrian Bunk 2 participants 2 messages Feb 17, 2008 Proc filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs/proc/kmsg.c should #include <linux/proc_fs.h>

Every file should include the headers containing the externs its global code (in this case for struct proc_kmsg_operations).

---
b6f818ea9e2dd76d3fd7dbec2382240cabe66a6b diff --git a/fs/proc/kmsg.c b/fs/proc/kmsg.c index ff3b90b..9fa3a3d 100644

fs/proc/kmsg.c +1 -0
@@ -11,6 +11,7 @@
 #include <linux/kernel.h>
 #include <linux/poll.h>
 #include <linux/fs.h>
+#include <linux/proc_fs.h>
 
 #include <asm/uaccess.h>
 #include <asm/io.h>
#1 lore raw
Quoted 2 lines · Adrian Bunk

Every file should include the headers containing the externs its global code (in this case for struct proc_kmsg_operations).

It should be moved to fs/proc/internal.h to where it belongs.

Quoted 7 lines
fs/proc/kmsg.c +1 -0
@@ -11,6 +11,7 @@
 #include <linux/kernel.h>
 #include <linux/poll.h>
 #include <linux/fs.h>
+#include <linux/proc_fs.h>