diff mbox

sparc: fix kgdb build failure due to context tracking

Message ID 1389037863-8866-1-git-send-email-paul.gortmaker@windriver.com
State Not Applicable
Delegated to: David Miller
Headers show

Commit Message

Paul Gortmaker Jan. 6, 2014, 7:51 p.m. UTC
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 <tkhai@yandex.ru>
Fixes: 812cb83a56a9 ("sparc64: Implement HAVE_CONTEXT_TRACKING")
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>

Comments

David Miller Jan. 6, 2014, 8:31 p.m. UTC | #1
From: Paul Gortmaker <paul.gortmaker@windriver.com>
Date: Mon, 6 Jan 2014 14:51:03 -0500

> The following allmodconfig build failure is seen:

Not in Linus's tree, it's already fixed there.
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Paul Gortmaker Jan. 6, 2014, 8:39 p.m. UTC | #2
On 14-01-06 03:31 PM, David Miller wrote:
> From: Paul Gortmaker <paul.gortmaker@windriver.com>
> Date: Mon, 6 Jan 2014 14:51:03 -0500
> 
>> 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...
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/sparc/kernel/kgdb_64.c b/arch/sparc/kernel/kgdb_64.c
index 60b19f50c80a..3860e692fedc 100644
--- a/arch/sparc/kernel/kgdb_64.c
+++ b/arch/sparc/kernel/kgdb_64.c
@@ -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>