Commit 8d2b2281 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Paolo Abeni

mac_pton: Clean up the header inclusions

Since hex_to_bin() is provided by hex.h there is no need to require
kernel.h. Replace the latter by the former and add missing export.h.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230604132858.6650-1-andriy.shevchenko@linux.intel.comSigned-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 7b355b76
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
#include <linux/string.h> #include <linux/string.h>
#include <linux/if_ether.h> #include <linux/if_ether.h>
#include <linux/ctype.h> #include <linux/ctype.h>
#include <linux/kernel.h> #include <linux/export.h>
#include <linux/hex.h>
bool mac_pton(const char *s, u8 *mac) bool mac_pton(const char *s, u8 *mac)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment