Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kunit: move KUNIT_TABLE out of INIT_DATA

Alter the linker section of KUNIT_TABLE to move it out of INIT_DATA and
into DATA_DATA.

Data for KUnit tests does not need to be in the init section.

In order to run tests again after boot the KUnit data cannot be labeled as
init data as the kernel could write over it.

Add a KUNIT_INIT_TABLE in the next patch for KUnit tests that test init
data/functions.

Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Rae Moar <rmoar@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Rae Moar and committed by
Shuah Khan
69dfdce1 6eb0ea28

+3 -3
+3 -3
include/asm-generic/vmlinux.lds.h
··· 370 370 BRANCH_PROFILE() \ 371 371 TRACE_PRINTKS() \ 372 372 BPF_RAW_TP() \ 373 - TRACEPOINT_STR() 373 + TRACEPOINT_STR() \ 374 + KUNIT_TABLE() 374 375 375 376 /* 376 377 * Data section helpers ··· 700 699 THERMAL_TABLE(governor) \ 701 700 EARLYCON_TABLE() \ 702 701 LSM_TABLE() \ 703 - EARLY_LSM_TABLE() \ 704 - KUNIT_TABLE() 702 + EARLY_LSM_TABLE() 705 703 706 704 #define INIT_TEXT \ 707 705 *(.init.text .init.text.*) \