1
1
openwrt/target/linux/generic
Robert Marko da9eee7c55 generic: 6.18: hack: io_uring: zcrx: Use IS_REACHABLE() instead of IS_ENABLED()
We patch DMA_BUF to make it tristate, so once ALL_KMODS is selected it will
be built as a module even if previously disabled in the config.

So, since IO_URING_ZCRX does not depend on DMA_BUF linking will fail with:
aarch64-openwrt-linux-musl-ld: Unexpected GOT/PLT entries detected!
aarch64-openwrt-linux-musl-ld: Unexpected run-time procedure linkages detected!
aarch64-openwrt-linux-musl-ld: io_uring/zcrx.o: in function `io_release_dmabuf':
io_uring/zcrx.c:94:(.text+0x20): undefined reference to `dma_buf_unmap_attachment_unlocked'
aarch64-openwrt-linux-musl-ld: io_uring/zcrx.c:97:(.text+0x30): undefined reference to `dma_buf_detach'
aarch64-openwrt-linux-musl-ld: io_uring/zcrx.c:99:(.text+0x3c): undefined reference to `dma_buf_put'
aarch64-openwrt-linux-musl-ld: io_uring/zcrx.o: in function `io_import_dmabuf':
io_uring/zcrx.c:125:(.text+0x1b20): undefined reference to `dma_buf_get'
aarch64-openwrt-linux-musl-ld: io_uring/zcrx.c:132:(.text+0x1b34): undefined reference to `dma_buf_attach'
aarch64-openwrt-linux-musl-ld: io_uring/zcrx.c:139:(.text+0x1b48): undefined reference to `dma_buf_map_attachment_unlocked'
make[6]: *** [scripts/Makefile.vmlinux:72: vmlinux.unstripped] Error 1

So, lets use IS_REACHABLE() to check for CONFIG_DMA_SHARED_BUFFER instead
to avoid adding a dependency to CONFIG_DMA_SHARED_BUFFER.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
2026-03-31 18:55:50 +02:00
..
backport-6.12 kernel: bump 6.12 to 6.12.78 2026-03-30 13:42:44 +02:00
backport-6.18 kernel: 6.18: backport mxl862xx driver for Linxu 6.18 2026-03-29 18:27:07 +02:00
files ar8327: use flex array for name 2026-03-31 11:44:27 +02:00
hack-6.12 kernel: bump 6.12 to 6.12.78 2026-03-30 13:42:44 +02:00
hack-6.18 generic: 6.18: hack: io_uring: zcrx: Use IS_REACHABLE() instead of IS_ENABLED() 2026-03-31 18:55:50 +02:00
image treewide: strip trailing whitespace 2025-05-20 00:47:37 +02:00
other-files initramfs: switch to tmpfs to fix ujail 2020-11-27 01:23:43 +00:00
pending-6.12 kernel: update MxL862xx DSA driver 2026-03-31 03:37:14 +01:00
pending-6.18 kernel: update MxL862xx DSA driver 2026-03-31 03:37:14 +01:00
config-6.12 generic: add missing MXL862 DSA symbols 2026-03-30 18:42:07 +02:00
config-6.18 generic: add missing MXL862 DSA symbols 2026-03-30 18:42:07 +02:00
config-filter generic: filter out CONFIG_TOOLS_SUPPORT_RELR 2026-03-30 18:42:13 +02:00
kernel-6.12 kernel: bump 6.12 to 6.12.79 2026-03-30 13:43:51 +02:00
kernel-6.18 kernel: add define for kernel 6.18 2026-03-28 11:51:08 +01:00
PATCHES.md generic: improve patches documentation 2025-06-11 15:09:46 +02:00