Re: [PATCH] pds_core: add stub macros for pdsc_debufs_* when ! CONFIG_DEBUG_FS
From: Paolo Abeni
Date: Tue May 02 2023 - 10:58:18 EST
On Tue, 2023-05-02 at 10:52 -0400, Tom Rix wrote:
> When CONFIG_DEBUG_FS is not defined there is this representative link error
> ld: drivers/net/ethernet/amd/pds_core/main.o: in function `pdsc_remove':
> main.c:(.text+0x35c): undefined reference to `pdsc_debugfs_del_dev
>
> Avoid these link errors when CONFIG_DEBUG_FS is not defined by
> providing some empty macros.
>
> Signed-off-by: Tom Rix <trix@xxxxxxxxxx>
There is already a patch pending on the same topic:
https://patchwork.kernel.org/user/todo/netdevbpf/?series=744165
and probably a different approach will be preferred:
https://lore.kernel.org/all/84bc488b-5b4b-49ec-7e1a-3a88f92476f6@xxxxxxx/
Cheers,
Paolo