public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] smpboot: fix printk type warning
@ 2003-08-23  6:07 Randy.Dunlap
  2003-08-25 19:16 ` David Mosberger
  0 siblings, 1 reply; 2+ messages in thread
From: Randy.Dunlap @ 2003-08-23  6:07 UTC (permalink / raw)
  To: linux-ia64


Possibly fallout from cpumask changes (?)....


patch_name:	cpus_printk.patch
patch_version:	2003-08-22.22:22:33
author:		Randy.Dunlap <rddunlap@osdl.org>
description:	fix printk type warning
product:	Linux
product_versions: 260-test4
diffstat:	 arch/ia64/kernel/smpboot.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -Naur ./arch/ia64/kernel/smpboot.c~cpus ./arch/ia64/kernel/smpboot.c
--- ./arch/ia64/kernel/smpboot.c~cpus	Fri Aug 22 16:53:14 2003
+++ ./arch/ia64/kernel/smpboot.c	Fri Aug 22 22:20:52 2003
@@ -560,7 +560,7 @@
 		if (cpu_online(cpu))
 			bogosum += cpu_data(cpu)->loops_per_jiffy;
 
-	printk(KERN_INFO "Total of %d processors activated (%lu.%02lu BogoMIPS).\n",
+	printk(KERN_INFO "Total of %lu processors activated (%lu.%02lu BogoMIPS).\n",
 	       num_online_cpus(), bogosum/(500000/HZ), (bogosum/(5000/HZ))%100);
 }
 


--
~Randy

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

* Re: [PATCH] smpboot: fix printk type warning
  2003-08-23  6:07 [PATCH] smpboot: fix printk type warning Randy.Dunlap
@ 2003-08-25 19:16 ` David Mosberger
  0 siblings, 0 replies; 2+ messages in thread
From: David Mosberger @ 2003-08-25 19:16 UTC (permalink / raw)
  To: linux-ia64


 Randy> Possibly fallout from cpumask changes (?)....

Probably.  The patch looks fine to me and I'll apply it.

However, num_online_cpus() is defined in terms of cpus_weight(), which
may expand into hweight32() or hweight64().  hweight32() is declared
to return "unsigned int".  The return type for hweight64() doesn't
appear to be totally consistent.  E.g., sparc64 returns "unsigned int"
whereas everything else appears to return "unsigned long".

I suspect that, at the lest, cpumask.h should be fixed to return a
fixed type.

	--david

 Randy> patch_name:	cpus_printk.patch
 Randy> patch_version:	2003-08-22.22:22:33
 Randy> author:		Randy.Dunlap <rddunlap@osdl.org>
 Randy> description:	fix printk type warning
 Randy> product:	Linux
 Randy> product_versions: 260-test4
 Randy> diffstat:	 Randy>  arch/ia64/kernel/smpboot.c |    2 +-
 Randy>  1 files changed, 1 insertion(+), 1 deletion(-)

diff -Naur ./arch/ia64/kernel/smpboot.c~cpus ./arch/ia64/kernel/smpboot.c
--- ./arch/ia64/kernel/smpboot.c~cpus	Fri Aug 22 16:53:14 2003
+++ ./arch/ia64/kernel/smpboot.c	Fri Aug 22 22:20:52 2003
@@ -560,7 +560,7 @@
 		if (cpu_online(cpu))
 			bogosum += cpu_data(cpu)->loops_per_jiffy;
 
-	printk(KERN_INFO "Total of %d processors activated (%lu.%02lu BogoMIPS).\n",
+	printk(KERN_INFO "Total of %lu processors activated (%lu.%02lu BogoMIPS).\n",
 	       num_online_cpus(), bogosum/(500000/HZ), (bogosum/(5000/HZ))%100);
 }
 


--
~Randy

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

end of thread, other threads:[~2003-08-25 19:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-23  6:07 [PATCH] smpboot: fix printk type warning Randy.Dunlap
2003-08-25 19:16 ` David Mosberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox