Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1470001

Re: linux-next: build warning after merge of the crypto tree

From Martin Schwidefsky <schwidefsky@de.ibm.com>
Newsgroups linux.kernel
Subject Re: linux-next: build warning after merge of the crypto tree
Date 2016-08-25 11:30 +0200
Message-ID <s9YmB-71V-5@gated-at.bofh.it> (permalink)
References <s9Vf3-54s-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, 25 Aug 2016 11:38:24 +1000
Stephen Rothwell <sfr@canb.auug.org.au> wrote:

> Hi Herbert,
> 
> After merging the crypto tree, today's linux-next build (powerpc
> ppc64_defconfig) produced this warning:
> 
> crypto/xor.c: In function 'calibrate_xor_blocks':
> crypto/xor.c:156:1: warning: label 'out' defined but not used [-Wunused-label]
>  out:
>  ^
> 
> Introduced by commit
> 
>   39457acda913 ("crypto: xor - skip speed test if the xor function is selected automatically")
> 
> This build does not have XOR_SELECT_TEMPLATE set.

Hmm, this is probably the best option to get rid of the warning: 
--
diff --git a/crypto/xor.c b/crypto/xor.c
index b8975d9..f00edfc 100644
--- a/crypto/xor.c
+++ b/crypto/xor.c
@@ -117,7 +117,8 @@ calibrate_xor_blocks(void)
 		printk(KERN_INFO "xor: automatically using best "
 				 "checksumming function   %-10s\n",
 		       fastest->name);
-		goto out;
+		active_template = fastest;
+		return 0;
 	}
 #endif
 
@@ -153,7 +154,6 @@ calibrate_xor_blocks(void)
 #undef xor_speed
 
 	free_pages((unsigned long)b1, 2);
-out:
 	active_template = fastest;
 	return 0;
 }
-- 
blue skies,
   Martin.

"Reality continues to ruin my life." - Calvin.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

linux-next: build warning after merge of the crypto tree Stephen Rothwell <sfr@canb.auug.org.au> - 2016-08-25 07:20 +0200
  Re: linux-next: build warning after merge of the crypto tree Herbert Xu <herbert@gondor.apana.org.au> - 2016-08-25 10:40 +0200
    Re: linux-next: build warning after merge of the crypto tree Stephen Rothwell <sfr@canb.auug.org.au> - 2016-08-25 13:20 +0200
      crypto: xor - Fix warning when XOR_SELECT_TEMPLATE is unset Herbert Xu <herbert@gondor.apana.org.au> - 2016-08-26 17:30 +0200
  Re: linux-next: build warning after merge of the crypto tree Martin Schwidefsky <schwidefsky@de.ibm.com> - 2016-08-25 11:30 +0200

csiph-web