linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] x86: fix longstanding setup.c printk format warning
@ 2008-06-05 18:10 Randy.Dunlap
  2008-06-10 10:24 ` Ingo Molnar
  0 siblings, 1 reply; 2+ messages in thread
From: Randy.Dunlap @ 2008-06-05 18:10 UTC (permalink / raw)
  To: linux-kernel, linux-next; +Cc: tglx, mingo, hpa

From: Randy Dunlap <randy.dunlap@oracle.com>

Note: for -next only, not mainline.

Fix setup.c printk format warning:

linux-next-20080605/arch/x86/kernel/setup.c: In function 'setup_per_cpu_areas':
linux-next-20080605/arch/x86/kernel/setup.c:173: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'ssize_t'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 arch/x86/kernel/setup.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20080605.orig/arch/x86/kernel/setup.c
+++ linux-next-20080605/arch/x86/kernel/setup.c
@@ -169,7 +169,7 @@ void __init setup_per_cpu_areas(void)
 
 	/* Copy section for each CPU (we discard the original) */
 	size = PERCPU_ENOUGH_ROOM;
-	printk(KERN_INFO "PERCPU: Allocating %lu bytes of per cpu data\n",
+	printk(KERN_INFO "PERCPU: Allocating %zd bytes of per cpu data\n",
 			  size);
 
 	for_each_possible_cpu(cpu) {

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] x86: fix longstanding setup.c printk format warning
  2008-06-05 18:10 [PATCH -next] x86: fix longstanding setup.c printk format warning Randy.Dunlap
@ 2008-06-10 10:24 ` Ingo Molnar
  0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2008-06-10 10:24 UTC (permalink / raw)
  To: Randy.Dunlap
  Cc: linux-kernel, linux-next, tglx, mingo, hpa,
	the arch/x86 maintainers


* Randy.Dunlap <rdunlap@xenotime.net> wrote:

> From: Randy Dunlap <randy.dunlap@oracle.com>
> 
> Note: for -next only, not mainline.
> 
> Fix setup.c printk format warning:
> 
> linux-next-20080605/arch/x86/kernel/setup.c: In function 'setup_per_cpu_areas':
> linux-next-20080605/arch/x86/kernel/setup.c:173: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'ssize_t'

applied to tip/x86/numa - thanks Randy.

	Ingo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-06-10 10:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-05 18:10 [PATCH -next] x86: fix longstanding setup.c printk format warning Randy.Dunlap
2008-06-10 10:24 ` Ingo Molnar

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).