summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/sysfs.c
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2007-09-05 04:43:17 +0200
committerPaul Mackerras <paulus@samba.org>2007-09-13 17:33:22 +0200
commit6bcc4c01755fd2066bc374193cf3b0849cbabe47 (patch)
tree10f4c66617abec353dec304fdcd3436a533fc6a3 /arch/powerpc/kernel/sysfs.c
parent[POWERPC] Move lowlevel runlatch calls under cpu feature control (diff)
downloadlinux-6bcc4c01755fd2066bc374193cf3b0849cbabe47.tar.xz
linux-6bcc4c01755fd2066bc374193cf3b0849cbabe47.zip
[POWERPC] Remove warning in arch/powerpc/kernel/sysfs.c
Fixes: 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> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/sysfs.c')
-rw-r--r--arch/powerpc/kernel/sysfs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/sysfs.c b/arch/powerpc/kernel/sysfs.c
index d7835ba9fb8c..25d9a96484dd 100644
--- a/arch/powerpc/kernel/sysfs.c
+++ b/arch/powerpc/kernel/sysfs.c
@@ -440,12 +440,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);