crypto: hide unused label
PATCH v2 1/1 crypto: hide unused label
A recent change left an existing label unused in some configurations, as seen from a gcc warning:
crypto/xor.c: In function 'calibrate_xor_blocks':crypto/xor.c:156:1: error: label 'out' defined but not used [-Werror=unused-label]
This adds an #ifdef around it to match the one around the respective "goto".
---
v2: add proper changelog, sorry for missing that at first.
--- crypto/xor.c | 2 ++ 1 file changed, 2 insertions(+)
crypto/xor.c +2 -0
@@ -153,7 +153,9 @@ calibrate_xor_blocks(void)#undef xor_speedfree_pages ((unsigned long )b1,2 ); +#ifdef XOR_SELECT_TEMPLATE out: +#endif active_template = fastest;return 0 ; }
Signature · 1 line
2.9.0
Herbert Xu
maintainerQuoted 10 lines · Arnd Bergmann
A recent change left an existing label unused in some configurations, as seen from a gcc warning:
crypto/xor.c: In function 'calibrate_xor_blocks':crypto/xor.c:156:1: error: label 'out' defined but not used [-Werror=unused-label]This adds an #ifdef around it to match the one around the respective "goto".
Signed-off-by Arnd Bergmann <[email protected]>Fixes 39457acda913 ("crypto: xor - skip speed test if the xor function is selected automatically")
Thanks for the patch. But I've already queued up a fix at
https://patchwork.kernel.org/patch/9301603/
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Quoted 7 lines · CEST Herbert Xu
Quoted 6 lines · Arnd Bergmann
A recent change left an existing label unused in some configurations, as seen from a gcc warning:
crypto/xor.c: In function 'calibrate_xor_blocks':crypto/xor.c:156:1: error: label 'out' defined but not used [-Werror=unused-label]
Quoted 9 lines
Quoted 4 lines
This adds an #ifdef around it to match the one around the respective "goto".
Signed-off-by Arnd Bergmann <[email protected]>Fixes 39457acda913 ("crypto: xor - skip speed test if the xor function is selected automatically")Thanks for the patch. But I've already queued up a fix at
Ok, that one looks like a nicer solution anyway.
Arnd