Skip to content

Commit

Permalink
netlink: use <linux/export.h> instead of <linux/module.h>
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pablo Neira Ayuso authored and David S. Miller committed Sep 21, 2012
1 parent 0bfd607 commit abb17e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/netlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit abb17e6

Please sign in to comment.