[v4,1/5] batman-adv: Define module rtnl link name

Message ID 1465592459-9474-1-git-send-email-sven@narfation.org (mailing list archive)
State Accepted, archived
Commit c321b82a8147ff3c4c35e4197f7ee1be0eeb4a84
Delegated to: Marek Lindner
Headers

Commit Message

Sven Eckelmann June 10, 2016, 9 p.m. UTC
  The batman-adv module can automatically be loaded when operations over the
rtnl link are triggered. This requires only the correct rtnl link name in
the module header.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
v4:
 - rebase on top of current master
v3:
 - rebased on top of current master to fix conflicts with newest patches
v2:
 - rebased on top of current master to fix conflicts with newest patches
---
 net/batman-adv/main.c | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Marek Lindner June 13, 2016, 4:45 a.m. UTC | #1
On Friday, June 10, 2016 23:00:55 Sven Eckelmann wrote:
> The batman-adv module can automatically be loaded when operations over the
> rtnl link are triggered. This requires only the correct rtnl link name in
> the module header.
> 
> Signed-off-by: Sven Eckelmann <sven@narfation.org>
> ---
> v4:
>  - rebase on top of current master
> v3:
>  - rebased on top of current master to fix conflicts with newest patches
> v2:
>  - rebased on top of current master to fix conflicts with newest patches
> ---
>  net/batman-adv/main.c | 1 +
>  1 file changed, 1 insertion(+)

Applied in revision c321b82.

Thanks,
Marek
  

Patch

diff --git a/net/batman-adv/main.c b/net/batman-adv/main.c
index fe4c5e2..f61479b 100644
--- a/net/batman-adv/main.c
+++ b/net/batman-adv/main.c
@@ -638,3 +638,4 @@  MODULE_AUTHOR(BATADV_DRIVER_AUTHOR);
 MODULE_DESCRIPTION(BATADV_DRIVER_DESC);
 MODULE_SUPPORTED_DEVICE(BATADV_DRIVER_DEVICE);
 MODULE_VERSION(BATADV_SOURCE_VERSION);
+MODULE_ALIAS_RTNL_LINK("batadv");