[PATCH] sparc: fix kgdb build failure due to context tracking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
Fixes: 812cb83a56a9 ("sparc64: Implement HAVE_CONTEXT_TRACKING")
Signed-off-by: Paul Gortmaker <paul.gortmaker@xxxxxxxxxxxxx>

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>
-- 
1.8.5.1

--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux