lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Tue, 1 Sep 2009 17:51:10 +0200
From:	Jesper Nilsson <Jesper.Nilsson@...s.com>
To:	Stoyan Gaydarov <sgayda2@...c.edu>
Cc:	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	Mikael Starvik <mikael.starvik@...s.com>,
	linux-cris-kernel <linux-cris-kernel@...s.com>
Subject: Re: [PATCH 7/7] [cris] ARRAY_SIZE changes

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@...c.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@...s.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ