aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_printf.c
diff options
context:
space:
mode:
authorQian Cai <[email protected]>2019-11-11 21:34:26 +0000
committerRafael J. Wysocki <[email protected]>2019-11-12 09:01:03 +0000
commit59b2c5b63587a9ed2292ccce32fd69d8de815036 (patch)
treead19656a58d9d9f121e717f6832a3f57931e2e6d /lib/test_printf.c
parentACPI: HMAT: don't mix pxm and nid when setting memory target processor_pxm (diff)
downloadkernel-59b2c5b63587a9ed2292ccce32fd69d8de815036.tar.gz
kernel-59b2c5b63587a9ed2292ccce32fd69d8de815036.zip
ACPI: NUMA: HMAT: fix a section mismatch
Commit cf8741ac57ed ("ACPI: NUMA: HMAT: Register "soft reserved" memory as an "hmem" device") introduced a linker warning, WARNING: vmlinux.o(.text+0x64ec3c): Section mismatch in reference from the function hmat_register_target() to the function .init.text:hmat_register_target_devices() The function hmat_register_target() references the function __init hmat_register_target_devices(). Since hmat_register_target() is also called from hmat_callback(), and then register_hotmemory_notifier(), where it should not be freed when hmat_init() is done, it indicates that the __init annotation of hmat_register_target_devices() is incorrect. Fixes: cf8741ac57ed ("ACPI: NUMA: HMAT: Register "soft reserved" memory as an "hmem" device") Signed-off-by: Qian Cai <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/test_printf.c')
0 files changed, 0 insertions, 0 deletions