2018-04-17 12:08:38

by Nicolas Dechesne

[permalink] [raw]
Subject: [PATCH] net: qrtr: add MODULE_ALIAS_NETPROTO macro

To ensure that qrtr can be loaded automatically, when needed, if it is compiled
as module.

Signed-off-by: Nicolas Dechesne <[email protected]>
---
net/qrtr/qrtr.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/net/qrtr/qrtr.c b/net/qrtr/qrtr.c
index b33e5aeb4c06..2aa07b547b16 100644
--- a/net/qrtr/qrtr.c
+++ b/net/qrtr/qrtr.c
@@ -1135,3 +1135,4 @@ module_exit(qrtr_proto_fini);

MODULE_DESCRIPTION("Qualcomm IPC-router driver");
MODULE_LICENSE("GPL v2");
+MODULE_ALIAS_NETPROTO(PF_QIPCRTR);
--
2.14.2



2018-04-17 14:00:32

by David Miller

[permalink] [raw]
Subject: Re: [PATCH] net: qrtr: add MODULE_ALIAS_NETPROTO macro

From: Nicolas Dechesne <[email protected]>
Date: Tue, 17 Apr 2018 14:03:26 +0200

> To ensure that qrtr can be loaded automatically, when needed, if it is compiled
> as module.
>
> Signed-off-by: Nicolas Dechesne <[email protected]>

Applied.