mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-01 12:04:08 +00:00
crypto: xor - Fix warning when XOR_SELECT_TEMPLATE is unset
This patch fixes an unused label warning triggered when the macro
XOR_SELECT_TEMPLATE is not set.
Fixes: 39457acda9
("crypto: xor - skip speed test if the xor...")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Suggested-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
85962d2248
commit
27c4d548af
1 changed files with 5 additions and 4 deletions
|
@ -24,6 +24,10 @@
|
||||||
#include <linux/preempt.h>
|
#include <linux/preempt.h>
|
||||||
#include <asm/xor.h>
|
#include <asm/xor.h>
|
||||||
|
|
||||||
|
#ifndef XOR_SELECT_TEMPLATE
|
||||||
|
#define XOR_SELECT_TEMPLATE(x) (x)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* The xor routines to use. */
|
/* The xor routines to use. */
|
||||||
static struct xor_block_template *active_template;
|
static struct xor_block_template *active_template;
|
||||||
|
|
||||||
|
@ -109,17 +113,14 @@ calibrate_xor_blocks(void)
|
||||||
void *b1, *b2;
|
void *b1, *b2;
|
||||||
struct xor_block_template *f, *fastest;
|
struct xor_block_template *f, *fastest;
|
||||||
|
|
||||||
fastest = NULL;
|
fastest = XOR_SELECT_TEMPLATE(NULL);
|
||||||
|
|
||||||
#ifdef XOR_SELECT_TEMPLATE
|
|
||||||
fastest = XOR_SELECT_TEMPLATE(fastest);
|
|
||||||
if (fastest) {
|
if (fastest) {
|
||||||
printk(KERN_INFO "xor: automatically using best "
|
printk(KERN_INFO "xor: automatically using best "
|
||||||
"checksumming function %-10s\n",
|
"checksumming function %-10s\n",
|
||||||
fastest->name);
|
fastest->name);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Note: Since the memory is not actually used for _anything_ but to
|
* Note: Since the memory is not actually used for _anything_ but to
|
||||||
|
|
Loading…
Add table
Reference in a new issue