1
0
Fork 0
alistair23-linux/drivers/net/ethernet/hisilicon/hns3/hns3pf
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 net: hns3: fix compile error 2019-03-27 22:47:58 -07:00
hclge_cmd.c net: hns3: cleanup some print format warning 2019-10-31 12:03:23 -07:00
hclge_cmd.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-11-09 11:04:37 -08:00
hclge_dcb.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-11-16 21:51:42 -08:00
hclge_dcb.h net: hns3: Use the correct style for SPDX License Identifier 2019-11-05 17:45:38 -08:00
hclge_debugfs.c net: hns3: cleanup byte order issues when printed 2019-10-31 12:03:23 -07:00
hclge_debugfs.h net: hns3: use macro instead of magic number 2019-08-29 16:57:43 -07:00
hclge_err.c net: hns3: cleanup some print format warning 2019-10-31 12:03:23 -07:00
hclge_err.h net: hns3: implement .process_hw_error for hns3 client 2019-08-29 16:57:43 -07:00
hclge_main.c treewide: Use sizeof_field() macro 2019-12-09 10:36:44 -08:00
hclge_main.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-11-22 16:27:24 -08:00
hclge_mbx.c net: hns3: cleanup some print format warning 2019-10-31 12:03:23 -07:00
hclge_mdio.c net: hns3: cleanup some print format warning 2019-10-31 12:03:23 -07:00
hclge_mdio.h net: hns3: Use the correct style for SPDX License Identifier 2019-11-05 17:45:38 -08:00
hclge_tm.c treewide: Use sizeof_field() macro 2019-12-09 10:36:44 -08:00
hclge_tm.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-11-09 11:04:37 -08:00