]> www.infradead.org Git - users/jedix/linux-maple.git/commit
um: fix stub exe build with CONFIG_GCOV
authorJohannes Berg <johannes.berg@intel.com>
Fri, 25 Oct 2024 08:27:01 +0000 (10:27 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Sat, 26 Oct 2024 14:06:10 +0000 (16:06 +0200)
commitd3b08e5f3f2829943342b88d3e2b44fb0ccdccab
treebd6a270b82bf306125f30c43765ba3d2f2c2e064
parent42b8b00c8ab1ac18fccde3f29ee589626a561ea7
um: fix stub exe build with CONFIG_GCOV

CONFIG_GCOV is special and only in UML since it builds the
kernel with a "userspace" option. This is fine, but the stub
is even more special and not really a full userspace process,
so it then fails to link as reported.

Remove the GCOV options from the stub build.

For good measure, also remove the GPROF options, even though
they don't seem to cause build failures now.

To be able to do this, export the specific options (GCOV_OPT
and GPROF_OPT) but rename them so there's less chance of any
conflicts.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202410242238.SXhs2kQ4-lkp@intel.com/
Fixes: 32e8eaf263d9 ("um: use execveat to create userspace MMs")
Link: https://patch.msgid.link/20241025102700.9fbb9c34473f.I7f1537fe075638f8da64beb52ef6c9e5adc51bc3@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/Makefile-skas
arch/um/kernel/skas/Makefile