Skip to contentSkip to conversation

char: nwbutton: Fix build breakage caused by include file reshuffling

PATCH New Guenter Roeck 2 participants 2 messages Mar 6, 2017 – Mar 7, 2017 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 char: nwbutton: Fix build breakage caused by include file reshuffling

Fix:

drivers/char/nwbutton.c: In function 'button_sequence_finished':
drivers/char/nwbutton.c:134:3: error:
implicit declaration of function 'kill_cad_pid'

The declaration has been moved from one include file to another.

Fixes c3edc4010e9d102 ("sched/headers: Move task_struct::signal and ...")
Cc Ingo Molnar <[email protected]>
---
 drivers/char/nwbutton.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/nwbutton.c +1 -1
index a5b1eb276c0b..e6d0d271c58c 100644
@@ -6,7 +6,7 @@
 
 #include <linux/module.h>
 #include <linux/kernel.h>
-#include <linux/sched.h>
+#include <linux/sched/signal.h>
 #include <linux/interrupt.h>
 #include <linux/time.h>
 #include <linux/timer.h>
Signature · 1 line
2.7.4
#1 lore raw

[tip:core/urgent] drivers/char/nwbutton: Fix build breakage caused by include file reshuffling

drivers/char/nwbutton: Fix build breakage caused by include file reshuffling
Commit-ID:  bb35e4515411396219431fa235bf21bf9c2794e9
Gitweb:     http://git.kernel.org/tip/bb35e4515411396219431fa235bf21bf9c2794e9
Author:     Guenter Roeck <[email protected]>
AuthorDate: Sun, 5 Mar 2017 17:13:31 -0800
Committer:  Ingo Molnar <[email protected]>
CommitDate: Tue, 7 Mar 2017 08:35:49 +0100

drivers/char/nwbutton: Fix build breakage caused by include file reshuffling

Fix:

drivers/char/nwbutton.c: In function 'button_sequence_finished':
drivers/char/nwbutton.c:134:3: error: implicit declaration of function 'kill_cad_pid'

The declaration has been moved from one include file to another.

Cc Arnd Bergmann <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Linus Torvalds <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Thomas Gleixner <[email protected]>
Fixes c3edc4010e9d102 ("sched/headers: Move task_struct::signal and ...")
---
 drivers/char/nwbutton.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/nwbutton.c +1 -1
index a5b1eb2..e6d0d27 100644
@@ -6,7 +6,7 @@
 
 #include <linux/module.h>
 #include <linux/kernel.h>
-#include <linux/sched.h>
+#include <linux/sched/signal.h>
 #include <linux/interrupt.h>
 #include <linux/time.h>
 #include <linux/timer.h>