qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: yajin <yajinzhou@vm-kernel.org>
To: Stefan Weil <weil@mail.berlios.de>
Cc: chen huacai <zltjiangshi@gmail.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [RFC][MIPS][PATCH 1/6] Initial support of bonito north bridge used by fulong mini pc
Date: Mon, 10 May 2010 12:02:49 +0800	[thread overview]
Message-ID: <m2k180e2c241005092102w7dcd69a9i970cbb40ec8a9382@mail.gmail.com> (raw)
In-Reply-To: <4BE686C5.4030302@mail.berlios.de>

> 'long long unsigned int', but argument 2 has type 'target_phys_addr_t'
> /home/stefan/src/qemu/hw/bonito.c: In function 'bonito_spciconf_readw':

I think TARGET_FMT_plx should be used instead of using %llx to avoid
this warning.


yajin

http://vm-kernel.org

2010/5/9 Stefan Weil <weil@mail.berlios.de>:
> Am 09.05.2010 04:00, schrieb chen huacai:
>>
>> This patch add initial support of bonito north bridge used by fulong mini
>> pc
>>
>> Signed-off-by: Huacai Chen<zltjiangshi@gmail.com>
>>
>
> ...
>>
>> +
>> +} BonitoState;
>> +
>> +BonitoState * bonito_state;
>>
>
> Add static attribute?
>
> With DEBUG enabled, I get a lot of compiler warnings:
>
> /home/stefan/src/qemu/hw/bonito.c: In function 'bonito_writeb':
> /home/stefan/src/qemu/hw/bonito.c:232: error: format '%llx' expects type
> 'long long unsigned int', but argument 2 has type 'target_phys_addr_t'
> /home/stefan/src/qemu/hw/bonito.c: In function 'bonito_writew':
> /home/stefan/src/qemu/hw/bonito.c:239: error: format '%llx' expects type
> 'long long unsigned int', but argument 2 has type 'target_phys_addr_t'
> /home/stefan/src/qemu/hw/bonito.c: In function 'bonito_writel':
> /home/stefan/src/qemu/hw/bonito.c:252: error: format '%llx' expects type
> 'long long unsigned int', but argument 2 has type 'target_phys_addr_t'
> /home/stefan/src/qemu/hw/bonito.c: In function 'bonito_readb':
> /home/stefan/src/qemu/hw/bonito.c:313: error: format '%llx' expects type
> 'long long unsigned int', but argument 2 has type 'target_phys_addr_t'
> /home/stefan/src/qemu/hw/bonito.c: In function 'bonito_readw':
> /home/stefan/src/qemu/hw/bonito.c:321: error: format '%llx' expects type
> 'long long unsigned int', but argument 2 has type 'target_phys_addr_t'
> /home/stefan/src/qemu/hw/bonito.c: In function 'bonito_readl':
> /home/stefan/src/qemu/hw/bonito.c:334: error: format '%llx' expects type
> 'long long unsigned int', but argument 2 has type 'target_phys_addr_t'
> /home/stefan/src/qemu/hw/bonito.c: In function 'bonito_pciconf_writeb':
> /home/stefan/src/qemu/hw/bonito.c:364: error: format '%llx' expects type
> 'long long unsigned int', but argument 2 has type 'target_phys_addr_t'
> /home/stefan/src/qemu/hw/bonito.c: In function 'bonito_pciconf_writew':
> /home/stefan/src/qemu/hw/bonito.c:371: error: format '%llx' expects type
> 'long long unsigned int', but argument 2 has type 'target_phys_addr_t'
> /home/stefan/src/qemu/hw/bonito.c: In function 'bonito_pciconf_writel':
> /home/stefan/src/qemu/hw/bonito.c:384: error: format '%llx' expects type
> 'long long unsigned int', but argument 2 has type 'target_phys_addr_t'
> /home/stefan/src/qemu/hw/bonito.c: In function 'bonito_pciconf_readb':
> /home/stefan/src/qemu/hw/bonito.c:393: error: format '%llx' expects type
> 'long long unsigned int', but argument 2 has type 'target_phys_addr_t'
> /home/stefan/src/qemu/hw/bonito.c: In function 'bonito_pciconf_readw':
> /home/stefan/src/qemu/hw/bonito.c:400: error: format '%llx' expects type
> 'long long unsigned int', but argument 2 has type 'target_phys_addr_t'
> /home/stefan/src/qemu/hw/bonito.c: In function 'bonito_pciconf_readl':
> /home/stefan/src/qemu/hw/bonito.c:414: error: format '%llx' expects type
> 'long long unsigned int', but argument 2 has type 'target_phys_addr_t'
> /home/stefan/src/qemu/hw/bonito.c: In function 'bonito_localio_readb':
> /home/stefan/src/qemu/hw/bonito.c:441: error: format '%llx' expects type
> 'long long unsigned int', but argument 2 has type 'target_phys_addr_t'
> /home/stefan/src/qemu/hw/bonito.c: In function 'bonito_localio_readw':
> /home/stefan/src/qemu/hw/bonito.c:451: error: format '%llx' expects type
> 'long long unsigned int', but argument 2 has type 'target_phys_addr_t'
> /home/stefan/src/qemu/hw/bonito.c: In function 'bonito_localio_readl':
> /home/stefan/src/qemu/hw/bonito.c:465: error: format '%llx' expects type
> 'long long unsigned int', but argument 2 has type 'target_phys_addr_t'
> /home/stefan/src/qemu/hw/bonito.c: In function 'bonito_localio_writeb':
> /home/stefan/src/qemu/hw/bonito.c:478: error: format '%llx' expects type
> 'long long unsigned int', but argument 2 has type 'target_phys_addr_t'
> /home/stefan/src/qemu/hw/bonito.c: In function 'bonito_localio_writew':
> /home/stefan/src/qemu/hw/bonito.c:487: error: format '%llx' expects type
> 'long long unsigned int', but argument 2 has type 'target_phys_addr_t'
> /home/stefan/src/qemu/hw/bonito.c: In function 'bonito_localio_writel':
> /home/stefan/src/qemu/hw/bonito.c:499: error: format '%llx' expects type
> 'long long unsigned int', but argument 2 has type 'target_phys_addr_t'
> /home/stefan/src/qemu/hw/bonito.c: In function 'bonito_spciconf_writeb':
> /home/stefan/src/qemu/hw/bonito.c:621: error: format '%llx' expects type
> 'long long unsigned int', but argument 2 has type 'target_phys_addr_t'
> /home/stefan/src/qemu/hw/bonito.c: In function 'bonito_spciconf_writew':
> /home/stefan/src/qemu/hw/bonito.c:639: error: format '%llx' expects type
> 'long long unsigned int', but argument 2 has type 'target_phys_addr_t'
> /home/stefan/src/qemu/hw/bonito.c: In function 'bonito_spciconf_writel':
> /home/stefan/src/qemu/hw/bonito.c:659: error: format '%llx' expects type
> 'long long unsigned int', but argument 2 has type 'target_phys_addr_t'
> /home/stefan/src/qemu/hw/bonito.c: In function 'bonito_spciconf_readb':
> /home/stefan/src/qemu/hw/bonito.c:677: error: format '%llx' expects type
> 'long long unsigned int', but argument 2 has type 'target_phys_addr_t'
> /home/stefan/src/qemu/hw/bonito.c: In function 'bonito_spciconf_readw':
> /home/stefan/src/qemu/hw/bonito.c:693: error: format '%llx' expects type
> 'long long unsigned int', but argument 2 has type 'target_phys_addr_t'
> /home/stefan/src/qemu/hw/bonito.c: In function 'bonito_spciconf_readl':
> /home/stefan/src/qemu/hw/bonito.c:711: error: format '%llx' expects type
> 'long long unsigned int', but argument 2 has type 'target_phys_addr_t'
>
>
>
>

  reply	other threads:[~2010-05-10  4:03 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-09  2:00 [Qemu-devel] [RFC][MIPS][PATCH 1/6] Initial support of bonito north bridge used by fulong mini pc chen huacai
2010-05-09  9:41 ` Stefan Weil
2010-05-09 11:25   ` chen huacai
2010-05-09 19:04     ` Stefan Weil
2010-05-10 11:21   ` chen huacai
2010-05-10 17:19     ` Stefan Weil
2010-05-09  9:56 ` Stefan Weil
2010-05-10  4:02   ` yajin [this message]
2010-05-10 19:14 ` Blue Swirl
2010-05-11  2:32   ` chen huacai
2010-05-11 19:52     ` Blue Swirl
2010-05-12  0:59       ` chen huacai
2010-05-12  7:37       ` yajin

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=m2k180e2c241005092102w7dcd69a9i970cbb40ec8a9382@mail.gmail.com \
    --to=yajinzhou@vm-kernel.org \
    --cc=qemu-devel@nongnu.org \
    --cc=weil@mail.berlios.de \
    --cc=zltjiangshi@gmail.com \
    /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).