Skip to content

Commit

Permalink
mac_pton: Clean up the header inclusions
Browse files Browse the repository at this point in the history
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
  • Loading branch information
andy-shev authored and Paolo Abeni committed Jun 6, 2023
1 parent 7b355b7 commit 8d2b228
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/net_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 8d2b228

Please sign in to comment.