Re: [PATCH 1/7] powerpc/sysfs: Fix W=1 compile warning

2020-09-11 Thread Cédric Le Goater
On 9/11/20 7:26 AM, Christophe Leroy wrote: > > > Le 10/09/2020 à 23:02, Cédric Le Goater a écrit : >> arch/powerpc/kernel/sysfs.c: In function ‘sysfs_create_dscr_default’: >> arch/powerpc/kernel/sysfs.c:228:7: error: variable ‘err’ set but not used >> [-Werror=unused-but-set-variable] >>     in

Re: [PATCH 1/7] powerpc/sysfs: Fix W=1 compile warning

2020-09-10 Thread Christophe Leroy
Le 10/09/2020 à 23:02, Cédric Le Goater a écrit : arch/powerpc/kernel/sysfs.c: In function ‘sysfs_create_dscr_default’: arch/powerpc/kernel/sysfs.c:228:7: error: variable ‘err’ set but not used [-Werror=unused-but-set-variable] int err = 0; ^~~ cc1: all warnings being treated as e

[PATCH 1/7] powerpc/sysfs: Fix W=1 compile warning

2020-09-10 Thread Cédric Le Goater
arch/powerpc/kernel/sysfs.c: In function ‘sysfs_create_dscr_default’: arch/powerpc/kernel/sysfs.c:228:7: error: variable ‘err’ set but not used [-Werror=unused-but-set-variable] int err = 0; ^~~ cc1: all warnings being treated as errors Cc: Madhavan Srinivasan Signed-off-by: Cédric Le