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-20110826~3^2~188 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d1dcc86bfc6c3f00c02add11670f7c561df5e216;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 79b6ed916223..6075260f696b 100644 --- a/kernel/sys.c +++ b/kernel/sys.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include