Skip to contentSkip to conversation

kernel/debug: remove unnecessary CONFIG options

PATCH In review tangmeng 2 participants 2 messages Feb 21, 2022 – Feb 22, 2022 KGDB / KDB /debug_core

lore
Share & tools
lore

tangmeng

author
#0 lore raw

PATCH 1/1 kernel/debug: remove unnecessary CONFIG options

In kernel/Makefile has:
obj-$(CONFIG_KGDB) += debug/

so kernel/debug/Makefile don't need this 'obj-$(CONFIG_KGDB) +=', delete it from kernel/debug/Makefile.

---
 kernel/debug/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/debug/Makefile +1 -1
index 332ee6c6ec2c..9c49ff7c75f4 100644
@@ -3,5 +3,5 @@
 # Makefile for the linux kernel debugger
 #
 
-obj-$(CONFIG_KGDB) += debug_core.o gdbstub.o
+obj-y += debug_core.o gdbstub.o
 obj-$(CONFIG_KGDB_KDB) += kdb/
Signature · 1 line
2.20.1
reviewer
#1 lore raw

Hi,

Quoted 11 lines · tangmeng

In kernel/Makefile has:
obj-$(CONFIG_KGDB) += debug/

so kernel/debug/Makefile don't need this 'obj-$(CONFIG_KGDB) +=', delete it from kernel/debug/Makefile.

---
 kernel/debug/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Seems fine to me, with the nit that your Signed-off-by is supposed to have your "real name", not your username. See Documentation/process/submitting-patches.rst. Some maintainers will let this slide, but if you're going to submit a patch fixing a nitty issue then it seems fair to get called out on nits. ;-)

-Doug