1
1
openwrt/target/linux/generic/hack-6.18
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
..
200-tools_portability.patch
204-module_strip.patch
205-kconfig-abort-configuration-on-unset-symbol.patch
210-darwin_scripts_include.patch
211-darwin-uuid-typedef-clash.patch generic: 6.18: refresh hack patches 2026-03-28 11:51:10 +01:00
214-spidev_h_portability.patch
230-openwrt_lzma_options.patch
249-udp-tunnel-selection.patch
250-netfilter_depends.patch generic: 6.18: refresh hack patches 2026-03-28 11:51:10 +01:00
251-kconfig.patch
253-ksmbd-config.patch generic: 6.18: refresh hack patches 2026-03-28 11:51:10 +01:00
259-regmap_dynamic.patch
260-crypto_test_dependencies.patch generic: 6.18: refresh hack patches 2026-03-28 11:51:10 +01:00
261-lib-arc4-unhide.patch generic: 6.18: refresh hack patches 2026-03-28 11:51:10 +01:00
280-rfkill-stubs.patch
300-MIPS-r4k_cache-use-more-efficient-cache-blast.patch
301-01-mm-permit-to-declare-custom-execmem-alloc-free-funct.patch
301-02-mips-replace-mlong-calls-with-mno-long-calls-if-poss.patch
402-mtd-blktrans-call-add-disks-after-mtd-device.patch generic: 6.18: refresh hack patches 2026-03-28 11:51:10 +01:00
420-mtd-support-OpenWrt-s-MTD_ROOTFS_ROOT_DEV.patch generic: 6.18: refresh hack patches 2026-03-28 11:51:10 +01:00
421-drivers-mtd-parsers-add-nvmem-support-to-cmdlinepart.patch
430-mtk-bmt-support.patch
499-LEGACY-block-partitions-populate-fwnode.patch generic: 6.18: refresh hack patches 2026-03-28 11:51:10 +01:00
600-net-enable-fraglist-GRO-by-default.patch generic: 6.18: refresh hack patches 2026-03-28 11:51:10 +01:00
610-net-page_pool-try-to-free-deferred-skbs-while-waitin.patch generic: 6.18: refresh hack patches 2026-03-28 11:51:10 +01:00
645-netfilter-connmark-introduce-set-dscpmark.patch
650-netfilter-add-xt_FLOWOFFLOAD-target.patch generic: 6.18: refresh hack patches 2026-03-28 11:51:10 +01:00
651-wireless_mesh_header.patch generic: 6.18: refresh hack patches 2026-03-28 11:51:10 +01:00
660-fq_codel_defaults.patch generic: 6.18: refresh hack patches 2026-03-28 11:51:10 +01:00
661-kernel-ct-size-the-hashtable-more-adequately.patch generic: 6.18: refresh hack patches 2026-03-28 11:51:10 +01:00
700-swconfig_switch_drivers.patch generic: 6.18: refresh hack patches 2026-03-28 11:51:10 +01:00
711-net-dsa-mv88e6xxx-disable-ATU-violation.patch generic: 6.18: refresh hack patches 2026-03-28 11:51:10 +01:00
721-net-add-packet-mangeling.patch
722-net-phy-aquantia-enable-AQR112-and-AQR412.patch
723-net-phy-aquantia-fix-system-side-protocol-mi.patch generic: 6.18: refresh hack patches 2026-03-28 11:51:10 +01:00
725-net-phy-aquantia-add-PHY_IDs-for-AQR112-variants.patch
730-net-ethernet-mtk_eth_soc-add-hw-dump-for-forced-rese.patch generic: 6.18: refresh hack patches 2026-03-28 11:51:10 +01:00
735-net-phy-realtek-rtl8261n.patch generic: 6.18: refresh hack patches 2026-03-28 11:51:10 +01:00
750-net-pcs-mtk-lynxi-workaround-2500BaseX-no-an.patch
755-net-phy-motorcomm-yt8821-bus-collision-workaround.patch generic: 6.18: refresh hack patches 2026-03-28 11:51:10 +01:00
760-net-usb-r8152-add-LED-configuration-from-OF.patch generic: 6.18: refresh hack patches 2026-03-28 11:51:10 +01:00
761-dt-bindings-net-add-RTL8152-binding-documentation.patch
766-net-phy-mediatek-ge-add-LED-configuration-interface.patch
770-r8169-LED-uses-original-network-port-name.patch generic: 6.18: refresh hack patches 2026-03-28 11:51:10 +01:00
773-bgmac-add-srab-switch.patch generic: 6.18: refresh hack patches 2026-03-28 11:51:10 +01:00
780-usb-net-MeigLink_modem_support.patch
781-usb-net-rndis-support-asr.patch
800-GPIO-add-named-gpio-exports.patch
810-bcma-ssb-fallback-sprom.patch
890-serial-8250-add-UPIO_AU-case-to-set_io_from_upio.patch serial: 8250: 6.18: add UPIO_AU case to set_io_from_upio() 2026-03-28 11:51:10 +01:00
901-debloat_sock_diag.patch generic: 6.18: refresh hack patches 2026-03-28 11:51:10 +01:00
902-debloat_proc.patch
904-debloat_dma_buf.patch
905-io_uring-zcrx-Use-IS_REACHABLE-instead-of-IS_ENABLED.patch generic: 6.18: hack: io_uring: zcrx: Use IS_REACHABLE() instead of IS_ENABLED() 2026-03-31 18:55:50 +02:00
910-kobject_uevent.patch
911-kobject_add_broadcast_uevent.patch
920-device_tree_cmdline.patch generic: 6.18: refresh hack patches 2026-03-28 11:51:10 +01:00
926-crypto-eip93-use-AES-fallback-for-small-requests.patch crypto: eip93: use in-tree driver for kernel 6.18 2026-03-28 11:51:10 +01:00
927-crypto-eip93-add-mediatek-mtk-eip93-compatible-string.patch crypto: eip93: use in-tree driver for kernel 6.18 2026-03-28 11:51:10 +01:00
930-Revert-Revert-Revert-driver-core-Set-fw_devlink-on-b.patch generic: 6.18: refresh hack patches 2026-03-28 11:51:10 +01:00
940-kbuild-extract-modules-builtin-modinfo-from-vmlinux_o.patch kbuild: extract modules.builtin.modinfo from vmlinux.o 2026-03-28 11:51:10 +01:00
950-silence-unused-variable-warnings.patch generic: 6.18: silence unused-variable warnings 2026-03-28 11:51:10 +01:00