aboutsummaryrefslogtreecommitdiffstats
path: root/lib/alloc_tag.c
diff options
context:
space:
mode:
authorPetr Pavlu <[email protected]>2025-06-18 12:50:35 +0000
committerAndrew Morton <[email protected]>2025-07-10 05:42:14 +0000
commitd29d64afa2b20d9bd210c01bfff78545675b5135 (patch)
tree7940d787ed8b484c05ddca97ec2f709e8546743e /lib/alloc_tag.c
parentmm/damon: fix minor typos in damon header (diff)
downloadkernel-d29d64afa2b20d9bd210c01bfff78545675b5135.tar.gz
kernel-d29d64afa2b20d9bd210c01bfff78545675b5135.zip
codetag: avoid unused alloc_tags sections/symbols
With CONFIG_MEM_ALLOC_PROFILING=n, vmlinux and all modules unnecessarily contain the symbols __start_alloc_tags and __stop_alloc_tags, which define an empty range. In the case of modules, the presence of these symbols also forces the linker to create an empty .codetag.alloc_tags section. Update codetag.lds.h to make the data conditional on CONFIG_MEM_ALLOC_PROFILING. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Petr Pavlu <[email protected]> Reviewed-by: Kent Overstreet <[email protected]> Reviewed-by: Suren Baghdasaryan <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Casey Chen <[email protected]> Cc: Petr Pavlu <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/alloc_tag.c')
0 files changed, 0 insertions, 0 deletions