From: Shuah Khan <shuah.khan@hp.com>
To: Ben Hutchings <ben@decadent.org.uk>
Cc: Greg KH <gregkh@linuxfoundation.org>,
stable <stable@vger.kernel.org>,
paulus@samba.org, shuahkhan@gmail.com,
linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH v2] powerpc: fix wii_memory_fixups() compile error on 3.0.y tree
Date: Tue, 11 Dec 2012 17:04:58 -0700 [thread overview]
Message-ID: <1355270698.2616.44.camel@lorien2> (raw)
In-Reply-To: <20121210185527.GI13292@decadent.org.uk>
On Mon, 2012-12-10 at 18:55 +0000, Ben Hutchings wrote:
> On Mon, Dec 10, 2012 at 10:23:16AM -0700, Shuah Khan wrote:
> > Fix wii_memory_fixups() the following compile error on 3.0.y tree with
> > wii_defconfig on 3.0.y tree.
> >
> > CC arch/powerpc/platforms/embedded6xx/wii.o
> > arch/powerpc/platforms/embedded6xx/wii.c: In function ‘wii_memory_fixups’:
> > arch/powerpc/platforms/embedded6xx/wii.c:88:2: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘phys_addr_t’ [-Werror=format]
> > arch/powerpc/platforms/embedded6xx/wii.c:88:2: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘phys_addr_t’ [-Werror=format]
> > arch/powerpc/platforms/embedded6xx/wii.c:90:2: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘phys_addr_t’ [-Werror=format]
> > arch/powerpc/platforms/embedded6xx/wii.c:90:2: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘phys_addr_t’ [-Werror=format]
> > cc1: all warnings being treated as errors
> > make[2]: *** [arch/powerpc/platforms/embedded6xx/wii.o] Error 1
> > make[1]: *** [arch/powerpc/platforms/embedded6xx] Error 2
> > make: *** [arch/powerpc/platforms] Error 2
> >
> > Signed-off-by: Shuah Khan <shuah.khan@hp.com>
> > CC: stable@vger.kernel.org 3.0.y
> > ---
> > arch/powerpc/platforms/embedded6xx/wii.c | 6 ++++--
> > 1 file changed, 4 insertions(+), 2 deletions(-)
> >
> > diff --git a/arch/powerpc/platforms/embedded6xx/wii.c b/arch/powerpc/platforms/embedded6xx/wii.c
> > index 1b5dc1a..d8ff38f 100644
> > --- a/arch/powerpc/platforms/embedded6xx/wii.c
> > +++ b/arch/powerpc/platforms/embedded6xx/wii.c
> > @@ -85,9 +85,11 @@ void __init wii_memory_fixups(void)
> > wii_hole_start = p[0].base + p[0].size;
> > wii_hole_size = p[1].base - wii_hole_start;
> >
> > - pr_info("MEM1: <%08llx %08llx>\n", p[0].base, p[0].size);
> > + pr_info("MEM1: <%08ulx %08ulx>\n",
> > + (phys_addr_t) p[0].base, (phys_addr_t) p[0].size);
> [...]
>
> This is incorrect in exactly the same way as the last version,
> but with extra redundant casts.
>
Yes it is. :) That is embarrassing. The lesson is "don't try to work
when not feeling well", at least that is my excuse.
Thanks for catching it. I will really fix it this time and send a new
patch. This bug is in there since Dec 2009, not sure if this is worth
fixing, but might as well.
de32400dd26e743c5d500aa42d8d6818b79edb73
wii: use both mem1 and mem2 as ram
-- Shuah
next prev parent reply other threads:[~2012-12-12 0:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-08 2:07 [PATCH] powerpc: fix wii_memory_fixups() compile error on 3.0.y tree Shuah Khan
2012-12-08 17:22 ` Ben Hutchings
2012-12-09 1:21 ` Shuah Khan
2012-12-10 17:23 ` [PATCH v2] " Shuah Khan
2012-12-10 18:55 ` Ben Hutchings
2012-12-12 0:04 ` Shuah Khan [this message]
2012-12-12 23:27 ` [PATCH v3] " Shuah Khan
2012-12-13 1:06 ` Ben Hutchings
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=1355270698.2616.44.camel@lorien2 \
--to=shuah.khan@hp.com \
--cc=ben@decadent.org.uk \
--cc=gregkh@linuxfoundation.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=paulus@samba.org \
--cc=shuahkhan@gmail.com \
--cc=stable@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).