Skip to content

Commit 8117f94

Browse files
diandersDaniel Thompson
authored andcommitted
kgdb: Provide a stub kgdb_nmicallback() if !CONFIG_KGDB
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>
1 parent 858fd16 commit 8117f94

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

include/linux/kgdb.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,5 +365,6 @@ extern void kgdb_free_init_mem(void);
365365
#define dbg_late_init()
366366
static inline void kgdb_panic(const char *msg) {}
367367
static inline void kgdb_free_init_mem(void) { }
368+
static inline int kgdb_nmicallback(int cpu, void *regs) { return 1; }
368369
#endif /* ! CONFIG_KGDB */
369370
#endif /* _KGDB_H_ */

0 commit comments

Comments
 (0)