Commit 74da1ff71350f3638c51613085f89c0865d7fe08

Authored by Paul Gortmaker
1 parent 56d82e000c

kernel: fix several implicit usasges of kmod.h

These files were implicitly relying on <linux/kmod.h> coming in via
module.h, as without it we get things like:

kernel/power/suspend.c:100: error: implicit declaration of function ‘usermodehelper_disable’
kernel/power/suspend.c:109: error: implicit declaration of function ‘usermodehelper_enable’
kernel/power/user.c:254: error: implicit declaration of function ‘usermodehelper_disable’
kernel/power/user.c:261: error: implicit declaration of function ‘usermodehelper_enable’

kernel/sys.c:317: error: implicit declaration of function ‘usermodehelper_disable’
kernel/sys.c:1816: error: implicit declaration of function ‘call_usermodehelper_setup’
kernel/sys.c:1822: error: implicit declaration of function ‘call_usermodehelper_setfns’
kernel/sys.c:1824: error: implicit declaration of function ‘call_usermodehelper_exec’

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>

Showing 3 changed files with 3 additions and 0 deletions Side-by-side Diff

kernel/power/suspend.c
... ... @@ -12,6 +12,7 @@
12 12 #include <linux/delay.h>
13 13 #include <linux/errno.h>
14 14 #include <linux/init.h>
  15 +#include <linux/kmod.h>
15 16 #include <linux/console.h>
16 17 #include <linux/cpu.h>
17 18 #include <linux/syscalls.h>
... ... @@ -12,6 +12,7 @@
12 12 #include <linux/suspend.h>
13 13 #include <linux/syscalls.h>
14 14 #include <linux/reboot.h>
  15 +#include <linux/kmod.h>
15 16 #include <linux/string.h>
16 17 #include <linux/device.h>
17 18 #include <linux/miscdevice.h>
... ... @@ -12,6 +12,7 @@
12 12 #include <linux/prctl.h>
13 13 #include <linux/highuid.h>
14 14 #include <linux/fs.h>
  15 +#include <linux/kmod.h>
15 16 #include <linux/perf_event.h>
16 17 #include <linux/resource.h>
17 18 #include <linux/kernel.h>