net: core: move mac_pton() to lib/net_utils.c
Since we have at least one user of this function outside of CONFIG_NET scope, we have to provide this function independently. The proposed solution is to move it under lib/net_utils.c with corresponding configuration variable and select wherever it is needed. Signed-off-by:Andy Shevchenko <andy.shevchenko@gmail.com> Reported-by:
Arnd Bergmann <arnd@arndb.de> Acked-by:
David S. Miller <davem@davemloft.net> Acked-by:
Arnd Bergmann <arnd@arndb.de> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
- drivers/misc/Kconfig 1 addition, 0 deletionsdrivers/misc/Kconfig
- drivers/net/netconsole.c 1 addition, 0 deletionsdrivers/net/netconsole.c
- include/linux/if_ether.h 0 additions, 1 deletioninclude/linux/if_ether.h
- include/linux/kernel.h 2 additions, 0 deletionsinclude/linux/kernel.h
- lib/Kconfig 3 additions, 0 deletionslib/Kconfig
- lib/Makefile 2 additions, 0 deletionslib/Makefile
- lib/net_utils.c 26 additions, 0 deletionslib/net_utils.c
- net/Kconfig 1 addition, 0 deletionsnet/Kconfig
- net/core/netpoll.c 1 addition, 0 deletionsnet/core/netpoll.c
- net/core/utils.c 0 additions, 22 deletionsnet/core/utils.c
Loading
Please register or sign in to comment