linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: Fix warnings introduced by sysfs changes
@ 2009-03-25  1:51 Benjamin Herrenschmidt
  0 siblings, 0 replies; only message in thread
From: Benjamin Herrenschmidt @ 2009-03-25  1:51 UTC (permalink / raw)
  To: linuxppc-dev

Rusty's patch to change our sysfs access to various registers
to use smp_call_function_single() introduced a whole bunch of
warnings. This fixes them

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---

I've also now fixed my build test tool to report warnings properly
so hopefully I won't miss that next time around :-)

 arch/powerpc/kernel/sysfs.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

--- linux-work.orig/arch/powerpc/kernel/sysfs.c	2009-03-25 11:17:28.000000000 +1100
+++ linux-work/arch/powerpc/kernel/sysfs.c	2009-03-25 11:18:15.000000000 +1100
@@ -140,11 +140,10 @@ static void read_##NAME(void *val) \
 { \
 	mtspr(ADDRESS, *(unsigned long *)val);	\
 } \
-static unsigned long write_##NAME(unsigned long val) \
+static void write_##NAME(void *val) \
 { \
 	ppc_enable_pmcs(); \
-	mtspr(ADDRESS, *(unsigned long *)val);	\
-	return 0; \
+	mtspr(ADDRESS, *(unsigned long *)val); \
 } \
 static ssize_t show_##NAME(struct sys_device *dev, \
 			struct sysdev_attribute *attr, \

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-25  1:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-25  1:51 [PATCH] powerpc: Fix warnings introduced by sysfs changes Benjamin Herrenschmidt

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