projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
858fd16
)
kgdb: Provide a stub kgdb_nmicallback() if !CONFIG_KGDB
author
Douglas Anderson
<dianders@chromium.org>
Thu, 1 Jun 2023 21:31:50 +0000
(14:31 -0700)
committer
Daniel Thompson
<daniel.thompson@linaro.org>
Thu, 29 Jun 2023 14:06:32 +0000
(15:06 +0100)
To save architectures from needing to wrap the call in #ifdefs, add a
stub no-op version of kgdb_nmicallback(), which returns 1 if it didn't
handle anything.
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link:
https://lore.kernel.org/r/20230601143109.v9.6.Ia3aeac89bb6751b682237e76e5ba594318e4b1aa@changeid
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
include/linux/kgdb.h
patch
|
blob
|
history
diff --git
a/include/linux/kgdb.h
b/include/linux/kgdb.h
index 258cdde8d356b9b8bf1acd900588ae4ce50bc680..76e891ee9e37126e47bb238f7fb6127b86b88594 100644
(file)
--- a/
include/linux/kgdb.h
+++ b/
include/linux/kgdb.h
@@
-365,5
+365,6
@@
extern void kgdb_free_init_mem(void);
#define dbg_late_init()
static inline void kgdb_panic(const char *msg) {}
static inline void kgdb_free_init_mem(void) { }
+static inline int kgdb_nmicallback(int cpu, void *regs) { return 1; }
#endif /* ! CONFIG_KGDB */
#endif /* _KGDB_H_ */