Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230604132858.6650-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Andy Shevchenko and committed by
Paolo Abeni
8d2b2281 7b355b76

+2 -1
+2 -1
lib/net_utils.c
··· 2 2 #include <linux/string.h> 3 3 #include <linux/if_ether.h> 4 4 #include <linux/ctype.h> 5 - #include <linux/kernel.h> 5 + #include <linux/export.h> 6 + #include <linux/hex.h> 6 7 7 8 bool mac_pton(const char *s, u8 *mac) 8 9 {