Re: [PATCH 0/6] CXL: Introduce memory controller abstraction and sysram controller

From: Gregory Price

Date: Tue Jan 13 2026 - 08:33:55 EST


On Tue, Jan 13, 2026 at 03:07:49PM +0530, Neeraj Kumar wrote:
> Hi Gregory,
>
> I am facing compilation issue with this series using CONFIG_CXL_BUS=m
> {{{
> AR drivers/built-in.a
> AR built-in.a
> AR vmlinux.a
> LD vmlinux.o
> MODPOST Module.symvers
> ERROR: modpost: "device_offline" [drivers/cxl/core/cxl_core.ko] undefined!
> ERROR: modpost: "lock_device_hotplug_sysfs" [drivers/cxl/core/cxl_core.ko] undefined!
> ERROR: modpost: "unlock_device_hotplug" [drivers/cxl/core/cxl_core.ko] undefined!
> ERROR: modpost: "device_online" [drivers/cxl/core/cxl_core.ko] undefined!
> ERROR: modpost: "walk_memory_blocks" [drivers/cxl/core/cxl_core.ko] undefined!
> make[2]: *** [scripts/Makefile.modpost:147: Module.symvers] Error 1
> make[1]: *** [/mnt/ssd1/neeraj/dcd/cxl_env/cxl-linux-mainline/Makefile:2004: modpost] Error 2
> make: *** [Makefile:248: __sub-make] Error 2
> }}}
>
> Above routines are not EXPORT_SYMBOL_GPL(), thats why with
> "CONFIG_CXL_BUS=m" its breaking.
>
> After adding following EXPORT_SYMBOL_GPL() below their respective
> routines. This issue is fixed.
> {{{
> EXPORT_SYMBOL_GPL(unlock_device_hotplug);
> EXPORT_SYMBOL_GPL(lock_device_hotplug_sysfs);
> EXPORT_SYMBOL_GPL(device_offline);
> EXPORT_SYMBOL_GPL(device_online);
> EXPORT_SYMBOL_GPL(walk_memory_blocks);
> }}}
>
> Can you please have a look?
>

Much appreciated, will fixup!

~Gregory