public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
From: Randy Dunlap <randy.dunlap@oracle•com>
To: Stephen Rothwell <sfr@canb•auug.org.au>
Cc: linux-next@vger•kernel.org, LKML <linux-kernel@vger•kernel.org>
Subject: Re: linux-next: Tree for September 2 (printk question)
Date: Thu, 2 Sep 2010 09:14:48 -0700	[thread overview]
Message-ID: <20100902091448.9cf048a9.randy.dunlap@oracle.com> (raw)
In-Reply-To: <20100902161345.b634857f.sfr@canb.auug.org.au>

On Thu, 2 Sep 2010 16:13:45 +1000 Stephen Rothwell wrote:

> Hi all,
> 
> Changes since 20100901:


printk format warning question:

on X86_32, I see this warning:

/drivers/staging/xgifb/XGI_main_26.c:3421: warning: format '%lx' expects type 'long unsigned int', but argument 2 has type 'unsigned int'

I changed the format spec to "%x", so no problem on X86_32, but X86_64 build now says:

drivers/staging/xgifb/XGI_main_26.c:3421: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'long unsigned int'


What is the correct way to fix this?  a cast?  or is it a gcc problem?

> gcc --version
gcc (GCC) 4.4.1 20090725 (Red Hat 4.4.1-2)

# from fc11

I've seen this in a few other cases/places as well.

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

      reply	other threads:[~2010-09-02 16:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-02  6:13 linux-next: Tree for September 2 Stephen Rothwell
2010-09-02 16:14 ` Randy Dunlap [this message]

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=20100902091448.9cf048a9.randy.dunlap@oracle.com \
    --to=randy.dunlap@oracle$(echo .)com \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-next@vger$(echo .)kernel.org \
    --cc=sfr@canb$(echo .)auug.org.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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