(I'm so sorry!) Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

tools/testing/cxl: Don't wrap cxl_core's own exported symbols

Building cxl_test with LLVM=1 (ld.lld) fails in modpost: """ cxl_core: .export_symbol section references '__wrap_...', but it does not seem to be an export symbol """ cxl_test --wraps 6 symbols that cxl_core both defines and exports. GNU ld only wraps undefined references, but ld.lld also redirects references to defined symbols, so cxl_core's own EXPORT_SYMBOL entries get rewritten to __wrap_* and modpost rejects them. cxl_core never calls these symbols, so wrap them only in the caller modules via LDFLAGS_<module>.o instead of the global ldflags-y. Signed-off-by: Richard Cheng <icheng@nvidia.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Reviewed-by: Alison Schofield <alison.schofield@intel.com> Tested-by: Shaikh Kamaluddin <shaikhkamal2012@gmail.com> Link: https://patch.msgid.link/20260721084009.38100-1-icheng@nvidia.com Signed-off-by: Dave Jiang <dave.jiang@intel.com>


Author Richard Cheng Committer Dave Jiang Date Commit Parent cee9395a
+10 -6
1 changed file
+10 -6
1 changed file