Skip to content

Commit 83680cd

Browse files
geertutorvalds
authored andcommitted
drivers/input/ff-core.c needs <linux/sched.h>
Commit 656acd2 ("Input: fix locking in force-feedback core") causes the following regression on m68k: | linux/drivers/input/ff-core.c: In function 'input_ff_upload': | linux/drivers/input/ff-core.c:172: error: dereferencing pointer to incomplete type | linux/drivers/input/ff-core.c: In function 'erase_effect': | linux/drivers/input/ff-core.c:197: error: dereferencing pointer to incomplete type | linux/drivers/input/ff-core.c:204: error: dereferencing pointer to incomplete type | make[4]: *** [drivers/input/ff-core.o] Error 1 As the incomplete type is `struct task_struct', including <linux/sched.h> fixes it. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent e1441b9 commit 83680cd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/input/ff-core.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <linux/input.h>
2929
#include <linux/module.h>
3030
#include <linux/mutex.h>
31+
#include <linux/sched.h>
3132

3233
/*
3334
* Check that the effect_id is a valid effect and whether the user

0 commit comments

Comments
 (0)