1
0
Fork 0
alistair23-linux/drivers/net/ethernet/intel/igc
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 igc: Add ethtool support 2019-02-05 17:35:46 -08:00
igc.h igc: Clean up unused shadow_vfta pointer 2019-10-21 10:27:01 -07:00
igc_base.c igc: Add more SKUs for i225 device 2019-07-24 13:55:09 -07:00
igc_base.h igc: Add tx_csum offload functionality 2019-09-09 11:37:14 -07:00
igc_defines.h igc: Add Rx checksum support 2019-10-21 10:26:39 -07:00
igc_ethtool.c treewide: Use sizeof_field() macro 2019-12-09 10:36:44 -08:00
igc_hw.h igc: Add set_rx_mode support 2019-10-21 10:22:13 -07:00
igc_i225.c igc: Add NVM support 2018-10-17 13:52:00 -07:00
igc_i225.h igc: Add NVM support 2018-10-17 13:52:00 -07:00
igc_mac.c igc: Add set_rx_mode support 2019-10-21 10:22:13 -07:00
igc_mac.h igc: Add set_rx_mode support 2019-10-21 10:22:13 -07:00
igc_main.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-11-09 11:04:37 -08:00
igc_nvm.c igc: Add NVM support 2018-10-17 13:52:00 -07:00
igc_nvm.h igc: Add NVM support 2018-10-17 13:52:00 -07:00
igc_phy.c igc: Remove useless forward declaration 2019-09-09 10:08:38 -07:00
igc_phy.h igc: Add setup link functionality 2018-10-17 13:56:55 -07:00
igc_regs.h igc: Extend the ethtool supporting 2019-03-19 14:45:23 -07:00