From: Jason Gunthorpe Date: Mon, 14 Aug 2017 20:57:38 +0000 (-0600) Subject: rdma: Allow demand loading of NETLINK_RDMA X-Git-Tag: v4.14-rc2~9^2~99 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1eb5be0ec79a7b21cd6b5b73d9de294dc1809e0f;p=platform%2Fkernel%2Flinux-exynos.git rdma: Allow demand loading of NETLINK_RDMA Provide a module alias so that if userspace opens a netlink socket for RDMA the kernel support is loaded automatically. Signed-off-by: Jason Gunthorpe Reviewed-by: Leon Romanovsky Signed-off-by: Doug Ledford --- diff --git a/drivers/infiniband/core/netlink.c b/drivers/infiniband/core/netlink.c index 27352a3..f782697 100644 --- a/drivers/infiniband/core/netlink.c +++ b/drivers/infiniband/core/netlink.c @@ -38,6 +38,7 @@ #include #include #include +#include #include "core_priv.h" #include "core_priv.h" @@ -290,3 +291,5 @@ void rdma_nl_exit(void) netlink_kernel_release(nls); } + +MODULE_ALIAS_NET_PF_PROTO(PF_NETLINK, NETLINK_RDMA);