]> git.baikalelectronics.ru Git - kernel.git/commitdiff
PNP: pnpbios: add header file to fix build errors
authorRandy Dunlap <rdunlap@infradead.org>
Tue, 26 Jul 2016 23:26:40 +0000 (16:26 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 27 Jul 2016 16:52:54 +0000 (18:52 +0200)
Fix build errors due to missing header file:

../drivers/pnp/pnpbios/core.c: In function 'pnp_dock_event':
../drivers/pnp/pnpbios/core.c:141:2: error: implicit declaration of function 'call_usermodehelper' [-Werror=implicit-function-declaration]
  value = call_usermodehelper(argv [0], argv, envp, UMH_WAIT_EXEC);
  ^
../drivers/pnp/pnpbios/core.c:141:52: error: 'UMH_WAIT_EXEC' undeclared (first use in this function)
  value = call_usermodehelper(argv [0], argv, envp, UMH_WAIT_EXEC);
                                                    ^
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pnp/pnpbios/core.c

index bedb361746a03d99cadcc3fcc620acd5f6907408..c38a5b9733c8f11b049edaf25a66445433e497f4 100644 (file)
@@ -60,6 +60,7 @@
 #include <linux/delay.h>
 #include <linux/acpi.h>
 #include <linux/freezer.h>
+#include <linux/kmod.h>
 #include <linux/kthread.h>
 
 #include <asm/page.h>