1
0
Fork 0
alistair23-linux/drivers/net/ethernet/stmicro/stmmac
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
..
Kconfig net: stmmac: depend on COMMON_CLK 2019-08-30 14:35:02 -07:00
Makefile net: stmmac: Introduce selftests support 2019-05-24 13:45:56 -07:00
altr_tse_pcs.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00
altr_tse_pcs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00
chain_mode.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
common.h net: stmmac: Tune-up default coalesce settings 2019-11-15 12:25:41 -08:00
descs.h net: stmmac: Fix misuses of GENMASK macro 2019-07-11 14:30:07 -07:00
descs_com.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
dwmac-anarion.c net: of_get_phy_mode: Change API to solve int/unit warnings 2019-11-04 11:21:25 -08:00
dwmac-dwc-qos-eth.c net: stmmac: dwc-qos: use devm_platform_ioremap_resource() to simplify code 2019-08-21 13:52:34 -07:00
dwmac-generic.c net: stmmac: Add the bindings parsing for XGMAC2 2018-08-09 11:16:28 -07:00
dwmac-ipq806x.c net: of_get_phy_mode: Change API to solve int/unit warnings 2019-11-04 11:21:25 -08:00
dwmac-lpc18xx.c
dwmac-mediatek.c net: of_get_phy_mode: Change API to solve int/unit warnings 2019-11-04 11:21:25 -08:00
dwmac-meson.c net: stmmac: dwmac-meson: use devm_platform_ioremap_resource() to simplify code 2019-08-21 13:52:33 -07:00
dwmac-meson8b.c net: of_get_phy_mode: Change API to solve int/unit warnings 2019-11-04 11:21:25 -08:00
dwmac-oxnas.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 446 2019-06-05 17:37:18 +02:00
dwmac-qcom-ethqos.c net: stmmac: Fix return value check in qcom_ethqos_probe() 2019-01-24 22:13:03 -08:00
dwmac-rk.c net: of_get_phy_mode: Change API to solve int/unit warnings 2019-11-04 11:21:25 -08:00
dwmac-socfpga.c net: stmmac: socfpga: re-use the `interface` parameter from platform data 2019-09-16 09:22:24 +02:00
dwmac-sti.c net: of_get_phy_mode: Change API to solve int/unit warnings 2019-11-04 11:21:25 -08:00
dwmac-stm32.c net: ethernet: stmmac: fix indentation issue 2019-11-13 12:33:28 -08:00
dwmac-sun8i.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-11-16 21:51:42 -08:00
dwmac-sunxi.c net: of_get_phy_mode: Change API to solve int/unit warnings 2019-11-04 11:21:25 -08:00
dwmac4.h net: stmmac: gmac4+: Add Split Header support 2019-11-11 23:13:19 -08:00
dwmac4_core.c net: stmmac: Fix sparse warning 2019-11-11 23:13:19 -08:00
dwmac4_descs.c net: stmmac: gmac4+: Add Split Header support 2019-11-11 23:13:19 -08:00
dwmac4_descs.h net: stmmac: gmac4+: Add Split Header support 2019-11-11 23:13:19 -08:00
dwmac4_dma.c net: stmmac: gmac4+: Remove uneeded computation for RFA/RFD 2019-11-15 12:25:41 -08:00
dwmac4_dma.h net: stmmac: gmac4+: Add Split Header support 2019-11-11 23:13:19 -08:00
dwmac4_lib.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2019-06-17 20:20:36 -07:00
dwmac5.c net: stmmac: fix disabling flexible PPS output 2019-10-09 15:52:52 -07:00
dwmac5.h net: stmmac: Use the correct style for SPDX License Identifier 2019-11-16 12:14:20 -08:00
dwmac100.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
dwmac100_core.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2019-06-17 20:20:36 -07:00
dwmac100_dma.c net: stmmac: Fix descriptors address being in > 32 bits address space 2019-07-09 12:20:08 -07:00
dwmac1000.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2019-06-17 20:20:36 -07:00
dwmac1000_core.c net: stmmac: Remove break after a return 2019-10-09 21:12:30 -07:00
dwmac1000_dma.c net: stmmac: Fix descriptors address being in > 32 bits address space 2019-07-09 12:20:08 -07:00
dwmac_dma.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
dwmac_lib.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
dwxgmac2.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-11-16 21:51:42 -08:00
dwxgmac2_core.c net: stmmac: Fix sparse warning 2019-11-11 23:13:19 -08:00
dwxgmac2_descs.c net: stmmac: xgmac: Only get SPH header len if available 2019-11-06 21:22:55 -08:00
dwxgmac2_dma.c net: stmmac: xgmac: Remove uneeded computation for RFA/RFD 2019-11-15 12:25:41 -08:00
enh_desc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
hwif.c net: stmmac: xgmac: Implement MMC counters 2019-08-08 22:20:18 -07:00
hwif.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-11-16 21:51:42 -08:00
mmc.h net: stmmac: xgmac: Implement MMC counters 2019-08-08 22:20:18 -07:00
mmc_core.c net: stmmac: xgmac: Disable MMC interrupts by default 2019-11-06 21:22:55 -08:00
norm_desc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
ring_mode.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
stmmac.h net: stmmac: Implement L3/L4 Filters using TC Flower 2019-09-05 12:19:54 +02:00
stmmac_ethtool.c treewide: Use sizeof_field() macro 2019-12-09 10:36:44 -08:00
stmmac_hwtstamp.c net: stmmac: fixed new system time seconds value calculation 2019-06-22 16:16:23 -07:00
stmmac_main.c net: stmmac: reset Tx desc base address before restarting Tx 2019-12-06 11:50:36 -08:00
stmmac_mdio.c net: stmmac: xgmac: Add C45 PHY support in the MDIO callbacks 2019-11-11 23:13:19 -08:00
stmmac_pci.c PCI: Add PCI_STD_NUM_BARS for the number of standard BARs 2019-10-14 10:22:26 -05:00
stmmac_pcs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
stmmac_platform.c net: of_get_phy_mode: Change API to solve int/unit warnings 2019-11-04 11:21:25 -08:00
stmmac_platform.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
stmmac_ptp.c net: reject PTP periodic output requests with unsupported flags 2019-11-15 12:48:32 -08:00
stmmac_ptp.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
stmmac_selftests.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-11-09 11:04:37 -08:00
stmmac_tc.c net: stmmac: tc: Remove the speed dependency 2019-11-11 23:13:19 -08:00