mirror of
https://github.com/torvalds/linux.git
synced 2024-12-01 16:41:39 +00:00
d555105271
tools/testing/cxl/test/mem.c uses vmalloc() and vfree() but does not
include linux/vmalloc.h. Kernel v6.10 made changes that causes the
currently included headers not depend on vmalloc.h and therefore
mem.c can no longer compile. Add linux/vmalloc.h to fix compile
issue.
CC [M] tools/testing/cxl/test/mem.o
tools/testing/cxl/test/mem.c: In function ‘label_area_release’:
tools/testing/cxl/test/mem.c:1428:9: error: implicit declaration of function ‘vfree’; did you mean ‘kvfree’? [-Werror=implicit-function-declaration]
1428 | vfree(lsa);
| ^~~~~
| kvfree
tools/testing/cxl/test/mem.c: In function ‘cxl_mock_mem_probe’:
tools/testing/cxl/test/mem.c:1466:22: error: implicit declaration of function ‘vmalloc’; did you mean ‘kmalloc’? [-Werror=implicit-function-declaration]
1466 | mdata->lsa = vmalloc(LSA_SIZE);
| ^~~~~~~
| kmalloc
Fixes:
|
||
---|---|---|
.. | ||
test | ||
config_check.c | ||
cxl_acpi_test.c | ||
cxl_core_exports.c | ||
cxl_core_test.c | ||
cxl_mem_test.c | ||
cxl_pmem_test.c | ||
cxl_port_test.c | ||
Kbuild | ||
mock_acpi.c | ||
watermark.h |