Skip to content

Commit 3314f20

Browse files
jbrandebanguy11
authored andcommitted
intel: add bit macro includes where needed
This series is introducing the use of FIELD_GET and FIELD_PREP which requires bitfield.h to be included. Fix all the includes in this one change, and rearrange includes into alphabetical order to ease readability and future maintenance. virtchnl.h and it's usage was modified to have it's own includes as it should. This required including bits.h for virtchnl.h. Reviewed-by: Marcin Szycik <marcin.szycik@linux.intel.com> Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
1 parent 236f31b commit 3314f20

17 files changed

Lines changed: 37 additions & 23 deletions

File tree

drivers/net/ethernet/intel/e1000/e1000_hw.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Shared functions for accessing and configuring the MAC
66
*/
77

8+
#include <linux/bitfield.h>
89
#include "e1000.h"
910

1011
static s32 e1000_check_downshift(struct e1000_hw *hw);

drivers/net/ethernet/intel/fm10k/fm10k_pf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// SPDX-License-Identifier: GPL-2.0
22
/* Copyright(c) 2013 - 2019 Intel Corporation. */
33

4+
#include <linux/bitfield.h>
45
#include "fm10k_pf.h"
56
#include "fm10k_vf.h"
67

drivers/net/ethernet/intel/fm10k/fm10k_vf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// SPDX-License-Identifier: GPL-2.0
22
/* Copyright(c) 2013 - 2019 Intel Corporation. */
33

4+
#include <linux/bitfield.h>
45
#include "fm10k_vf.h"
56

67
/**

drivers/net/ethernet/intel/i40e/i40e_common.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/* Copyright(c) 2013 - 2021 Intel Corporation. */
33

44
#include <linux/avf/virtchnl.h>
5+
#include <linux/bitfield.h>
56
#include <linux/delay.h>
67
#include <linux/etherdevice.h>
78
#include <linux/pci.h>

drivers/net/ethernet/intel/i40e/i40e_dcb.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// SPDX-License-Identifier: GPL-2.0
22
/* Copyright(c) 2013 - 2021 Intel Corporation. */
33

4+
#include <linux/bitfield.h>
5+
#include "i40e_adminq.h"
46
#include "i40e_alloc.h"
57
#include "i40e_dcb.h"
68
#include "i40e_prototype.h"

drivers/net/ethernet/intel/i40e/i40e_nvm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// SPDX-License-Identifier: GPL-2.0
22
/* Copyright(c) 2013 - 2018 Intel Corporation. */
33

4+
#include <linux/bitfield.h>
45
#include <linux/delay.h>
56
#include "i40e_alloc.h"
67
#include "i40e_prototype.h"

drivers/net/ethernet/intel/iavf/iavf_common.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
// SPDX-License-Identifier: GPL-2.0
22
/* Copyright(c) 2013 - 2018 Intel Corporation. */
33

4+
#include <linux/avf/virtchnl.h>
5+
#include <linux/bitfield.h>
46
#include "iavf_type.h"
57
#include "iavf_adminq.h"
68
#include "iavf_prototype.h"
7-
#include <linux/avf/virtchnl.h>
89

910
/**
1011
* iavf_aq_str - convert AQ err code to a string

drivers/net/ethernet/intel/iavf/iavf_ethtool.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
// SPDX-License-Identifier: GPL-2.0
22
/* Copyright(c) 2013 - 2018 Intel Corporation. */
33

4+
#include <linux/bitfield.h>
5+
#include <linux/uaccess.h>
6+
47
/* ethtool support for iavf */
58
#include "iavf.h"
69

7-
#include <linux/uaccess.h>
8-
910
/* ethtool statistics helpers */
1011

1112
/**

drivers/net/ethernet/intel/iavf/iavf_fdir.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
/* flow director ethtool support for iavf */
55

6+
#include <linux/bitfield.h>
67
#include "iavf.h"
78

89
#define GTPU_PORT 2152

drivers/net/ethernet/intel/iavf/iavf_txrx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// SPDX-License-Identifier: GPL-2.0
22
/* Copyright(c) 2013 - 2018 Intel Corporation. */
33

4+
#include <linux/bitfield.h>
45
#include <linux/prefetch.h>
56

67
#include "iavf.h"

0 commit comments

Comments
 (0)