netlink: use <linux/export.h> instead of <linux/module.h>
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 21 Sep 2012 09:35:38 +0000 (09:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Sep 2012 19:43:58 +0000 (15:43 -0400)
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.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netlink.h

index 73ade5fbc8563eab3c584fa84f963dff4aceafab..b3dc992fb25b833f12a76a94e9ff0f639885c613 100644 (file)
@@ -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;