> '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 <w...@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<zltjiang...@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' > > > >