Skip to content

Commit 0acf611

Browse files
groeckPaul Gortmaker
authored andcommitted
score: Fix implicit includes now failing build after extable change
After changing from module.h to extable.h, score builds fail with: arch/score/kernel/traps.c: In function 'do_ri': arch/score/kernel/traps.c:248:4: error: implicit declaration of function 'user_disable_single_step' arch/score/mm/extable.c: In function 'fixup_exception': arch/score/mm/extable.c:32:38: error: dereferencing pointer to incomplete type arch/score/mm/extable.c:34:24: error: dereferencing pointer to incomplete type because extable.h doesn't drag in the same amount of headers as the module.h did. Add in the headers which were implicitly expected. Fixes: 9085879 ("module.h: remove extable.h include now users have migrated") Signed-off-by: Guenter Roeck <[email protected]> [PG: tweak commit log; refresh for sched header refactoring.] Signed-off-by: Paul Gortmaker <[email protected]>
1 parent c1ae3cf commit 0acf611

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

arch/score/kernel/traps.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
*/
2525

2626
#include <linux/extable.h>
27+
#include <linux/ptrace.h>
2728
#include <linux/sched/mm.h>
2829
#include <linux/sched/signal.h>
2930
#include <linux/sched/debug.h>

arch/score/mm/extable.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
*/
2525

2626
#include <linux/extable.h>
27+
#include <linux/ptrace.h>
28+
#include <asm/extable.h>
2729

2830
int fixup_exception(struct pt_regs *regs)
2931
{

0 commit comments

Comments
 (0)