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>
This commit is contained in:
parent
236f31bb21
commit
3314f2097d
@ -5,6 +5,7 @@
|
||||
* Shared functions for accessing and configuring the MAC
|
||||
*/
|
||||
|
||||
#include <linux/bitfield.h>
|
||||
#include "e1000.h"
|
||||
|
||||
static s32 e1000_check_downshift(struct e1000_hw *hw);
|
||||
|
@ -1,6 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/* Copyright(c) 2013 - 2019 Intel Corporation. */
|
||||
|
||||
#include <linux/bitfield.h>
|
||||
#include "fm10k_pf.h"
|
||||
#include "fm10k_vf.h"
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/* Copyright(c) 2013 - 2019 Intel Corporation. */
|
||||
|
||||
#include <linux/bitfield.h>
|
||||
#include "fm10k_vf.h"
|
||||
|
||||
/**
|
||||
|
@ -2,6 +2,7 @@
|
||||
/* Copyright(c) 2013 - 2021 Intel Corporation. */
|
||||
|
||||
#include <linux/avf/virtchnl.h>
|
||||
#include <linux/bitfield.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/etherdevice.h>
|
||||
#include <linux/pci.h>
|
||||
|
@ -1,6 +1,8 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/* Copyright(c) 2013 - 2021 Intel Corporation. */
|
||||
|
||||
#include <linux/bitfield.h>
|
||||
#include "i40e_adminq.h"
|
||||
#include "i40e_alloc.h"
|
||||
#include "i40e_dcb.h"
|
||||
#include "i40e_prototype.h"
|
||||
|
@ -1,6 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/* Copyright(c) 2013 - 2018 Intel Corporation. */
|
||||
|
||||
#include <linux/bitfield.h>
|
||||
#include <linux/delay.h>
|
||||
#include "i40e_alloc.h"
|
||||
#include "i40e_prototype.h"
|
||||
|
@ -1,10 +1,11 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/* Copyright(c) 2013 - 2018 Intel Corporation. */
|
||||
|
||||
#include <linux/avf/virtchnl.h>
|
||||
#include <linux/bitfield.h>
|
||||
#include "iavf_type.h"
|
||||
#include "iavf_adminq.h"
|
||||
#include "iavf_prototype.h"
|
||||
#include <linux/avf/virtchnl.h>
|
||||
|
||||
/**
|
||||
* iavf_aq_str - convert AQ err code to a string
|
||||
|
@ -1,11 +1,12 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/* Copyright(c) 2013 - 2018 Intel Corporation. */
|
||||
|
||||
#include <linux/bitfield.h>
|
||||
#include <linux/uaccess.h>
|
||||
|
||||
/* ethtool support for iavf */
|
||||
#include "iavf.h"
|
||||
|
||||
#include <linux/uaccess.h>
|
||||
|
||||
/* ethtool statistics helpers */
|
||||
|
||||
/**
|
||||
|
@ -3,6 +3,7 @@
|
||||
|
||||
/* flow director ethtool support for iavf */
|
||||
|
||||
#include <linux/bitfield.h>
|
||||
#include "iavf.h"
|
||||
|
||||
#define GTPU_PORT 2152
|
||||
|
@ -1,6 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/* Copyright(c) 2013 - 2018 Intel Corporation. */
|
||||
|
||||
#include <linux/bitfield.h>
|
||||
#include <linux/prefetch.h>
|
||||
|
||||
#include "iavf.h"
|
||||
|
@ -5,9 +5,9 @@
|
||||
* e1000_i211
|
||||
*/
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <linux/bitfield.h>
|
||||
#include <linux/if_ether.h>
|
||||
|
||||
#include <linux/types.h>
|
||||
#include "e1000_hw.h"
|
||||
#include "e1000_i210.h"
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/* Copyright(c) 2007 - 2018 Intel Corporation. */
|
||||
|
||||
#include <linux/if_ether.h>
|
||||
#include <linux/bitfield.h>
|
||||
#include <linux/delay.h>
|
||||
|
||||
#include <linux/if_ether.h>
|
||||
#include "e1000_mac.h"
|
||||
#include "e1000_nvm.h"
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/* Copyright(c) 2007 - 2018 Intel Corporation. */
|
||||
|
||||
#include <linux/if_ether.h>
|
||||
#include <linux/bitfield.h>
|
||||
#include <linux/delay.h>
|
||||
|
||||
#include <linux/if_ether.h>
|
||||
#include "e1000_mac.h"
|
||||
#include "e1000_phy.h"
|
||||
|
||||
|
@ -3,25 +3,25 @@
|
||||
|
||||
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/pci.h>
|
||||
#include <linux/vmalloc.h>
|
||||
#include <linux/pagemap.h>
|
||||
#include <linux/bitfield.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/netdevice.h>
|
||||
#include <linux/tcp.h>
|
||||
#include <linux/ipv6.h>
|
||||
#include <linux/slab.h>
|
||||
#include <net/checksum.h>
|
||||
#include <net/ip6_checksum.h>
|
||||
#include <linux/mii.h>
|
||||
#include <linux/ethtool.h>
|
||||
#include <linux/if_vlan.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/ipv6.h>
|
||||
#include <linux/mii.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/netdevice.h>
|
||||
#include <linux/pagemap.h>
|
||||
#include <linux/pci.h>
|
||||
#include <linux/prefetch.h>
|
||||
#include <linux/sctp.h>
|
||||
|
||||
#include <linux/slab.h>
|
||||
#include <linux/tcp.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/vmalloc.h>
|
||||
#include <net/checksum.h>
|
||||
#include <net/ip6_checksum.h>
|
||||
#include "igbvf.h"
|
||||
|
||||
char igbvf_driver_name[] = "igbvf";
|
||||
|
@ -1,6 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/* Copyright (c) 2018 Intel Corporation */
|
||||
|
||||
#include <linux/bitfield.h>
|
||||
#include <linux/delay.h>
|
||||
|
||||
#include "igc_hw.h"
|
||||
|
@ -1,6 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/* Copyright (c) 2018 Intel Corporation */
|
||||
|
||||
#include <linux/bitfield.h>
|
||||
#include "igc_phy.h"
|
||||
|
||||
/**
|
||||
|
@ -5,6 +5,7 @@
|
||||
#define _VIRTCHNL_H_
|
||||
|
||||
#include <linux/bitops.h>
|
||||
#include <linux/bits.h>
|
||||
#include <linux/overflow.h>
|
||||
#include <uapi/linux/if_ether.h>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user