]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/signal: Fix possible build failure with unsafe_copy_fpr_{to/from}_user
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Sat, 8 May 2021 09:25:44 +0000 (09:25 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 12 May 2021 01:07:39 +0000 (11:07 +1000)
commit9b5b336bfe06a746f156b7eac1d29ae8be7edfa1
tree2629ec31e39cd87f72bf4bf9db172d6d2d73a2c1
parentb82a1668f4cea5b143d3c6bc674cb933c4f2f15b
powerpc/signal: Fix possible build failure with unsafe_copy_fpr_{to/from}_user

When neither CONFIG_VSX nor CONFIG_PPC_FPU_REGS are selected,
unsafe_copy_fpr_to_user() and unsafe_copy_fpr_from_user() are
doing nothing.

Then, unless the 'label' operand is used elsewhere, GCC complains
about it being defined but not used.

To fix that, add an impossible 'goto label'.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/cadc0a328bc8e6c5bf133193e7547d5c10ae7895.1620465920.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/signal.h