public inbox for linux-serial@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] kdb: Delete never used KGDB NMI code
@ 2025-01-29 16:25 Douglas Anderson
  2025-01-29 16:25 ` [PATCH 1/3] Revert "tty/serial: Add kgdb_nmi driver" Douglas Anderson
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Douglas Anderson @ 2025-01-29 16:25 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Jiri Slaby, Daniel Thompson
  Cc: Dr . David Alan Gilbert, kgdb-bugreport, Anton Vorontsov,
	Sumit Garg, linux-serial, Douglas Anderson, Andy Shevchenko,
	Arnd Bergmann, Geert Uytterhoeven, Hugo Villeneuve, Jason Wessel,
	Nicolas Ferre, Niklas Schnelle, Nir Lichtman, Robert Marko,
	Thorsten Blum, Yuran Pereira, Zheng Zengkai, linux-kernel

As pointed out in the review [1] of commit 39d0be87438a ("serial:
kgdb_nmi: Remove unused knock code"), it's not just the knock code
that's unused but a whole chunk of NMI-related code in KGDB.

Look back at the original series [2] and revert a few of the patches
that managed to land and had no other purpose. They've been in the
kernel for over 12 years and if nobody has used them during that time
then they won't get used.

I've validated things still compile just fine for me and I've tested
"allmodconfig" for a few different architectures. Hopefully I didn't
miss anything, but based on "grep" this is all just dead code.

I guess I'd expect this to land through Greg KH's tree, ideally Acked
by Daniel Thompson.

[1] https://lore.kernel.org/r/CAD=FV=VH5YWfTggGNt2KLoSPKqVTmWArEgccok3uFQ5BCA7cNw@mail.gmail.com
[2] https://lore.kernel.org/lkml/1348522080-32629-9-git-send-email-anton.vorontsov@linaro.org/


Douglas Anderson (3):
  Revert "tty/serial: Add kgdb_nmi driver"
  Revert "kdb: Implement disable_nmi command"
  Revert "kernel/debug: Mask KGDB NMI upon entry"

 drivers/tty/serial/Kconfig    |  19 ---
 drivers/tty/serial/Makefile   |   1 -
 drivers/tty/serial/kgdb_nmi.c | 280 ----------------------------------
 drivers/tty/serial/kgdboc.c   |   8 -
 include/linux/kgdb.h          |  11 --
 kernel/debug/debug_core.c     |  14 +-
 kernel/debug/kdb/kdb_main.c   |  37 -----
 7 files changed, 3 insertions(+), 367 deletions(-)
 delete mode 100644 drivers/tty/serial/kgdb_nmi.c

-- 
2.48.1.262.g85cc9f2d1e-goog


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-01-30 16:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-29 16:25 [PATCH 0/3] kdb: Delete never used KGDB NMI code Douglas Anderson
2025-01-29 16:25 ` [PATCH 1/3] Revert "tty/serial: Add kgdb_nmi driver" Douglas Anderson
2025-01-30  8:27   ` Andy Shevchenko
2025-01-30  8:32     ` Andy Shevchenko
2025-01-30 16:31       ` Andy Shevchenko
2025-01-29 16:25 ` [PATCH 2/3] Revert "kdb: Implement disable_nmi command" Douglas Anderson
2025-01-29 16:25 ` [PATCH 3/3] Revert "kernel/debug: Mask KGDB NMI upon entry" Douglas Anderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox