]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
kernel: fix several implicit usasges of kmod.h
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 26 May 2011 16:48:41 +0000 (12:48 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 31 Oct 2011 13:20:12 +0000 (09:20 -0400)
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>
kernel/power/suspend.c
kernel/power/user.c
kernel/sys.c

index fdd4263b995d4c1e15f26188b3dacf47d30dec08..31aae3219f89a5e06762b04035aa1b203806e3e8 100644 (file)
@@ -12,6 +12,7 @@
 #include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/init.h>
+#include <linux/kmod.h>
 #include <linux/console.h>
 #include <linux/cpu.h>
 #include <linux/syscalls.h>
index 42ddbc6f0de6ffcf2d245dd9c8ec253c2780ffab..6d8f535c2b88e11952b3871ecb88d8fa0378ab40 100644 (file)
@@ -12,6 +12,7 @@
 #include <linux/suspend.h>
 #include <linux/syscalls.h>
 #include <linux/reboot.h>
+#include <linux/kmod.h>
 #include <linux/string.h>
 #include <linux/device.h>
 #include <linux/miscdevice.h>
index 4a02862418299da24d75c1eb4b6213b99d269535..d2cb1cda823afcf5648beb4f878573cde9f42caf 100644 (file)
@@ -12,6 +12,7 @@
 #include <linux/prctl.h>
 #include <linux/highuid.h>
 #include <linux/fs.h>
+#include <linux/kmod.h>
 #include <linux/perf_event.h>
 #include <linux/resource.h>
 #include <linux/kernel.h>