]> 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>
Wed, 27 Jul 2011 23:09:04 +0000 (19:09 -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 3666edaff565f51fe6e435aef96cb8f0aea81b1e..7ca97fab6240b42820a1ffec741117657548cf5e 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>