Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
* [PATCH] Add missing ib_uverbs dependency from SoftiWARP
@ 2022-09-07 13:45 Tom Talpey
  2022-09-07 13:51 ` Jason Gunthorpe
  0 siblings, 1 reply; 8+ messages in thread
From: Tom Talpey @ 2022-09-07 13:45 UTC (permalink / raw)
  To: Jason Gunthorpe, Leon Romanovsky, Bernard Metzler,
	linux-rdma@vger.kernel.org

When loading the siw module, ib_uverbs is needed so that consumers may
access it. However, siw references only inline functions in ib_uverbs.h,
so the kernel linker can not detect this, and the module is not loaded
automatically. Add a module dependency to ensure ib_uverbs is present.

Signed-off-by: Tom Talpey <tom@talpey.com>
---
  drivers/infiniband/sw/siw/siw_main.c | 1 +
  1 file changed, 1 insertion(+)

diff --git a/drivers/infiniband/sw/siw/siw_main.c 
b/drivers/infiniband/sw/siw/siw_main.c
index dacc174604bf..372b37b18bac 100644
--- a/drivers/infiniband/sw/siw/siw_main.c
+++ b/drivers/infiniband/sw/siw/siw_main.c
@@ -628,3 +628,4 @@ module_init(siw_init_module);
  module_exit(siw_exit_module);

  MODULE_ALIAS_RDMA_LINK("siw");
+MODULE_SOFTDEP("ib_uverbs");
-- 
2.34.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-09-07 17:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-07 13:45 [PATCH] Add missing ib_uverbs dependency from SoftiWARP Tom Talpey
2022-09-07 13:51 ` Jason Gunthorpe
2022-09-07 13:57   ` Bernard Metzler
2022-09-07 13:57   ` Tom Talpey
2022-09-07 14:06     ` Jason Gunthorpe
2022-09-07 15:24       ` Tom Talpey
2022-09-07 16:48         ` Jason Gunthorpe
2022-09-07 17:54           ` Tom Talpey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox