kernel_optimize_test/drivers
Thomas Meyer 691223ec97 net/mlx4_core: Use ARRAY_SIZE macro
Use ARRAY_SIZE macro, rather than explicitly coding some variant of it
yourself.
Found with: find -type f -name "*.c" -o -name "*.h" | xargs perl -p -i -e
's/\bsizeof\s*\(\s*(\w+)\s*\)\s*\ /\s*sizeof\s*\(\s*\1\s*\[\s*0\s*\]\s*\)
/ARRAY_SIZE(\1)/g' and manual check/verification.

Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-09-05 11:49:16 -07:00
..
accessibility
acpi Merge branches 'acpica-fix', 'acpi-ec-fix' and 'acpi-properties-fix' 2017-08-24 22:22:53 +02:00
amba
android ANDROID: binder: fix proc->tsk check. 2017-08-22 18:42:57 -07:00
ata Revert "libata: quirk read log on no-name M.2 SSD" 2017-08-29 08:36:58 -07:00
atm
auxdisplay
base
bcma
block Merge branch 'for-linus' of git://git.kernel.dk/linux-block 2017-08-31 18:42:21 -07:00
bluetooth Bluetooth: hci_bcm: Handle empty packet after firmware loading 2017-08-17 22:51:50 +03:00
bus
cdrom
char
clk
clocksource
connector
cpufreq
cpuidle
crypto
dax
dca
devfreq
dio
dma
dma-buf
edac
eisa
extcon
firewire
firmware
fmc
fpga
fsi
gpio
gpu drm/amdgpu: update to new mmu_notifier semantic 2017-08-31 16:12:59 -07:00
hid
hsi
hv vmbus: remove unused vmbus_sendpacket_ctl 2017-08-16 16:27:45 -07:00
hwmon
hwspinlock
hwtracing
i2c i2c: designware: Fix runtime PM for I2C slave mode 2017-08-17 17:55:29 +02:00
ide
idle
iio iio: magnetometer: st_magn: remove ihl property for LSM303AGR 2017-08-20 15:21:49 +01:00
infiniband Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-09-01 17:42:05 -07:00
input Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 2017-09-01 10:43:37 -07:00
iommu iommu/intel: update to new mmu_notifier semantic 2017-08-31 16:12:59 -07:00
ipack
irqchip
isdn Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-08-15 20:23:23 -07:00
leds
lguest
lightnvm
macintosh
mailbox
mcb
md dm mpath: do not lock up a CPU with requeuing activity 2017-08-28 09:58:27 -04:00
media
memory
memstick
message
mfd ARM: SoC fixes for 4.13 2017-08-24 14:01:18 -07:00
misc sgi-gru: update to new mmu_notifier semantic 2017-08-31 16:13:00 -07:00
mmc mmc: sdhci-xenon: add set_power callback 2017-08-30 14:11:47 +02:00
mtd mtd: nand: atmel: Relax tADL_min constraint 2017-08-24 20:59:50 -07:00
mux
net net/mlx4_core: Use ARRAY_SIZE macro 2017-09-05 11:49:16 -07:00
nfc
ntb
nubus
nvdimm
nvme nvme-pci: use dma memory for the host memory buffer descriptors 2017-08-30 14:46:16 +02:00
nvmem
of Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-08-21 17:06:42 -07:00
oprofile
parisc parisc: pci memory bar assignment fails with 64bit kernels on dino/cujo 2017-08-16 09:50:39 +02:00
parport
pci pci-v4.13-fixes-3 2017-08-26 12:46:14 -07:00
pcmcia
perf
phy phy: add the mvebu cp110 comphy driver 2017-08-30 15:17:45 -07:00
pinctrl
platform
pnp
power
powercap
pps
ps3
ptp ptp: make ptp_clock_info const 2017-08-22 11:04:51 -07:00
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc rtc: ds1307: fix regmap config 2017-08-21 11:08:03 +02:00
s390 Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-09-01 17:42:05 -07:00
sbus
scsi SCSI fixes on 20170830 2017-08-30 15:03:00 -07:00
sfi
sh
sn
soc soc: ti: knav: Add a NULL pointer check for kdev in knav_pool_create 2017-08-21 09:19:50 +02:00
spi
spmi
ssb
staging Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-09-01 17:42:05 -07:00
target
tc
tee
thermal
thunderbolt
tty pty: Repair TIOCGPTPEER 2017-08-24 13:23:03 -07:00
uio
usb
uwb
vfio
vhost net: convert (struct ubuf_info)->refcnt to refcount_t 2017-09-01 20:22:03 -07:00
video
virt
virtio Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-09-01 17:42:05 -07:00
vlynq
vme
w1
watchdog
xen xen/gntdev: update to new mmu_notifier semantic 2017-08-31 16:13:00 -07:00
zorro
Kconfig
Makefile