netlink: use <linux/export.h> instead of <linux/module.h>
Subsystems (2)
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
@@ -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
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.hincludeslinux/module.hbecause of the use ofTHIS_MODULE.Use
linux/export.hinstead, as suggested by Stephen Rothwell, which is significantly smaller and definesTHIS_MODULES.Signed-off-by Pablo Neira Ayuso <[email protected]>
Applied, but please make explicit what tree you are targetting when you submit changes like this in the future.
Thanks.