aboutsummaryrefslogtreecommitdiffstats
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorLucas De Marchi <[email protected]>2025-09-12 21:54:51 +0000
committerRodrigo Vivi <[email protected]>2025-09-22 16:13:14 +0000
commitb67e7422d229dead0dddaad7e7c05558f24d552f (patch)
tree7ef396d9727816ab7a9024d8a652b91b90987c0c /lib/memory-notifier-error-inject.c
parentdrm/xe/vf: Don't expose sysfs attributes not applicable for VFs (diff)
downloadkernel-b67e7422d229dead0dddaad7e7c05558f24d552f.tar.gz
kernel-b67e7422d229dead0dddaad7e7c05558f24d552f.zip
drm/xe: Fix build with CONFIG_MODULES=n
When building with CONFIG_MODULES=n, the __exit functions are dropped. However our init functions may call them for error handling, so they are not good candidates for the exit sections. Fix this error reported by 0day: ld.lld: error: relocation refers to a symbol in a discarded section: xe_configfs_exit >>> defined in vmlinux.a(drivers/gpu/drm/xe/xe_configfs.o) >>> referenced by xe_module.c >>> drivers/gpu/drm/xe/xe_module.o:(init_funcs) in archive vmlinux.a This is the only exit function using __exit. Drop it to fix the build. Cc: Riana Tauro <[email protected]> Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Fixes: 16280ded45fb ("drm/xe: Add configfs to enable survivability mode") Reviewed-by: Balasubramani Vivekanandan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lucas De Marchi <[email protected]> (cherry picked from commit d9b2623319fa20c2206754284291817488329648) Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions