public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jesper Nilsson <Jesper.Nilsson@axis.com>
To: Stoyan Gaydarov <sgayda2@uiuc.edu>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Mikael Starvik <mikael.starvik@axis.com>,
	linux-cris-kernel <linux-cris-kernel@axis.com>
Subject: Re: [PATCH 7/7] [cris] ARRAY_SIZE changes
Date: Tue, 1 Sep 2009 17:51:10 +0200	[thread overview]
Message-ID: <20090901155110.GS18552@axis.com> (raw)
In-Reply-To: <1248231753-8344-8-git-send-email-sgayda2@uiuc.edu>

On Wed, Jul 22, 2009 at 05:02:33AM +0200, Stoyan Gaydarov wrote:
> These changes were a direct result of using a semantic patch
> More information can be found at http://www.emn.fr/x-info/coccinelle/

Thanks, added to the cris-tree.

> Signed-off-by: Stoyan Gaydarov <sgayda2@uiuc.edu>
> ---
>  arch/cris/arch-v32/mach-a3/io.c |    2 +-
>  arch/cris/arch-v32/mach-fs/io.c |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/cris/arch-v32/mach-a3/io.c b/arch/cris/arch-v32/mach-a3/io.c
> index c22f67e..090ceb9 100644
> --- a/arch/cris/arch-v32/mach-a3/io.c
> +++ b/arch/cris/arch-v32/mach-a3/io.c
> @@ -36,7 +36,7 @@ struct crisv32_ioport crisv32_ioports[] = {
>  	},
>  };
>  
> -#define NBR_OF_PORTS sizeof(crisv32_ioports)/sizeof(struct crisv32_ioport)
> +#define NBR_OF_PORTS ARRAY_SIZE(crisv32_ioports)
>  
>  struct crisv32_iopin crisv32_led_net0_green;
>  struct crisv32_iopin crisv32_led_net0_red;
> diff --git a/arch/cris/arch-v32/mach-fs/io.c b/arch/cris/arch-v32/mach-fs/io.c
> index cb6327b..a695866 100644
> --- a/arch/cris/arch-v32/mach-fs/io.c
> +++ b/arch/cris/arch-v32/mach-fs/io.c
> @@ -52,7 +52,7 @@ struct crisv32_ioport crisv32_ioports[] = {
>  	}
>  };
>  
> -#define NBR_OF_PORTS sizeof(crisv32_ioports)/sizeof(struct crisv32_ioport)
> +#define NBR_OF_PORTS ARRAY_SIZE(crisv32_ioports)
>  
>  struct crisv32_iopin crisv32_led_net0_green;
>  struct crisv32_iopin crisv32_led_net0_red;
> -- 
> 1.6.3.3
/^JN - Jesper Nilsson
-- 
               Jesper Nilsson -- jesper.nilsson@axis.com

  reply	other threads:[~2009-09-01 15:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-22  3:02 [PATCH 0/7] ARRAY_SIZE changes Stoyan Gaydarov
2009-07-22  3:02 ` [PATCH 1/7] [staging] " Stoyan Gaydarov
2009-07-22  3:02   ` [PATCH 2/7] [isdn] " Stoyan Gaydarov
2009-07-22  3:02     ` [PATCH 3/7] [video] " Stoyan Gaydarov
2009-07-22  3:02       ` [PATCH 4/7] [drivers] " Stoyan Gaydarov
2009-07-22  3:02         ` [PATCH 5/7] [powerpc] " Stoyan Gaydarov
2009-07-22  3:02           ` [PATCH 6/7] [ia64] " Stoyan Gaydarov
2009-07-22  3:02             ` [PATCH 7/7] [cris] " Stoyan Gaydarov
2009-09-01 15:51               ` Jesper Nilsson [this message]
2009-07-24 10:51     ` [PATCH 2/7] [isdn] " Karsten Keil

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=20090901155110.GS18552@axis.com \
    --to=jesper.nilsson@axis.com \
    --cc=linux-cris-kernel@axis.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mikael.starvik@axis.com \
    --cc=sgayda2@uiuc.edu \
    /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