Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Olof Johansson and committed by
Paul Mackerras
6bcc4c01 a416561b

+3 -1
+3 -1
arch/powerpc/kernel/sysfs.c
··· 440 440 { 441 441 int cpu; 442 442 struct sys_device *sysdev; 443 + int ret; 443 444 444 445 mutex_lock(&cpu_mutex); 445 446 446 447 for_each_possible_cpu(cpu) { 447 448 sysdev = get_cpu_sysdev(cpu); 448 - sysfs_create_group(&sysdev->kobj, attrs); 449 + ret = sysfs_create_group(&sysdev->kobj, attrs); 450 + WARN_ON(ret != 0); 449 451 } 450 452 451 453 mutex_unlock(&cpu_mutex);