public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
* [PATCH] powerpc: Remove warning in arch/powerpc/kernel/sysfs.c
@ 2007-09-05  2:43 Olof Johansson
  0 siblings, 0 replies; only message in thread
From: Olof Johansson @ 2007-09-05  2:43 UTC (permalink / raw)
  To: paulus; +Cc: linuxppc-dev

arch/powerpc/kernel/sysfs.c: In function 'cpu_add_sysdev_attr_group':
arch/powerpc/kernel/sysfs.c:388: warning: ignoring return value of
	'sysfs_create_group', declared with attribute warn_unused_result
    
Signed-off-by: Olof Johansson <olof@lixom•net>

diff --git a/arch/powerpc/kernel/sysfs.c b/arch/powerpc/kernel/sysfs.c
index 55d29ed..63c0302 100644
--- a/arch/powerpc/kernel/sysfs.c
+++ b/arch/powerpc/kernel/sysfs.c
@@ -380,12 +380,14 @@ int cpu_add_sysdev_attr_group(struct attribute_group *attrs)
 {
 	int cpu;
 	struct sys_device *sysdev;
+	int ret;
 
 	mutex_lock(&cpu_mutex);
 
 	for_each_possible_cpu(cpu) {
 		sysdev = get_cpu_sysdev(cpu);
-		sysfs_create_group(&sysdev->kobj, attrs);
+		ret = sysfs_create_group(&sysdev->kobj, attrs);
+		WARN_ON(ret != 0);
 	}
 
 	mutex_unlock(&cpu_mutex);

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

only message in thread, other threads:[~2007-09-05  3:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-05  2:43 [PATCH] powerpc: Remove warning in arch/powerpc/kernel/sysfs.c Olof Johansson

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