LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] arch/x86: Fix waring when build on x86_32
@ 2008-10-17 11:18 Jianjun Kong
2008-10-17 11:30 ` Américo Wang
0 siblings, 1 reply; 2+ messages in thread
From: Jianjun Kong @ 2008-10-17 11:18 UTC (permalink / raw)
To: mingo; +Cc: Linux-Kernel-Mailing-List
Fix the waring When I buile the Linux-2.6 kernel on x86_32.
arch/x86/kernel/io_apic_32.c: In function 'print_local_APIC':
arch/x86/kernel/io_apic_32.c:1539: warning: format '%08x' expects type 'unsigned int', but argument 2 has type 'u64'
arch/x86/kernel/io_apic_32.c:1540: warning: format '%08x' expects type 'unsigned int', but argument 2 has type 'u64'
Signed-off-by: Jianjun Kong <jianjun@zeuux.org>
---
arch/x86/kernel/io_apic_32.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/kernel/io_apic_32.c b/arch/x86/kernel/io_apic_32.c
index e710289..f678d12 100644
--- a/arch/x86/kernel/io_apic_32.c
+++ b/arch/x86/kernel/io_apic_32.c
@@ -1536,8 +1536,8 @@ __apicdebuginit(void) print_local_APIC(void *dummy)
}
icr = apic_icr_read();
- printk(KERN_DEBUG "... APIC ICR: %08x\n", icr);
- printk(KERN_DEBUG "... APIC ICR2: %08x\n", icr >> 32);
+ printk(KERN_DEBUG "... APIC ICR: %08x\n", (unsigned int)icr);
+ printk(KERN_DEBUG "... APIC ICR2: %08x\n", (unsigned int)(icr >> 32));
v = apic_read(APIC_LVTT);
printk(KERN_DEBUG "... APIC LVTT: %08x\n", v);
--
1.5.2.5
--
Jianjun Kong | Happy Hacking
HomePage: http://kongove.cn
Gtalk: kongjianjun@gmail.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] arch/x86: Fix waring when build on x86_32
2008-10-17 11:18 [PATCH] arch/x86: Fix waring when build on x86_32 Jianjun Kong
@ 2008-10-17 11:30 ` Américo Wang
0 siblings, 0 replies; 2+ messages in thread
From: Américo Wang @ 2008-10-17 11:30 UTC (permalink / raw)
To: Jianjun Kong; +Cc: mingo, Linux-Kernel-Mailing-List
On Fri, Oct 17, 2008 at 07:18:29PM +0800, Jianjun Kong wrote:
>
>Fix the waring When I buile the Linux-2.6 kernel on x86_32.
>arch/x86/kernel/io_apic_32.c: In function 'print_local_APIC':
>arch/x86/kernel/io_apic_32.c:1539: warning: format '%08x' expects type 'unsigned int', but argument 2 has type 'u64'
>arch/x86/kernel/io_apic_32.c:1540: warning: format '%08x' expects type 'unsigned int', but argument 2 has type 'u64'
>
>Signed-off-by: Jianjun Kong <jianjun@zeuux.org>
>---
> arch/x86/kernel/io_apic_32.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
>diff --git a/arch/x86/kernel/io_apic_32.c b/arch/x86/kernel/io_apic_32.c
>index e710289..f678d12 100644
>--- a/arch/x86/kernel/io_apic_32.c
>+++ b/arch/x86/kernel/io_apic_32.c
>@@ -1536,8 +1536,8 @@ __apicdebuginit(void) print_local_APIC(void *dummy)
> }
>
> icr = apic_icr_read();
>- printk(KERN_DEBUG "... APIC ICR: %08x\n", icr);
>- printk(KERN_DEBUG "... APIC ICR2: %08x\n", icr >> 32);
>+ printk(KERN_DEBUG "... APIC ICR: %08x\n", (unsigned int)icr);
>+ printk(KERN_DEBUG "... APIC ICR2: %08x\n", (unsigned int)(icr >> 32));
>
http://lkml.org/lkml/2008/8/19/566
http://lkml.org/lkml/2008/8/20/119
--
"Sometimes the only way to stay sane is to go a little crazy."
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-17 11:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-17 11:18 [PATCH] arch/x86: Fix waring when build on x86_32 Jianjun Kong
2008-10-17 11:30 ` Américo Wang
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).