Skip to content

Commit ad3d199

Browse files
jmberg-intelrichardweinberger
authored andcommitted
um: Disable CONFIG_GCOV with MODULES
CONFIG_GCOV doesn't work with modules, and for various reasons it cannot work, see also https://lore.kernel.org/r/d36ea54d8c0a8dd706826ba844a6f27691f45d55.camel@sipsolutions.net Make CONFIG_GCOV depend on !MODULES to avoid anyone running into issues there. This also means we need not export the gcov symbols. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Richard Weinberger <richard@nod.at>
1 parent ea8e896 commit ad3d199

3 files changed

Lines changed: 1 addition & 17 deletions

File tree

‎arch/um/Kconfig.debug‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ config GCOV
1717
bool "Enable gcov support"
1818
depends on DEBUG_INFO
1919
depends on !KCOV
20+
depends on !MODULES
2021
help
2122
This option allows developers to retrieve coverage data from a UML
2223
session.

‎arch/um/kernel/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ obj-y = config.o exec.o exitcode.o irq.o ksyms.o mem.o \
2121

2222
obj-$(CONFIG_BLK_DEV_INITRD) += initrd.o
2323
obj-$(CONFIG_GPROF) += gprof_syms.o
24-
obj-$(CONFIG_GCOV) += gmon_syms.o
2524
obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
2625
obj-$(CONFIG_STACKTRACE) += stacktrace.o
2726

‎arch/um/kernel/gmon_syms.c‎

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)