[net-next,1/3] bareudp: add module alias

Message ID 20200308011907.6751-1-ap420073@gmail.com
State New
Headers show
Series
  • [net-next,1/3] bareudp: add module alias
Related show

Commit Message

Taehee Yoo March 8, 2020, 1:19 a.m.
In the current bareudp code, there is no module alias.
So, RTNL couldn't load bareudp module automatically.

Signed-off-by: Taehee Yoo <ap420073@gmail.com>
---
 drivers/net/bareudp.c | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/drivers/net/bareudp.c b/drivers/net/bareudp.c
index 15337e9d4fad..b1210b516137 100644
--- a/drivers/net/bareudp.c
+++ b/drivers/net/bareudp.c
@@ -801,6 +801,7 @@  static void __exit bareudp_cleanup_module(void)
 }
 module_exit(bareudp_cleanup_module);
 
+MODULE_ALIAS_RTNL_LINK("bareudp");
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Martin Varghese <martin.varghese@nokia.com>");
 MODULE_DESCRIPTION("Interface driver for UDP encapsulated traffic");