Skip to contentSkip to conversation

netlink: use <linux/export.h> instead of <linux/module.h>

PATCH Applied [email protected] 2 participants 2 messages Sep 21, 2012

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

PATCH 1/1 netlink: use <linux/export.h> instead of <linux/module.h>

From: Pablo Neira Ayuso <[email protected]>

Since (9f00d97 netlink: hide struct module parameter in netlink_kernel_create), linux/netlink.h includes linux/module.h because of the use of THIS_MODULE.

Use linux/export.h instead, as suggested by Stephen Rothwell, which is significantly smaller and defines THIS_MODULES.

---
 include/linux/netlink.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/netlink.h +1 -1
index 73ade5f..b3dc992 100644
@@ -153,7 +153,7 @@ struct nlattr {
 
 #include <linux/capability.h>
 #include <linux/skbuff.h>
-#include <linux/module.h>
+#include <linux/export.h>
 #include <net/scm.h>
 
 struct net;
Signature · 1 line
1.7.10.4
maintainer Applied
#1 lore raw

From: [email protected]
Date: Fri, 21 Sep 2012 21:35:38 +0200

Quoted 9 lines

From: Pablo Neira Ayuso <[email protected]>

Since (9f00d97 netlink: hide struct module parameter in netlink_kernel_create), linux/netlink.h includes linux/module.h because of the use of THIS_MODULE.

Use linux/export.h instead, as suggested by Stephen Rothwell, which is significantly smaller and defines THIS_MODULES.

Applied, but please make explicit what tree you are targetting when you submit changes like this in the future.

Thanks.