]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RDMA/core: Do not compile ib_core_uverbs without USER_ACCESS
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 26 May 2026 01:22:37 +0000 (22:22 -0300)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 26 May 2026 13:07:25 +0000 (10:07 -0300)
commit33d1117eb506dbea0fc0995711686179aed22ff2
tree8742c6a40f32d9390bdfa6b219fe677748d2e8da
parente312f0ff9e180e8ebfdab2419898e82cf5408944
RDMA/core: Do not compile ib_core_uverbs without USER_ACCESS

Remove the entire ib_core_uverbs.c from the build if
CONFIG_INFINIBAND_USER_ACCESS is not set. These functions are only used to
support uverbs and are never callable even if they happen to get linked
in.

Provide inlines for the missing ones to return errors to further push code
elimination in drivers.

Link: https://patch.msgid.link/r/1-v3-43aba1969751+1988-ib_uverbs_support_ko_jgg@nvidia.com
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/Kconfig
drivers/infiniband/core/Makefile
drivers/infiniband/core/ib_core_uverbs.c
drivers/infiniband/core/rdma_core.h
include/rdma/ib_verbs.h
include/rdma/uverbs_ioctl.h