瀏覽代碼

selinux: Add export.h to files using EXPORT_SYMBOL/THIS_MODULE

The pervasive, but implicit presence of <linux/module.h> meant
that things like this file would happily compile as-is.  But
with the desire to phase out the module.h being included everywhere,
point this file at export.h which will give it THIS_MODULE and
the EXPORT_SYMBOL variants.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Paul Gortmaker 14 年之前
父節點
當前提交
44fc7ea0bf
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      security/selinux/hooks.c
  2. 1 0
      security/selinux/netlink.c

+ 1 - 0
security/selinux/hooks.c

@@ -80,6 +80,7 @@
 #include <linux/posix-timers.h>
 #include <linux/posix-timers.h>
 #include <linux/syslog.h>
 #include <linux/syslog.h>
 #include <linux/user_namespace.h>
 #include <linux/user_namespace.h>
+#include <linux/export.h>
 
 
 #include "avc.h"
 #include "avc.h"
 #include "objsec.h"
 #include "objsec.h"

+ 1 - 0
security/selinux/netlink.c

@@ -14,6 +14,7 @@
 #include <linux/slab.h>
 #include <linux/slab.h>
 #include <linux/stddef.h>
 #include <linux/stddef.h>
 #include <linux/kernel.h>
 #include <linux/kernel.h>
+#include <linux/export.h>
 #include <linux/skbuff.h>
 #include <linux/skbuff.h>
 #include <linux/netlink.h>
 #include <linux/netlink.h>
 #include <linux/selinux_netlink.h>
 #include <linux/selinux_netlink.h>