Thread (3 messages) 3 messages, 3 authors, 2021-06-18

Re: [PATCH -next] powerpc/spufs: disp: Remove set but not used variable 'dummy'

flat view

From: Arnd Bergmann <arnd@arndb.de>
Date: 2021-06-01 08:48:47
Also in: lkml

On Tue, Jun 1, 2021 at 10:43 AM Baokun Li [off-list ref] wrote:
Fixes gcc '-Wunused-but-set-variable' warning:

arch/powerpc/platforms/cell/spufs/switch.c: In function 'check_ppu_mb_stat':
arch/powerpc/platforms/cell/spufs/switch.c:1660:6: warning:
variable ‘dummy’ set but not used [-Wunused-but-set-variable]

arch/powerpc/platforms/cell/spufs/switch.c: In function 'check_ppuint_mb_stat':
arch/powerpc/platforms/cell/spufs/switch.c:1675:6: warning:
variable ‘dummy’ set but not used [-Wunused-but-set-variable]

It never used since introduction.

Signed-off-by: Baokun Li <redacted>
I think in_be64() used to cause a different warning if the result was
ignored, but this is no longer the case.

Acked-by: Arnd Bergmann <arnd@arndb.de>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help