From: Greg KH <gregkh@linuxfoundation.org>
To: Shraddha Barke <shraddha.6596@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH 1/2] Staging: sm750fb: Use ARRAY_SIZE macro
Date: Thu, 8 Oct 2015 09:49:46 +0100 [thread overview]
Message-ID: <20151008084946.GA4642@kroah.com> (raw)
In-Reply-To: <1444222177-11153-2-git-send-email-shraddha.6596@gmail.com>
On Wed, Oct 07, 2015 at 06:19:36PM +0530, Shraddha Barke wrote:
> ARRAY_SIZE is more concise to use when the size of an array is divided
> by the size of its type or the size of its first element.
>
> Change made using Coccinelle-
>
> @@
> type T;
> T[] E;
> @@
>
> - (sizeof(E)/sizeof(T))
> + ARRAY_SIZE(E)
>
> Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
> ---
> drivers/staging/sm750fb/ddk750_chip.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Doesn't apply to my tree :(
next prev parent reply other threads:[~2015-10-08 8:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-07 12:49 [PATCH 0/2] Use ARRAY_SIZE macro Shraddha Barke
2015-10-07 12:49 ` [PATCH 1/2] Staging: sm750fb: " Shraddha Barke
2015-10-08 7:05 ` [Outreachy kernel] " Julia Lawall
2015-10-08 8:49 ` Greg KH [this message]
2015-10-08 10:48 ` Shraddha Barke
2015-10-07 12:49 ` [PATCH 2/2] Staging: speakup: " Shraddha Barke
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=20151008084946.GA4642@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=outreachy-kernel@googlegroups.com \
--cc=shraddha.6596@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.