1
0
Fork 0
alistair23-linux/drivers/staging
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
..
android compat_ioctl: move more drivers to compat_ptr_ioctl 2019-10-23 17:23:44 +02:00
axis-fifo staging: axis-fifo: remove unused pointer to memory resource 2019-11-03 13:09:01 +01:00
board staging: board: use appropriate macro to initialize struct 2019-09-30 21:57:57 +02:00
clocking-wizard staging: clocking-wizard: use devm_platform_ioremap_resource() to simplify code 2019-10-10 11:00:59 +02:00
comedi staging: comedi: usbduxfast: usbduxfast_ai_cmdtest rounding error 2019-11-22 11:32:54 +01:00
emxx_udc staging: emxx_udc: Fix invalid reference error 2019-10-30 10:38:46 +01:00
exfat staging: exfat: fix spelling mistake "maont" -> "mount" 2019-11-15 14:11:25 +08:00
fbtft staging: fbtft: Fix Kconfig indentation 2019-11-20 15:20:28 +01:00
fieldbus staging: fieldbus: anybuss: use devm_platform_ioremap_resource helper 2019-10-27 08:15:43 +01:00
fsl-dpaa2 staging: dpaa2-ethsw: ordered workqueue should be per ethsw 2019-11-13 00:10:16 +01:00
fwserial staging: fwserial: Fix Kconfig indentation (seven spaces) 2019-11-22 11:32:54 +01:00
gasket pci-v5.5-changes 2019-12-03 13:58:22 -08:00
gdm724x
goldfish staging: Remove dev_err() usage after platform_get_irq() 2019-07-30 20:50:04 +02:00
greybus staging: greybus: light: fix a couple double frees 2019-09-03 09:39:10 +02:00
gs_fpgaboot
hp hp100: Move 100BaseVG AnyLAN driver to staging 2019-10-31 14:49:52 -07:00
iio staging: iio: ad9834: add a check for devm_clk_get 2019-10-18 20:08:01 +01:00
isdn staging: isdn: remove assignment in if conditionals 2019-10-11 11:09:10 +02:00
kpc2000 staging: KPC2000: kpc2000_spi.c: Fix style issues (Unnecessary parenthesis) 2019-10-30 10:38:50 +01:00
ks7010
media media: hantro: Set H264 FIELDPIC_FLAG_E flag correctly 2019-11-10 18:00:08 +01:00
most Staging / IIO patches for 5.5-rc1 2019-11-27 10:57:52 -08:00
mt7621-dma staging: mt7621-dma: align to match open parenthesis 2019-11-07 16:14:10 +01:00
mt7621-dts
mt7621-pci MIPS: ralink: enable PCI support only if driver for mt7621 SoC is selected 2019-11-14 13:09:37 +08:00
mt7621-pci-phy
mt7621-pinctrl staging: mt7621-pinctrl: Add of_node_put() before return 2019-07-22 07:34:15 +02:00
netlogic Staging: Netlogic: Fix spelling mistake 2019-10-24 23:08:32 -04:00
nvec staging: nvec: Fix Kconfig indentation 2019-11-20 15:20:29 +01:00
octeon staging: octeon: indent with tabs instead of spaces 2019-11-22 11:32:54 +01:00
octeon-usb staging: octeon-usb: Fix line ending with a '(' 2019-10-28 16:41:42 +01:00
olpc_dcon staging: olpc_dcon: fix wrong dependencies in Kconfig file 2019-09-30 21:58:00 +02:00
pi433 compat_ioctl: remove most of fs/compat_ioctl.c 2019-12-01 13:46:15 -08:00
qlge treewide: Use sizeof_field() macro 2019-12-09 10:36:44 -08:00
ralink-gdma staging: ralink-gdma: use devm_platform_ioremap_resource() to simplify code 2019-10-24 22:40:38 -04:00
rtl8188eu staging: rtl*: Remove tasklet callback casts 2019-11-16 14:41:02 +01:00
rtl8192e staging: rtl8192e: remove set but not used variable 'frag' 2019-11-18 12:49:40 +01:00
rtl8192u staging: rtl*: Remove tasklet callback casts 2019-11-16 14:41:02 +01:00
rtl8712 staging: rtl*: Remove tasklet callback casts 2019-11-16 14:41:02 +01:00
rtl8723bs staging: rtl8723bs: remove set but not used variable 'change', 'pos' 2019-11-18 12:49:42 +01:00
rts5208 staging: rts5208: Eliminate the use of Camel Case in file sd.h 2019-11-01 10:55:10 +01:00
sm750fb staging: sm750fb: Replace multiple spaces with tabs when it suits 2019-10-30 10:38:47 +01:00
speakup staging: speakup: document sysfs attributes 2019-10-04 10:06:05 +02:00
unisys Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-08-19 11:54:03 -07:00
uwb staging: uwb: fix coccinelle warnings of comparison to bool 2019-10-24 23:03:00 -04:00
vc04_services staging: vchiq: Have vchiq_dump_* functions return an error code 2019-11-22 11:40:31 +01:00
vme compat_ioctl: move more drivers to compat_ptr_ioctl 2019-10-23 17:23:44 +02:00
vt6655 staging: vt6655: Fix long lines 2019-11-03 13:09:00 +01:00
vt6656 staging: vt6656: reorganize characters so the lines are under 80 ch 2019-10-07 12:27:59 +02:00
wfx treewide: Use sizeof_field() macro 2019-12-09 10:36:44 -08:00
wilc1000 staging: wilc1000: fix illegal memory access in wilc_parse_join_bss_param() 2019-11-11 16:37:59 +01:00
wlan-ng Merge 5.4-rc5 into staging-next 2019-10-27 18:56:09 +01:00
wusbcore staging: wusbcore: Fix build error without CONFIG_USB 2019-08-09 14:56:57 +02:00
Kconfig Staging / IIO patches for 5.5-rc1 2019-11-27 10:57:52 -08:00
Makefile Staging / IIO patches for 5.5-rc1 2019-11-27 10:57:52 -08:00