projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b355b7
)
mac_pton: Clean up the header inclusions
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Sun, 4 Jun 2023 13:28:58 +0000
(16:28 +0300)
committer
Paolo Abeni
<pabeni@redhat.com>
Tue, 6 Jun 2023 11:18:32 +0000
(13:18 +0200)
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>
lib/net_utils.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/net_utils.c
b/lib/net_utils.c
index c17201df3d08142bfc0e64b5903d0838afa710bf..42bb0473fb22f977409f7a6792bb1340f4e911c3 100644
(file)
--- a/
lib/net_utils.c
+++ b/
lib/net_utils.c
@@
-2,7
+2,8
@@
#include <linux/string.h>
#include <linux/if_ether.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)
{