All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 10/14] board/mpl/common/flash.c: Fix GCC 4.6 build warning
Date: Thu, 1 Dec 2011 23:14:24 +0100	[thread overview]
Message-ID: <201112012314.25106.marek.vasut@gmail.com> (raw)
In-Reply-To: <1322641077-829-11-git-send-email-wd@denx.de>

> Fix:
> ../common/flash.c: In function 'flash_init':
> ../common/flash.c:160:16: warning: variable 'size_b1' set but not used
> [-Wunused-but-set-variable]
> 
> Signed-off-by: Wolfgang Denk <wd@denx.de>
> Cc: Denis Peter <d.peter@mpl.ch>
> ---
> ERROR: space required after that ',' (ctx:VxV)
> #26: FILE: board/mpl/common/flash.c:160:
> +	unsigned long flashcr,size_reg;
>  	                     ^
> 
> total: 1 errors, 0 warnings, 15 lines checked
> 
> NOTE: Ignored message types: COMPLEX_MACRO CONSIDER_KSTRTO MINMAX
> MULTISTATEMENT_MACRO_USE_DO_WHILE
> 
> Error ignored.  No further cleanup attempted.
> 
>  board/mpl/common/flash.c |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)
> 
> diff --git a/board/mpl/common/flash.c b/board/mpl/common/flash.c
> index 81d7271..d5b63c0 100644
> --- a/board/mpl/common/flash.c
> +++ b/board/mpl/common/flash.c
> @@ -157,7 +157,7 @@ unsigned long flash_init (void)
>  	int i;
> 
>  #if !defined(CONFIG_PATI)
> -	unsigned long size_b1,flashcr,size_reg;
> +	unsigned long flashcr,size_reg;

Can you please add space after the comma (", ") ? Thank you.

>  	int mode;
>  	extern char version_string;
>  	char *p = &version_string;
> @@ -197,7 +197,6 @@ unsigned long flash_init (void)
>  #if !defined(CONFIG_PATI)
>  	/* protect reset vector */
>  	flash_info[0].protect[flash_info[0].sector_count-1] = 1;
> -	size_b1 = 0 ;
>  	flash_info[0].size = size_b0;
>  	/* set up flash cs according to the size */
>  	size_reg=(flash_info[0].size >>20);

Otherwise, logic looks OK

Acked-by: Marek Vasut <marek.vasut@gmail.com>

  reply	other threads:[~2011-12-01 22:14 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-30  8:17 [U-Boot] [PATCH 00/14] More fixes GCC 4.6 build warnings Wolfgang Denk
2011-11-30  8:17 ` [U-Boot] [PATCH 01/14] alpr board: Fix " Wolfgang Denk
2011-12-01  8:55   ` Stefan Roese
2011-12-01 23:09   ` Wolfgang Denk
2011-11-30  8:17 ` [U-Boot] [PATCH 02/14] board/amirix/ap1000/flash.c: Fix GCC 4.6 build warning Wolfgang Denk
2011-12-01 22:10   ` Marek Vasut
2011-12-01 23:10   ` Wolfgang Denk
2011-11-30  8:17 ` [U-Boot] [PATCH 03/14] drivers/block/sata_dwc.c: " Wolfgang Denk
2011-12-01 23:10   ` Wolfgang Denk
2011-11-30  8:17 ` [U-Boot] [PATCH 04/14] board/cray/L1/flash.c: " Wolfgang Denk
2011-12-01 22:10   ` Marek Vasut
2011-12-01 23:11   ` Wolfgang Denk
2011-11-30  8:17 ` [U-Boot] [PATCH 05/14] DB64360: Fix GCC 4.6 build warnings Wolfgang Denk
2011-12-01 23:11   ` Wolfgang Denk
2011-11-30  8:17 ` [U-Boot] [PATCH 06/14] DB64460: " Wolfgang Denk
2011-12-01 23:11   ` Wolfgang Denk
2011-11-30  8:17 ` [U-Boot] [PATCH 07/14] board/sandburst/common/flash.c: Fix GCC 4.6 build warning Wolfgang Denk
2011-12-01 22:11   ` Marek Vasut
2011-12-01 23:12   ` Wolfgang Denk
2011-11-30  8:17 ` [U-Boot] [PATCH 08/14] drivers/usb/host/sl811-hcd.c: " Wolfgang Denk
2011-12-01 22:13   ` Marek Vasut
2011-12-01 23:13     ` Wolfgang Denk
2011-12-01 23:14   ` Wolfgang Denk
2011-11-30  8:17 ` [U-Boot] [PATCH 09/14] post/board/lwmon5/gdc.c: " Wolfgang Denk
2011-12-01  8:55   ` Stefan Roese
2011-12-01 23:14   ` Wolfgang Denk
2011-11-30  8:17 ` [U-Boot] [PATCH 10/14] board/mpl/common/flash.c: " Wolfgang Denk
2011-12-01 22:14   ` Marek Vasut [this message]
2011-12-01 23:15     ` Wolfgang Denk
2011-12-01 23:16   ` Wolfgang Denk
2011-11-30  8:17 ` [U-Boot] [PATCH 11/14] board/freescale/mpc8610hpcd/mpc8610hpcd.c: " Wolfgang Denk
2011-11-30 13:55   ` Kumar Gala
2011-12-01 23:16   ` Wolfgang Denk
2011-11-30  8:17 ` [U-Boot] [PATCH 12/14] arch/powerpc/cpu/mpc86xx/cpu.c: " Wolfgang Denk
2011-11-30 13:55   ` Kumar Gala
2011-12-01 23:16   ` Wolfgang Denk
2011-11-30  8:17 ` [U-Boot] [PATCH 13/14] board/sbc405/strataflash.c: " Wolfgang Denk
2011-12-01 22:14   ` Marek Vasut
2011-12-01 23:17   ` Wolfgang Denk
2011-11-30  8:17 ` [U-Boot] [PATCH 14/14] board/emk/top860/top860.c: " Wolfgang Denk
2011-12-01 23:17   ` Wolfgang Denk

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=201112012314.25106.marek.vasut@gmail.com \
    --to=marek.vasut@gmail.com \
    --cc=u-boot@lists.denx.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 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.