From: David Miller <davem@davemloft.net>
To: thomas@m3y3r.de
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 6/10] ixgbe: Use ARRAY_SIZE macro
Date: Tue, 05 Sep 2017 11:50:44 -0700 (PDT) [thread overview]
Message-ID: <20170905.115044.551456011251065741.davem@davemloft.net> (raw)
In-Reply-To: <1504439110050-1907815276-6-diffsplit-thomas@m3y3r.de>
From: Thomas Meyer <thomas@m3y3r.de>
Date: Sun, 03 Sep 2017 14:19:31 +0200
> 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>
This should be submitted to the Intel ethernet driver maintainers.
Thank you.
next prev parent reply other threads:[~2017-09-05 18:50 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1504439110050-939061377-0-diffsplit-thomas@m3y3r.de>
2017-09-03 12:19 ` [PATCH 7/10] net/mlx4_core: Use ARRAY_SIZE macro Thomas Meyer
2017-09-03 13:14 ` Tariq Toukan
[not found] ` <1504439110050-1961876957-7-diffsplit-thomas-VsYtu1Qij5c@public.gmane.org>
2017-09-05 18:50 ` David Miller
2017-09-03 12:19 ` [PATCH 6/10] ixgbe: " Thomas Meyer
2017-09-05 18:50 ` David Miller [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170905.115044.551456011251065741.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=thomas@m3y3r.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).