From: Paul Gortmaker Date: Fri, 27 May 2011 00:59:13 +0000 (-0400) Subject: kernel: sys.c implicitly relies on kmod.h for usermodehelper X-Git-Tag: next-20110729~14^2~151 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9cb332f8bd3d5b3b41e155f51e935c482fe07de9;p=karo-tx-linux.git kernel: sys.c implicitly relies on kmod.h for usermodehelper 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 --- diff --git a/kernel/sys.c b/kernel/sys.c index 3666edaff565..7ca97fab6240 100644 --- a/kernel/sys.c +++ b/kernel/sys.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include