Skip to content

Commit c00d33f

Browse files
alobakinkuba-moo
authored andcommitted
idpf: make virtchnl2.h self-contained
To ease maintaining of virtchnl2.h, which already is messy enough, make it self-contained by adding missing if_ether.h include due to %ETH_ALEN usage. At the same time, virtchnl2_lan_desc.h is not used anywhere in the file, so move this include to idpf_txrx.h to speed up C preprocessing. Acked-by: Kees Cook <[email protected]> Acked-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Alexander Lobakin <[email protected]> Reviewed-by: Przemek Kitszel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent ca7e324 commit c00d33f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

drivers/net/ethernet/intel/idpf/idpf_txrx.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
#include <net/tcp.h>
99
#include <net/netdev_queues.h>
1010

11+
#include "virtchnl2_lan_desc.h"
12+
1113
#define IDPF_LARGE_MAX_Q 256
1214
#define IDPF_MAX_Q 16
1315
#define IDPF_MIN_Q 2

drivers/net/ethernet/intel/idpf/virtchnl2.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#ifndef _VIRTCHNL2_H_
55
#define _VIRTCHNL2_H_
66

7+
#include <linux/if_ether.h>
8+
79
/* All opcodes associated with virtchnl2 are prefixed with virtchnl2 or
810
* VIRTCHNL2. Any future opcodes, offloads/capabilities, structures,
911
* and defines must be prefixed with virtchnl2 or VIRTCHNL2 to avoid confusion.
@@ -17,8 +19,6 @@
1719
* must remain unchanged over time, so we specify explicit values for all enums.
1820
*/
1921

20-
#include "virtchnl2_lan_desc.h"
21-
2222
/* This macro is used to generate compilation errors if a structure
2323
* is not exactly the correct length.
2424
*/

0 commit comments

Comments
 (0)