Thread (60 messages) 60 messages, 13 authors, 2023-02-10

Re: [PATCH 10/18] EDAC: i10nm, skx: fix mixed module-builtin object

From: Masahiro Yamada <masahiroy@kernel.org>
Date: 2022-11-23 16:13:43
Also in: linux-kbuild, lkml

On Sun, Nov 20, 2022 at 8:08 AM Alexander Lobakin [off-list ref] wrote:
With CONFIG_EDAC_SKX=m and CONFIG_EDAC_I10NM=y (or vice versa),
skx_common.o are linked to a module and also to vmlinux even though
the expected CFLAGS are different between builtins and modules:
quoted
scripts/Makefile.build:252: ./drivers/edac/Makefile: skx_common.o
is added to multiple modules: i10nm_edac skx_edac
This is the same situation as fixed by commit 637a642f5ca5 ("zstd:
Fixing mixed module-builtin objects").

Introduce the new module, skx_edac_common, to provide the common
functions to skx_edac and i10nm_edac. skx_adxl_{get,put}() loose
their __init/__exit annotations in order to become exportable.

Fixes: d4dc89d069aa ("EDAC, i10nm: Add a driver for Intel 10nm server processors")
Suggested-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Alexander Lobakin <redacted>
Reviewed-by: Masahiro Yamada <masahiroy@kernel.org>





--
Best Regards
Masahiro Yamada
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help