Revision 55b6f763d8bcb5546997933105d66d3e6b080e6a authored by Johannes Berg on 05 February 2021, 02:32:28 UTC, committed by Linus Torvalds on 05 February 2021, 19:03:47 UTC
On ARCH=um, loading a module doesn't result in its constructors getting called, which breaks module gcov since the debugfs files are never registered. On the other hand, in-kernel constructors have already been called by the dynamic linker, so we can't call them again. Get out of this conundrum by allowing CONFIG_CONSTRUCTORS to be selected, but avoiding the in-kernel constructor calls. Also remove the "if !UML" from GCOV selecting CONSTRUCTORS now, since we really do want CONSTRUCTORS, just not kernel binary ones. Link: https://lkml.kernel.org/r/20210120172041.c246a2cac2fb.I1358f584b76f1898373adfed77f4462c8705b736@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com> Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Jessica Yu <jeyu@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 4f6ec86
File | Mode | Size |
---|---|---|
include | ||
.gitignore | -rw-r--r-- | 84 bytes |
Kconfig | -rw-r--r-- | 2.9 KB |
Makefile | -rw-r--r-- | 4.1 KB |
apparmorfs.c | -rw-r--r-- | 64.5 KB |
audit.c | -rw-r--r-- | 5.3 KB |
capability.c | -rw-r--r-- | 4.1 KB |
crypto.c | -rw-r--r-- | 2.3 KB |
domain.c | -rw-r--r-- | 38.3 KB |
file.c | -rw-r--r-- | 19.5 KB |
ipc.c | -rw-r--r-- | 5.9 KB |
label.c | -rw-r--r-- | 51.1 KB |
lib.c | -rw-r--r-- | 12.9 KB |
lsm.c | -rw-r--r-- | 49.0 KB |
match.c | -rw-r--r-- | 19.9 KB |
mount.c | -rw-r--r-- | 18.3 KB |
net.c | -rw-r--r-- | 5.5 KB |
nulldfa.in | -rw-r--r-- | 6.8 KB |
path.c | -rw-r--r-- | 6.0 KB |
policy.c | -rw-r--r-- | 31.7 KB |
policy_ns.c | -rw-r--r-- | 9.8 KB |
policy_unpack.c | -rw-r--r-- | 29.0 KB |
policy_unpack_test.c | -rw-r--r-- | 17.7 KB |
procattr.c | -rw-r--r-- | 3.5 KB |
resource.c | -rw-r--r-- | 5.0 KB |
secid.c | -rw-r--r-- | 3.4 KB |
stacksplitdfa.in | -rw-r--r-- | 7.3 KB |
task.c | -rw-r--r-- | 4.2 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...