public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
From: "Randy.Dunlap" <rdunlap@xenotime•net>
To: linux-kernel@vger•kernel.org, linux-next@vger•kernel.org
Cc: tglx@linutronix•de, mingo@redhat•com, hpa@zytor•com
Subject: [PATCH -next] x86: fix longstanding setup.c printk format warning
Date: Thu, 5 Jun 2008 11:10:59 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.64.0806051107200.702@shark.he.net> (raw)

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

             reply	other threads:[~2008-06-05 18:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-05 18:10 Randy.Dunlap [this message]
2008-06-10 10:24 ` [PATCH -next] x86: fix longstanding setup.c printk format warning Ingo Molnar

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=Pine.LNX.4.64.0806051107200.702@shark.he.net \
    --to=rdunlap@xenotime$(echo .)net \
    --cc=hpa@zytor$(echo .)com \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-next@vger$(echo .)kernel.org \
    --cc=mingo@redhat$(echo .)com \
    --cc=tglx@linutronix$(echo .)de \
    /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