]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kernel: sys.c implicitly relies on kmod.h for usermodehelper
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 27 May 2011 00:59:13 +0000 (20:59 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 25 Aug 2011 17:54:31 +0000 (13:54 -0400)
In preparation to clean up the pervasive module.h usage which
in turn brings in every header possible, testing reveals that
this file gets the usermodehelper functions via that path.

Explicitly include kmod.h so that we don't things like:

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/sys.c

index 79b6ed916223b32242c9df5c4aad78fe9966f3da..6075260f696b0b322d332c8b5d634c27a82d0268 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>