diff options
| author | Andy Shevchenko <[email protected]> | 2023-06-04 13:28:58 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2023-06-06 11:18:32 +0000 |
| commit | 8d2b2281aea90ab265733c3cda83b73a01ca352f (patch) | |
| tree | c8b856aa042e4c551989f983f8f198980369dd76 /lib/net_utils.c | |
| parent | gro: decrease size of CB (diff) | |
| download | kernel-8d2b2281aea90ab265733c3cda83b73a01ca352f.tar.gz kernel-8d2b2281aea90ab265733c3cda83b73a01ca352f.zip | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'lib/net_utils.c')
| -rw-r--r-- | lib/net_utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/net_utils.c b/lib/net_utils.c index c17201df3d08..42bb0473fb22 100644 --- 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) { |
