Skip to contentSkip to conversation

proc_devtree: Replace include linux/module.h with linux/export.h

PATCH In review Syam Sidhardhan 1 participant 2 messages Nov 13, 2012 – Feb 14, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/3 proc_devtree: Replace include linux/module.h with linux/export.h

Since it uses only THIS_MODULE macro, include <linux/export.h> is the right to go here.

---
 fs/proc/proc_devtree.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/proc/proc_devtree.c +1 -1
index df7dd08..0e9df31 100644
@@ -11,7 +11,7 @@
 #include <linux/stat.h>
 #include <linux/string.h>
 #include <linux/of.h>
-#include <linux/module.h>
+#include <linux/export.h>
 #include <linux/slab.h>
 #include <asm/prom.h>
 #include <asm/uaccess.h>
Signature · 1 line
1.7.4.1
#1 lore raw

Hi,

Quoted 13 lines · Syam Sidhardhan

Since it uses only THIS_MODULE macro, include <linux/export.h> is the right to go here.

---
 fs/proc/proc_devtree.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/proc/proc_devtree.c +0 -0
index df7dd08..0e9df31 100644

fs/proc/proc_devtree.c line 17

Quoted 8 lines
fs/proc/proc_devtree.c +1 -1
@@ -11,7 +11,7 @@
 #include <linux/stat.h>
 #include <linux/string.h>
 #include <linux/of.h>
-#include <linux/module.h>
+#include <linux/export.h>
 #include <linux/slab.h>
 #include <asm/prom.h>
 #include <asm/uaccess.h>

ping..

Thanks,
Syam.