Subject: Re: linux-next: build failure after merge of the vfio tree

From: Mark Brown <[email-masked]>
Date: Mon, 9 Feb 2026 02:42:03 +0000

On Mon, Feb 09, 2026 at 02:07:15AM +0000, Mark Brown wrote:
> Hi all,
> 
> After merging the vfio tree, today's linux-next build (x86_64 allmodconfig)
> failed like this:
> 
> In file included from /tmp/next/build/include/rdma/ib_addr.h:21,
>                  from /tmp/next/build/include/rdma/rdma_cm.h:12,
>                  from /tmp/next/build/drivers/block/rnbd/rnbd-clt-sysfs.c:22:
> /tmp/next/build/include/rdma/ib_verbs.h:2509:37: error: 'struct dma_buf_phys_vec' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
>  2509 |                              struct dma_buf_phys_vec *phys_vec,
>       |                                     ^~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[6]: *** [/tmp/next/build/scripts/Makefile.build:289: drivers/block/rnbd/rnbd-clt-sysfs.o] Error 1
> make[6]: *** Waiting for unfinished jobs....
> In file included from /tmp/next/build/include/linux/lsm_audit.h:25,
>                  from /tmp/next/build/security/smack/smack.h:22,
>                  from /tmp/next/build/security/smack/smack_netfilter.c:19:
> /tmp/next/build/include/rdma/ib_verbs.h:2509:37: error: 'struct dma_buf_phys_vec' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
>  2509 |                              struct dma_buf_phys_vec *phys_vec,
>       |                                     ^~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[5]: *** [/tmp/next/build/scripts/Makefile.build:289: security/smack/smack_netfilter.o] Error 1
> make[5]: *** Waiting for unfinished jobs....
> In file included from /tmp/next/build/include/linux/lsm_audit.h:25,
>                  from /tmp/next/build/security/smack/smack.h:22,
>                  from /tmp/next/build/security/smack/smack_access.c:13:
> /tmp/next/build/include/rdma/ib_verbs.h:2509:37: error: 'struct dma_buf_phys_vec' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
>  2509 |                              struct dma_buf_phys_vec *phys_vec,
>       |                                     ^~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[5]: *** [/tmp/next/build/scripts/Makefile.build:289: security/smack/smack_access.o] Error 1
> In file included from /tmp/next/build/include/linux/lsm_audit.h:25,
>                  from /tmp/next/build/security/selinux/include/avc.h:18,
>                  from /tmp/next/build/security/selinux/avc.c:30:
> /tmp/next/build/include/rdma/ib_verbs.h:2509:37: error: 'struct dma_buf_phys_vec' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
>  2509 |                              struct dma_buf_phys_vec *phys_vec,
>       |                                     ^~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[5]: *** [/tmp/next/build/scripts/Makefile.build:289: security/selinux/avc.o] Error 1
> make[5]: *** Waiting for unfinished jobs....
> make[5]: *** [/tmp/next/build/scripts/Makefile.build:546: drivers/block/rnbd] Error 2
> make[5]: *** Waiting for unfinished jobs....
> In file included from /tmp/next/build/include/linux/lsm_audit.h:25,
>                  from /tmp/next/build/security/smack/smack.h:22,
>                  from /tmp/next/build/security/smack/smackfs.c:28:
> /tmp/next/build/include/rdma/ib_verbs.h:2509:37: error: 'struct dma_buf_phys_vec' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
>  2509 |                              struct dma_buf_phys_vec *phys_vec,
>       |                                     ^~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[5]: *** [/tmp/next/build/scripts/Makefile.build:289: security/smack/smackfs.o] Error 1
> In file included from /tmp/next/build/include/linux/lsm_audit.h:25,
>                  from /tmp/next/build/security/selinux/include/avc.h:18,
>                  from /tmp/next/build/security/selinux/selinuxfs.c:41:
> /tmp/next/build/include/rdma/ib_verbs.h:2509:37: error: 'struct dma_buf_phys_vec' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
>  2509 |                              struct dma_buf_phys_vec *phys_vec,
>       |                                     ^~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[5]: *** [/tmp/next/build/scripts/Makefile.build:289: security/selinux/selinuxfs.o] Error 1
> In file included from /tmp/next/build/include/linux/lsm_audit.h:25,
>                  from /tmp/next/build/security/smack/smack.h:22,
>                  from /tmp/next/build/security/smack/smack_lsm.c:47:
> /tmp/next/build/include/rdma/ib_verbs.h:2509:37: error: 'struct dma_buf_phys_vec' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
>  2509 |                              struct dma_buf_phys_vec *phys_vec,
>       |                                     ^~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[5]: *** [/tmp/next/build/scripts/Makefile.build:289: security/smack/smack_lsm.o] Error 1
> make[4]: *** [/tmp/next/build/scripts/Makefile.build:546: security/smack] Error 2
> make[4]: *** Waiting for unfinished jobs....
> make[4]: *** [/tmp/next/build/scripts/Makefile.build:546: drivers/block] Error 2
> make[4]: *** Waiting for unfinished jobs....
> In file included from /tmp/next/build/include/linux/lsm_audit.h:25,
>                  from /tmp/next/build/security/lsm_audit.c:28:
> /tmp/next/build/include/rdma/ib_verbs.h:2509:37: error: 'struct dma_buf_phys_vec' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
>  2509 |                              struct dma_buf_phys_vec *phys_vec,
>       |                                     ^~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[4]: *** [/tmp/next/build/scripts/Makefile.build:289: security/lsm_audit.o] Error 1
> In file included from /tmp/next/build/include/linux/lsm_audit.h:25,
>                  from /tmp/next/build/security/apparmor/include/audit.h:16,
>                  from /tmp/next/build/security/apparmor/audit.c:15:
> /tmp/next/build/include/rdma/ib_verbs.h:2509:37: error: 'struct dma_buf_phys_vec' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
>  2509 |                              struct dma_buf_phys_vec *phys_vec,
>       |                                     ^~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[5]: *** [/tmp/next/build/scripts/Makefile.build:289: security/apparmor/audit.o] Error 1
> make[5]: *** Waiting for unfinished jobs....
> In file included from /tmp/next/build/include/linux/lsm_audit.h:25,
>                  from /tmp/next/build/security/apparmor/include/audit.h:16,
>                  from /tmp/next/build/security/apparmor/include/policy.h:23,
>                  from /tmp/next/build/security/apparmor/include/policy_ns.h:19,
>                  from /tmp/next/build/security/apparmor/include/cred.h:19,
>                  from /tmp/next/build/security/apparmor/capability.c:19:
> /tmp/next/build/include/rdma/ib_verbs.h:2509:37: error: 'struct dma_buf_phys_vec' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
>  2509 |                              struct dma_buf_phys_vec *phys_vec,
>       |                                     ^~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[5]: *** [/tmp/next/build/scripts/Makefile.build:289: security/apparmor/capability.o] Error 1
> In file included from /tmp/next/build/include/linux/lsm_audit.h:25,
>                  from /tmp/next/build/security/apparmor/include/audit.h:16,
>                  from /tmp/next/build/security/apparmor/task.c:19:
> /tmp/next/build/include/rdma/ib_verbs.h:2509:37: error: 'struct dma_buf_phys_vec' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
>  2509 |                              struct dma_buf_phys_vec *phys_vec,
>       |                                     ^~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[5]: *** [/tmp/next/build/scripts/Makefile.build:289: security/apparmor/task.o] Error 1
> In file included from /tmp/next/build/include/linux/lsm_audit.h:25,
>                  from /tmp/next/build/security/selinux/include/avc.h:18,
>                  from /tmp/next/build/security/selinux/hooks.c:99:
> /tmp/next/build/include/rdma/ib_verbs.h:2509:37: error: 'struct dma_buf_phys_vec' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
>  2509 |                              struct dma_buf_phys_vec *phys_vec,
>       |                                     ^~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[5]: *** [/tmp/next/build/scripts/Makefile.build:289: security/selinux/hooks.o] Error 1
> make[4]: *** [/tmp/next/build/scripts/Makefile.build:546: security/selinux] Error 2
> In file included from /tmp/next/build/include/linux/lsm_audit.h:25,
>                  from /tmp/next/build/security/apparmor/include/audit.h:16,
>                  from /tmp/next/build/security/apparmor/apparmorfs.c:30:
> /tmp/next/build/include/rdma/ib_verbs.h:2509:37: error: 'struct dma_buf_phys_vec' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
>  2509 |                              struct dma_buf_phys_vec *phys_vec,
>       |                                     ^~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[5]: *** [/tmp/next/build/scripts/Makefile.build:289: security/apparmor/apparmorfs.o] Error 1
> make[4]: *** [/tmp/next/build/scripts/Makefile.build:546: security/apparmor] Error 2
> In file included from /tmp/next/build/net/devlink/devl_internal.h:17,
>                  from /tmp/next/build/net/devlink/core.c:11:
> /tmp/next/build/include/rdma/ib_verbs.h:2509:37: error: 'struct dma_buf_phys_vec' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
>  2509 |                              struct dma_buf_phys_vec *phys_vec,
>       |                                     ^~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[5]: *** [/tmp/next/build/scripts/Makefile.build:289: net/devlink/core.o] Error 1
> make[5]: *** Waiting for unfinished jobs....
> In file included from /tmp/next/build/net/devlink/devl_internal.h:17,
>                  from /tmp/next/build/net/devlink/netlink.c:10:
> /tmp/next/build/include/rdma/ib_verbs.h:2509:37: error: 'struct dma_buf_phys_vec' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
>  2509 |                              struct dma_buf_phys_vec *phys_vec,
>       |                                     ^~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[5]: *** [/tmp/next/build/scripts/Makefile.build:289: net/devlink/netlink.o] Error 1
> In file included from /tmp/next/build/net/devlink/devl_internal.h:17,
>                  from /tmp/next/build/net/devlink/dev.c:10:
> /tmp/next/build/include/rdma/ib_verbs.h:2509:37: error: 'struct dma_buf_phys_vec' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
>  2509 |                              struct dma_buf_phys_vec *phys_vec,
>       |                                     ^~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[5]: *** [/tmp/next/build/scripts/Makefile.build:289: net/devlink/dev.o] Error 1
> make[4]: *** [/tmp/next/build/scripts/Makefile.build:546: net/devlink] Error 2
> make[4]: *** Waiting for unfinished jobs....
> make[3]: *** [/tmp/next/build/scripts/Makefile.build:546: security] Error 2
> make[3]: *** Waiting for unfinished jobs....
> In file included from /tmp/next/build/lib/dynamic_debug.c:40:
> /tmp/next/build/include/rdma/ib_verbs.h:2509:37: error: 'struct dma_buf_phys_vec' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
>  2509 |                              struct dma_buf_phys_vec *phys_vec,
>       |                                     ^~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[4]: *** [/tmp/next/build/scripts/Makefile.build:289: lib/dynamic_debug.o] Error 1
> make[4]: *** Waiting for unfinished jobs....
> In file included from /tmp/next/build/fs/smb/client/smbdirect.h:14,
>                  from /tmp/next/build/fs/smb/client/cifs_debug.c:25:
> /tmp/next/build/include/rdma/ib_verbs.h:2509:37: error: 'struct dma_buf_phys_vec' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
>  2509 |                              struct dma_buf_phys_vec *phys_vec,
>       |                                     ^~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[6]: *** [/tmp/next/build/scripts/Makefile.build:289: fs/smb/client/cifs_debug.o] Error 1
> make[6]: *** Waiting for unfinished jobs....
> In file included from /tmp/next/build/fs/smb/client/smbdirect.h:14,
>                  from /tmp/next/build/fs/smb/client/connect.c:45:
> /tmp/next/build/include/rdma/ib_verbs.h:2509:37: error: 'struct dma_buf_phys_vec' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
>  2509 |                              struct dma_buf_phys_vec *phys_vec,
>       |                                     ^~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[6]: *** [/tmp/next/build/scripts/Makefile.build:289: fs/smb/client/connect.o] Error 1
> In file included from /tmp/next/build/fs/smb/client/smbdirect.h:14,
>                  from /tmp/next/build/fs/smb/client/file.c:35:
> /tmp/next/build/include/rdma/ib_verbs.h:2509:37: error: 'struct dma_buf_phys_vec' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
>  2509 |                              struct dma_buf_phys_vec *phys_vec,
>       |                                     ^~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[6]: *** [/tmp/next/build/scripts/Makefile.build:289: fs/smb/client/file.o] Error 1
> make[5]: *** [/tmp/next/build/scripts/Makefile.build:546: fs/smb/client] Error 2
> make[5]: *** Waiting for unfinished jobs....
> In file included from /tmp/next/build/fs/smb/server/transport_rdma.c:18:
> /tmp/next/build/include/rdma/ib_verbs.h:2509:37: error: 'struct dma_buf_phys_vec' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
>  2509 |                              struct dma_buf_phys_vec *phys_vec,
>       |                                     ^~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[6]: *** [/tmp/next/build/scripts/Makefile.build:289: fs/smb/server/transport_rdma.o] Error 1
> make[6]: *** Waiting for unfinished jobs....
> make[5]: *** [/tmp/next/build/scripts/Makefile.build:546: fs/smb/server] Error 2
> make[4]: *** [/tmp/next/build/scripts/Makefile.build:546: fs/smb] Error 2
> make[4]: *** Waiting for unfinished jobs....
> make[3]: *** [/tmp/next/build/scripts/Makefile.build:546: lib] Error 2
> make[3]: *** [/tmp/next/build/scripts/Makefile.build:546: net] Error 2
> make[3]: *** [/tmp/next/build/scripts/Makefile.build:546: fs] Error 2
> make[3]: *** [/tmp/next/build/scripts/Makefile.build:546: drivers] Error 2
> make[2]: *** [/tmp/next/build/Makefile:2086: .] Error 2
> make[1]: *** [/tmp/next/build/Makefile:248: __sub-make] Error 2
> make: *** [Makefile:248: __sub-make] Error 2
> Command exited with non-zero status 2
> 9192.96user 710.88system 1:31.98elapsed 10766%CPU (0avgtext+0avgdata 1476624maxresident)k
> 0inputs+0outputs (2743major+125416372minor)pagefaults 0swaps
> 
> Caused by commit
> 
>   b703b31ea8cd22 (types: reuse common phys_vec type instead of DMABUF open‑coded variant)
> 
> interacting with commit:
> 
>   e6738fe6cad448 (RDMA/uverbs: Add DMABUF object type and operations)
> 
> from the rdma tree.  I have reverted the latter commit (it being the new
> one), really a semantic fixup should be applied - I will try to revisit
> tomorrow.

Actually, no - just no -next today since stuff seems to go wrong with
that revert.  I will try again tomorrow.