1
0
Fork 0
alistair23-linux/drivers/net/ethernet/qlogic/qlcnic
Pankaj Bharadiya c593642c8b treewide: Use sizeof_field() macro
Replace all the occurrences of FIELD_SIZEOF() with sizeof_field() except
at places where these are defined. Later patches will remove the unused
definition of FIELD_SIZEOF().

This patch is generated using following script:

EXCLUDE_FILES="include/linux/stddef.h|include/linux/kernel.h"

git grep -l -e "\bFIELD_SIZEOF\b" | while read file;
do

	if [[ "$file" =~ $EXCLUDE_FILES ]]; then
		continue
	fi
	sed -i  -e 's/\bFIELD_SIZEOF\b/sizeof_field/g' $file;
done

Signed-off-by: Pankaj Bharadiya <pankaj.laxminarayan.bharadiya@intel.com>
Link: https://lore.kernel.org/r/20190924105839.110713-3-pankaj.laxminarayan.bharadiya@intel.com
Co-developed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: David Miller <davem@davemloft.net> # for net
2019-12-09 10:36:44 -08:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
qlcnic.h qlogic: qlcnic: fix use of SPEED_UNKNOWN ethtool constant 2019-04-08 16:30:43 -07:00
qlcnic_83xx_hw.c pci-v4.20-changes 2018-10-25 06:50:48 -07:00
qlcnic_83xx_hw.h qlcnic: fix Tx descriptor corruption on 82xx devices 2018-09-29 11:46:07 -07:00
qlcnic_83xx_init.c qlcnic: Replace ndo_add/del_vxlan_port with ndo_add/del_udp_enc_port 2016-06-17 20:23:31 -07:00
qlcnic_83xx_vnic.c qlcnic: fix a loop exit condition better 2015-12-24 11:02:35 -05:00
qlcnic_ctx.c cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
qlcnic_dcb.c qlcnic: fix a return in qlcnic_dcb_get_capability() 2018-10-22 19:34:16 -07:00
qlcnic_dcb.h net: qlcnic: avoid superfluous assignement 2016-08-01 13:47:00 -07:00
qlcnic_ethtool.c treewide: Use sizeof_field() macro 2019-12-09 10:36:44 -08:00
qlcnic_hdr.h
qlcnic_hw.c ethernet/qlogic: remove unused array msi_tgt_status 2018-08-09 14:16:51 -07:00
qlcnic_hw.h qlcnic: fix Tx descriptor corruption on 82xx devices 2018-09-29 11:46:07 -07:00
qlcnic_init.c qlcnic: remove redundant zero check on retries counter 2017-09-01 10:33:55 -07:00
qlcnic_io.c net: Use skb accessors in network drivers 2019-07-22 20:47:56 -07:00
qlcnic_main.c drivers: use in_dev_for_each_ifa_rtnl/rcu 2019-06-02 18:06:26 -07:00
qlcnic_minidump.c qlcnic: remove unnecessary static in qlcnic_dump_fw() 2017-07-19 16:33:57 -07:00
qlcnic_sriov.h net: Update API for VF vlan protocol 802.1ad support 2016-09-24 08:01:26 -04:00
qlcnic_sriov_common.c qlcnic: Remove set but not used variables 'fw_mbx' and 'hdr_size' 2018-09-12 20:33:11 -07:00
qlcnic_sriov_pf.c qlcnic: remove redundant assignment to variable err 2019-07-03 11:33:55 -07:00
qlcnic_sysfs.c qlogic: check kstrtoul() for errors 2018-07-13 18:28:58 -07:00