[U-Boot] [PATCH 3/9] GCC4.6: Squash warnings in denali_spd_ddr2.c
Wolfgang Denk
wd at denx.de
Thu Oct 27 23:56:07 CEST 2011
Dear Marek Vasut,
In message <1319535462-20693-4-git-send-email-marek.vasut at gmail.com> you wrote:
> denali_spd_ddr2.c: In function 'get_spd_info':
> denali_spd_ddr2.c:363: warning: format '%d' expects type 'int', but argument 2
> has type 'long unsigned int'
> denali_spd_ddr2.c: In function 'check_frequency':
> denali_spd_ddr2.c:390: warning: format '%d' expects type 'int', but argument 2
> has type 'long unsigned int'
> denali_spd_ddr2.c: In function 'get_dimm_size':
> denali_spd_ddr2.c:473: warning: format '%d' expects type 'int', but argument 2
> has type 'long unsigned int'
> denali_spd_ddr2.c:474: warning: format '%d' expects type 'int', but argument 2
> has type 'long unsigned int'
> denali_spd_ddr2.c:475: warning: format '%d' expects type 'int', but argument 2
> has type 'long unsigned int'
> denali_spd_ddr2.c:476: warning: format '%d' expects type 'int', but argument 2
> has type 'long unsigned int'
> denali_spd_ddr2.c: In function 'program_ddr0_03':
> denali_spd_ddr2.c:571: warning: format '%d' expects type 'int', but argument 2
> has type 'long unsigned int'
> denali_spd_ddr2.c:604: warning: format '%d' expects type 'int', but argument 2
> has type 'long unsigned int'
> denali_spd_ddr2.c:604: warning: format '%d' expects type 'int', but argument 3
> has type 'long unsigned int'
> denali_spd_ddr2.c:643: warning: format '%d' expects type 'int', but argument 2
> has type 'long unsigned int'
> denali_spd_ddr2.c:644: warning: format '%d' expects type 'int', but argument 2
> has type 'long unsigned int'
> denali_spd_ddr2.c:645: warning: format '%d' expects type 'int', but argument 2
> has type 'long unsigned int'
> denali_spd_ddr2.c:646: warning: format '%d' expects type 'int', but argument 2
> has type 'long unsigned int'
> denali_spd_ddr2.c:676: warning: format '%d' expects type 'int', but argument 2
> has type 'long unsigned int'
> denali_spd_ddr2.c: In function 'program_ddr0_04':
> denali_spd_ddr2.c:731: warning: format '%d' expects type 'int', but argument 2
> has type 'long unsigned int'
> denali_spd_ddr2.c:733: warning: format '%d' expects type 'int', but argument 2
> has type 'long unsigned int'
> denali_spd_ddr2.c:735: warning: format '%d' expects type 'int', but argument 2
> has type 'long unsigned int'
> denali_spd_ddr2.c: In function 'program_ddr0_05':
> denali_spd_ddr2.c:772: warning: format '%d' expects type 'int', but argument 2
> has type 'long unsigned int'
> denali_spd_ddr2.c:774: warning: format '%d' expects type 'int', but argument 2
> has type 'long unsigned int'
> denali_spd_ddr2.c: In function 'program_ddr0_06':
> denali_spd_ddr2.c:831: warning: format '%d' expects type 'int', but argument 2
> has type 'long unsigned int'
> denali_spd_ddr2.c:833: warning: format '%d' expects type 'int', but argument 2
> has type 'long unsigned int'
> denali_spd_ddr2.c: In function 'program_ddr0_11':
> denali_spd_ddr2.c:860: warning: format '%d' expects type 'int', but argument 2
> has type 'long unsigned int'
> denali_spd_ddr2.c: In function 'program_ddr0_26':
> denali_spd_ddr2.c:931: warning: format '%d' expects type 'int', but argument 2
> has type 'long unsigned int'
> denali_spd_ddr2.c:933: warning: format '%d' expects type 'int', but argument 2
> has type 'long unsigned int'
> denali_spd_ddr2.c: In function 'program_ddr0_27':
> denali_spd_ddr2.c:944: warning: format '%d' expects type 'int', but argument 2
> has type 'long unsigned int'
> denali_spd_ddr2.c: In function 'program_ddr0_43':
> denali_spd_ddr2.c:978: warning: format '%d' expects type 'int', but argument 2
> has type 'long unsigned int'
> denali_spd_ddr2.c: In function 'program_ddr0_44':
> denali_spd_ddr2.c:1006: warning: format '%d' expects type 'int', but argument 2
> has type 'long unsigned int'
>
> Signed-off-by: Marek Vasut <marek.vasut at gmail.com>
> Cc: Wolfgang Denk <wd at denx.de>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Mike Frysinger <vapier at gentoo.org>
> ---
> arch/powerpc/cpu/ppc4xx/denali_spd_ddr2.c | 52 ++++++++++++++--------------
> 1 files changed, 26 insertions(+), 26 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Overdrawn? But I still have checks left!
More information about the U-Boot
mailing list