Skip to contentSkip to conversation

sparc: fix kgdb build failure due to context tracking

PATCH In review Paul Gortmaker 2 participants 3 messages Jan 6, 2014 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sparc: fix kgdb build failure due to context tracking

The following allmodconfig build failure is seen:

CC arch/sparc/kernel/kgdb_64.o
arch/sparc/kernel/kgdb_64.c: In function 'kgdb_trap':
arch/sparc/kernel/kgdb_64.c:162:7: error: implicit declaration of function 'exception_enter' [-Werror=implicit-function-declaration] arch/sparc/kernel/kgdb_64.c:176:2: error: implicit declaration of function 'exception_exit' [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors

Bisection leads to commit 812cb83a56a908729c453a7db3fb2c262119bc9d ("sparc64: Implement HAVE_CONTEXT_TRACKING"). This commit failed to include the proper header for the above two functions in this file.

Cc Kirill Tkhai <[email protected]>
Fixes 812cb83a56a9 ("sparc64: Implement HAVE_CONTEXT_TRACKING")
arch/sparc/kernel/kgdb_64.c +1 -0
index 60b19f50c80a..3860e692fedc 100644
@@ -5,6 +5,7 @@
 
 #include <linux/kgdb.h>
 #include <linux/kdebug.h>
+#include <linux/context_tracking.h>
 #include <linux/ftrace.h>
 
 #include <asm/cacheflush.h>
Signature · 1 line
1.8.5.1
maintainer
#1 lore raw

From: Paul Gortmaker <[email protected]>
Date: Mon, 6 Jan 2014 14:51:03 -0500

Quoted 1 line

The following allmodconfig build failure is seen:

Not in Linus's tree, it's already fixed there.

#2 lore raw
In reply to Paul Gortmaker
Quoted 6 lines · David Miller

From: Paul Gortmaker <[email protected]>
Date: Mon, 6 Jan 2014 14:51:03 -0500

Quoted 1 line

The following allmodconfig build failure is seen:

Not in Linus's tree, it's already fixed there.

Sorry for the dup; was testing the init.h cleanups on the weekend's rc7 tag and didn't notice the fix was in after that...