public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/10] Use ARRAY_SIZE macro - v4.13-rc7
@ 2017-09-03 12:19 Thomas Meyer
  2017-09-03 12:19 ` [PATCH 7/10] net/mlx4_core: Use ARRAY_SIZE macro Thomas Meyer
                   ` (10 more replies)
  0 siblings, 11 replies; 24+ messages in thread
From: Thomas Meyer @ 2017-09-03 12:19 UTC (permalink / raw)
  To: linux-kernel

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.

Run against version v4.13-rc7

Let me know when you as a maintainer are not interested in these kind of patches.
I can exclude you by path; e.g. all findings in "drivers/scsi" will never
be reported again by this semi-automatic program runs.

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2017-10-19  3:50 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-03 12:19 [PATCH 0/10] Use ARRAY_SIZE macro - v4.13-rc7 Thomas Meyer
2017-09-03 12:19 ` [PATCH 7/10] net/mlx4_core: Use ARRAY_SIZE macro Thomas Meyer
2017-09-03 13:14   ` Tariq Toukan
2017-09-05 18:50   ` David Miller
2017-09-03 12:19 ` [PATCH 5/10] [media] lgdt3306a: " Thomas Meyer
2017-09-03 12:19 ` [PATCH 6/10] ixgbe: " Thomas Meyer
2017-09-05 18:50   ` David Miller
2017-09-05 19:45     ` Thomas Meyer
2017-09-05 20:01       ` Joe Perches
2017-09-05 21:22         ` David Miller
2017-09-06  9:08           ` Thomas Meyer
2017-09-06 15:19             ` Joe Perches
2017-09-03 12:19 ` [PATCH 8/10] ath9k: " Thomas Meyer
2017-09-25  7:15   ` [8/10] " Kalle Valo
2017-09-03 12:19 ` [PATCH 3/10] drm/i915/gvt: " Thomas Meyer
2017-09-03 12:19 ` [PATCH 4/10] drm/nouveau/bios/init: " Thomas Meyer
2017-09-03 12:19 ` [PATCH 2/10] drm/amdgpu: " Thomas Meyer
2017-09-03 12:19 ` [PATCH 9/10] [SCSI] bfa: " Thomas Meyer
2017-09-03 12:19 ` [PATCH 10/10] staging/atomisp: " Thomas Meyer
2017-09-03 12:19 ` [PATCH 1/10] KVM: PPC: Book3S HV: " Thomas Meyer
2017-10-19  3:44   ` Paul Mackerras
2017-09-03 15:36 ` [PATCH 0/10] Use ARRAY_SIZE macro - v4.13-rc7 Joe Perches
2017-09-03 19:59   ` Thomas Meyer
2017-09-03 20:20     ` Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox