From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Thu, 27 Oct 2011 23:56:07 +0200 Subject: [U-Boot] [PATCH 3/9] GCC4.6: Squash warnings in denali_spd_ddr2.c In-Reply-To: <1319535462-20693-4-git-send-email-marek.vasut@gmail.com> References: <1319535462-20693-1-git-send-email-marek.vasut@gmail.com> <1319535462-20693-4-git-send-email-marek.vasut@gmail.com> Message-ID: <20111027215607.C437912B7BBC@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Marek Vasut, In message <1319535462-20693-4-git-send-email-marek.vasut@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 > Cc: Wolfgang Denk > Cc: Simon Glass > Cc: Mike Frysinger > --- > 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!