linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: build warning after merge of the crypto tree
@ 2018-01-19  1:49 Stephen Rothwell
  2018-01-19  4:21 ` Harsh Jain
  0 siblings, 1 reply; 19+ messages in thread
From: Stephen Rothwell @ 2018-01-19  1:49 UTC (permalink / raw)
  To: Herbert Xu; +Cc: Linux-Next Mailing List, Linux Kernel Mailing List, Harsh Jain

Hi Herbert,

After merging the crypto tree, today's linux-next build (x86_64
allmodconfig) produced this warning:

drivers/crypto/chelsio/chcr_algo.c: In function 'create_authenc_wr':
drivers/crypto/chelsio/chcr_algo.c:2113:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if (error)
  ^~
drivers/crypto/chelsio/chcr_algo.c:2115:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   dnents = sg_nents_xlen(req->dst, assoclen, CHCR_DST_SG_SIZE, 0);
   ^~~~~~

Introduced by commit

  e1a018e607a3 ("crypto: chelsio - Remove dst sg size zero check")

-- 
Cheers,
Stephen Rothwell

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: linux-next: build warning after merge of the crypto tree
  2018-01-19  1:49 linux-next: build warning after merge of the crypto tree Stephen Rothwell
@ 2018-01-19  4:21 ` Harsh Jain
  2018-01-19  5:12   ` Herbert Xu
  0 siblings, 1 reply; 19+ messages in thread
From: Harsh Jain @ 2018-01-19  4:21 UTC (permalink / raw)
  To: Stephen Rothwell, Herbert Xu
  Cc: Linux-Next Mailing List, Linux Kernel Mailing List

Hi Herbert,

It's an indentation issue. Seems checkpatch and default compile options does not report this warning.

How would you like to take the fix. Should I sent whole series again with fix or only indentation patch.


On 19-01-2018 07:19, Stephen Rothwell wrote:
> Hi Herbert,
>
> After merging the crypto tree, today's linux-next build (x86_64
> allmodconfig) produced this warning:
>
> drivers/crypto/chelsio/chcr_algo.c: In function 'create_authenc_wr':
> drivers/crypto/chelsio/chcr_algo.c:2113:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
>   if (error)
>   ^~
> drivers/crypto/chelsio/chcr_algo.c:2115:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
>    dnents = sg_nents_xlen(req->dst, assoclen, CHCR_DST_SG_SIZE, 0);
>    ^~~~~~
>
> Introduced by commit
>
>   e1a018e607a3 ("crypto: chelsio - Remove dst sg size zero check")
>

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: linux-next: build warning after merge of the crypto tree
  2018-01-19  4:21 ` Harsh Jain
@ 2018-01-19  5:12   ` Herbert Xu
  0 siblings, 0 replies; 19+ messages in thread
From: Herbert Xu @ 2018-01-19  5:12 UTC (permalink / raw)
  To: Harsh Jain
  Cc: Stephen Rothwell, Linux-Next Mailing List, Linux Kernel Mailing List

On Fri, Jan 19, 2018 at 09:51:43AM +0530, Harsh Jain wrote:
> Hi Herbert,
> 
> It's an indentation issue. Seems checkpatch and default compile options does not report this warning.
> 
> How would you like to take the fix. Should I sent whole series again with fix or only indentation patch.

Please send an incremental patch.

Thanks,
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: linux-next: build warning after merge of the crypto tree
  2024-02-12  3:48 Stephen Rothwell
@ 2024-02-12 12:59 ` Cabiddu, Giovanni
  0 siblings, 0 replies; 19+ messages in thread
From: Cabiddu, Giovanni @ 2024-02-12 12:59 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Herbert Xu, Damian Muszynski, Mun Chun Yep, Linux Crypto List,
	Linux Kernel Mailing List, Linux Next Mailing List

On Mon, Feb 12, 2024 at 02:48:30PM +1100, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the crypto tree, today's linux-next build (htmldocs)
> produced this warning:
> 
> Documentation/ABI/testing/sysfs-driver-qat:146: ERROR: Unexpected indentation.
> Documentation/ABI/testing/sysfs-driver-qat:146: WARNING: Block quote ends without a blank line; unexpected unindent.
> 
> Introduced by commit
> 
>   f5419a4239af ("crypto: qat - add auto reset on error")
Thanks Stephen. I'm sending a fix.

Regards,

-- 
Giovanni

^ permalink raw reply	[flat|nested] 19+ messages in thread

* linux-next: build warning after merge of the crypto tree
@ 2024-02-12  3:48 Stephen Rothwell
  2024-02-12 12:59 ` Cabiddu, Giovanni
  0 siblings, 1 reply; 19+ messages in thread
From: Stephen Rothwell @ 2024-02-12  3:48 UTC (permalink / raw)
  To: Herbert Xu
  Cc: Damian Muszynski, Mun Chun Yep, Linux Crypto List,
	Linux Kernel Mailing List, Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 421 bytes --]

Hi all,

After merging the crypto tree, today's linux-next build (htmldocs)
produced this warning:

Documentation/ABI/testing/sysfs-driver-qat:146: ERROR: Unexpected indentation.
Documentation/ABI/testing/sysfs-driver-qat:146: WARNING: Block quote ends without a blank line; unexpected unindent.

Introduced by commit

  f5419a4239af ("crypto: qat - add auto reset on error")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* linux-next: build warning after merge of the crypto tree
@ 2022-11-21  1:52 Stephen Rothwell
  0 siblings, 0 replies; 19+ messages in thread
From: Stephen Rothwell @ 2022-11-21  1:52 UTC (permalink / raw)
  To: Herbert Xu, Linux Crypto List
  Cc: Gaosheng Cui, Linux Kernel Mailing List, Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 426 bytes --]

Hi all,

After merging the crypto tree, today's linux-next build (x86_64
allmodconfig) produced this warning:

WARNING: modpost: drivers/crypto/ccree/ccree.o: section mismatch in reference: init_module (section: .init.text) -> cc_debugfs_global_fini (section: .exit.text)

Introduced by commit

  4f1c596df706 ("crypto: ccree - Remove debugfs when platform_driver_register failed")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* linux-next: build warning after merge of the crypto tree
@ 2022-07-11 10:49 Stephen Rothwell
  0 siblings, 0 replies; 19+ messages in thread
From: Stephen Rothwell @ 2022-07-11 10:49 UTC (permalink / raw)
  To: Herbert Xu
  Cc: Linux Crypto List, Giovanni Cabiddu, Tomasz Kowallik,
	Linux Kernel Mailing List, Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 328 bytes --]

Hi all,

After merging the crypto tree, today's linux-next build (KCONFIG_NAME)
produced this warning:

Documentation/ABI/testing/sysfs-driver-qat:24: WARNING: Unexpected indentation.

Introduced by commit

  d4cfb144f605 ("crypto: qat - expose device config through sysfs for 4xxx")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: linux-next: build warning after merge of the crypto tree
  2019-08-23  3:14 Stephen Rothwell
@ 2019-08-25 18:01 ` Hans de Goede
  0 siblings, 0 replies; 19+ messages in thread
From: Hans de Goede @ 2019-08-25 18:01 UTC (permalink / raw)
  To: Stephen Rothwell, Herbert Xu, Linux Crypto List
  Cc: Linux Next Mailing List, Linux Kernel Mailing List

Hi,

On 23-08-19 05:14, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the crypto tree, today's linux-next build (arm
> multi_v7_defconfig) produced this warning:
> 
> WARNING: modpost: missing MODULE_LICENSE() in lib/crypto/libsha256.o
> see include/linux/module.h for more information
> 
> Presumably introduced by commit
> 
>    01d3aee86625 ("crypto: sha256 - Make lib/crypto/sha256.c suitable for generic use")

Yeah my bad, I did not think about this getting build as a module.

I will submit a followup patch fixing this.

Regards,

Hans

^ permalink raw reply	[flat|nested] 19+ messages in thread

* linux-next: build warning after merge of the crypto tree
@ 2019-08-23  3:14 Stephen Rothwell
  2019-08-25 18:01 ` Hans de Goede
  0 siblings, 1 reply; 19+ messages in thread
From: Stephen Rothwell @ 2019-08-23  3:14 UTC (permalink / raw)
  To: Herbert Xu, Linux Crypto List
  Cc: Linux Next Mailing List, Linux Kernel Mailing List, Hans de Goede

[-- Attachment #1: Type: text/plain, Size: 396 bytes --]

Hi all,

After merging the crypto tree, today's linux-next build (arm
multi_v7_defconfig) produced this warning:

WARNING: modpost: missing MODULE_LICENSE() in lib/crypto/libsha256.o
see include/linux/module.h for more information

Presumably introduced by commit

  01d3aee86625 ("crypto: sha256 - Make lib/crypto/sha256.c suitable for generic use")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* linux-next: build warning after merge of the crypto tree
@ 2019-02-04  0:01 Stephen Rothwell
  0 siblings, 0 replies; 19+ messages in thread
From: Stephen Rothwell @ 2019-02-04  0:01 UTC (permalink / raw)
  To: Herbert Xu
  Cc: Linux Next Mailing List, Linux Kernel Mailing List, Greg Kroah-Hartman

[-- Attachment #1: Type: text/plain, Size: 512 bytes --]

Hi Herbert,

After merging the crypto tree, today's linux-next build (x86_64
allmodconfig) produced this warning:

drivers/crypto/qat/qat_common/adf_transport.c: In function 'adf_init_etr_data':
drivers/crypto/qat/qat_common/adf_transport.c:501:1: warning: label 'err_bank_debug' defined but not used [-Wunused-label]
 err_bank_debug:
 ^~~~~~~~~~~~~~

Introduced by commit

  f0fcf9ade46a ("crypto: qat - no need to check return value of debugfs_create functions")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* linux-next: build warning after merge of the crypto tree
@ 2018-10-05  5:31 Stephen Rothwell
  0 siblings, 0 replies; 19+ messages in thread
From: Stephen Rothwell @ 2018-10-05  5:31 UTC (permalink / raw)
  To: Herbert Xu
  Cc: Linux-Next Mailing List, Linux Kernel Mailing List, Srikanth Jampala

[-- Attachment #1: Type: text/plain, Size: 1390 bytes --]

Hi Herbert,

After merging the crypto tree, today's linux-next build (powerpc
allyesconfig) produced this warning:

drivers/crypto/cavium/nitrox/nitrox_debugfs.c: In function 'stats_show':
drivers/crypto/cavium/nitrox/nitrox_debugfs.c:62:30: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'long int' [-Wformat=]
  seq_printf(s, "  Posted: %lld\n", atomic64_read(&ndev->stats.posted));
                           ~~~^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                           %ld
drivers/crypto/cavium/nitrox/nitrox_debugfs.c:63:33: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'long int' [-Wformat=]
  seq_printf(s, "  Completed: %lld\n",
                              ~~~^
                              %ld
      atomic64_read(&ndev->stats.completed));
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/crypto/cavium/nitrox/nitrox_debugfs.c:65:31: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'long int' [-Wformat=]
  seq_printf(s, "  Dropped: %lld\n", atomic64_read(&ndev->stats.dropped));
                            ~~~^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                            %ld

Introduced by commit

  2a8780be9c26 ("crypto: cavium/nitrox - updated debugfs information.")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: linux-next: build warning after merge of the crypto tree
  2018-03-19  1:04 Stephen Rothwell
@ 2018-03-19  5:44 ` Harsh Jain
  0 siblings, 0 replies; 19+ messages in thread
From: Harsh Jain @ 2018-03-19  5:44 UTC (permalink / raw)
  To: Stephen Rothwell, Herbert Xu
  Cc: Linux-Next Mailing List, Linux Kernel Mailing List



On 19-03-2018 06:34, Stephen Rothwell wrote:
> Hi Herbert,
>
> After merging the crypto tree, today's linux-next build (x86_64
> allmodconfig) produced this warning:
>
> In file included from drivers/crypto/chelsio/chcr_ipsec.c:66:0:
> drivers/crypto/chelsio/chcr_crypto.h:343:12: warning: 'chcr_ahash_continue' declared 'static' but never defined [-Wunused-function]
>  static int chcr_ahash_continue(struct ahash_request *req);
>             ^~~~~~~~~~~~~~~~~~~
>
> Introduced by commit
>
>   5110e65536f3 ("crypto: chelsio -Split Hash requests for large scatter gather list")
>
Hi Stephen/Herbert,

I will submit the fix to cryptodev tree.

Thanks & Regards
Harsh Jain

^ permalink raw reply	[flat|nested] 19+ messages in thread

* linux-next: build warning after merge of the crypto tree
@ 2018-03-19  1:04 Stephen Rothwell
  2018-03-19  5:44 ` Harsh Jain
  0 siblings, 1 reply; 19+ messages in thread
From: Stephen Rothwell @ 2018-03-19  1:04 UTC (permalink / raw)
  To: Herbert Xu; +Cc: Linux-Next Mailing List, Linux Kernel Mailing List, Harsh Jain

[-- Attachment #1: Type: text/plain, Size: 559 bytes --]

Hi Herbert,

After merging the crypto tree, today's linux-next build (x86_64
allmodconfig) produced this warning:

In file included from drivers/crypto/chelsio/chcr_ipsec.c:66:0:
drivers/crypto/chelsio/chcr_crypto.h:343:12: warning: 'chcr_ahash_continue' declared 'static' but never defined [-Wunused-function]
 static int chcr_ahash_continue(struct ahash_request *req);
            ^~~~~~~~~~~~~~~~~~~

Introduced by commit

  5110e65536f3 ("crypto: chelsio -Split Hash requests for large scatter gather list")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: linux-next: build warning after merge of the crypto tree
  2017-07-31  2:17 Stephen Rothwell
@ 2017-07-31 13:50 ` Gary R Hook
  0 siblings, 0 replies; 19+ messages in thread
From: Gary R Hook @ 2017-07-31 13:50 UTC (permalink / raw)
  To: Stephen Rothwell, Herbert Xu
  Cc: Linux-Next Mailing List, Linux Kernel Mailing List

On 07/30/2017 09:17 PM, Stephen Rothwell wrote:
> Hi Herbert,
>
> After merging the crypto tree, today's linux-next build (x86_64
> allmodconfig) produced this warning:
>
> drivers/crypto/ccp/ccp-ops.c: In function 'ccp_run_rsa_cmd':
> drivers/crypto/ccp/ccp-ops.c:1856:3: warning: 'sb_count' may be used uninitialized in this function [-Wmaybe-uninitialized]
>    cmd_q->ccp->vdata->perform->sbfree(cmd_q, op.sb_key, sb_count);
>    ^
>
> Maybe introduced by commit
>
>   6ba46c7d4d7e ("crypto: ccp - Fix base RSA function for version 5 CCPs")
>

Actually, it's been this way for a while: 956ee21 should be the commit 
that introduced the spurious warning.

If you can explain to me a way to get the compiler to either (a) be 
smarter, or (b) shut up about this, I'd like to hear it. I see this with 
gcc 4.8/4.9/50.

IMO the compiler is incorrect. The code path where the variable is used 
is complete, and the path where it is unused is complete. I don't see a 
way for a logic error (and thus, use an uninitialized variable) to occur.

If someone can enlighten me, I'd appreciate it. Or, I can change the 
code to recompute the value when it's needed.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* linux-next: build warning after merge of the crypto tree
@ 2017-07-31  2:17 Stephen Rothwell
  2017-07-31 13:50 ` Gary R Hook
  0 siblings, 1 reply; 19+ messages in thread
From: Stephen Rothwell @ 2017-07-31  2:17 UTC (permalink / raw)
  To: Herbert Xu
  Cc: Linux-Next Mailing List, Linux Kernel Mailing List, Gary R Hook

Hi Herbert,

After merging the crypto tree, today's linux-next build (x86_64
allmodconfig) produced this warning:

drivers/crypto/ccp/ccp-ops.c: In function 'ccp_run_rsa_cmd':
drivers/crypto/ccp/ccp-ops.c:1856:3: warning: 'sb_count' may be used uninitialized in this function [-Wmaybe-uninitialized]
   cmd_q->ccp->vdata->perform->sbfree(cmd_q, op.sb_key, sb_count);
   ^

Maybe introduced by commit

  6ba46c7d4d7e ("crypto: ccp - Fix base RSA function for version 5 CCPs")

-- 
Cheers,
Stephen Rothwell

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: linux-next: build warning after merge of the crypto tree
  2016-08-25  7:47   ` Herbert Xu
@ 2016-08-25 11:14     ` Stephen Rothwell
  0 siblings, 0 replies; 19+ messages in thread
From: Stephen Rothwell @ 2016-08-25 11:14 UTC (permalink / raw)
  To: Herbert Xu; +Cc: Martin Schwidefsky, linux-next, linux-kernel

Hi Herbert,

On Thu, 25 Aug 2016 15:47:01 +0800 Herbert Xu <herbert@gondor.apana.org.au> wrote:
>
> I'm going to do something like this:
> 
> ---8<---
> This patch fixes an unused label warning triggered when the macro
> XOR_SELECT_TEMPLATE is not set.
> 
> Fixes: 39457acda913 ("crypto: xor - skip speed test if the xor...")
> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
> 
> diff --git a/crypto/xor.c b/crypto/xor.c
> index b8975d9..69866e9 100644
> --- a/crypto/xor.c
> +++ b/crypto/xor.c
> @@ -113,13 +113,14 @@ calibrate_xor_blocks(void)
>  
>  #ifdef XOR_SELECT_TEMPLATE
>  	fastest = XOR_SELECT_TEMPLATE(fastest);
> +#endif
> +
>  	if (fastest) {
>  		printk(KERN_INFO "xor: automatically using best "
>  				 "checksumming function   %-10s\n",
>  		       fastest->name);
>  		goto out;
>  	}
> -#endif

That looks fine to me.  An alternative might be to have:

#ifndef XOR_SELECT_TEMPLATE
#define XOR_SELECT_TEMPLATE(x)	(x)
#endif

near the top of the file.  That gets the #ifdef out of the code flow
and serves as some hint that such a thing can be defined by arch header
files.

Either way.
-- 
Cheers,
Stephen Rothwell

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: linux-next: build warning after merge of the crypto tree
  2016-08-25  6:20 ` Martin Schwidefsky
@ 2016-08-25  7:47   ` Herbert Xu
  2016-08-25 11:14     ` Stephen Rothwell
  0 siblings, 1 reply; 19+ messages in thread
From: Herbert Xu @ 2016-08-25  7:47 UTC (permalink / raw)
  To: Martin Schwidefsky; +Cc: Stephen Rothwell, linux-next, linux-kernel

On Thu, Aug 25, 2016 at 08:20:10AM +0200, Martin Schwidefsky wrote:
> 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: 

I'm going to do something like this:

---8<---
This patch fixes an unused label warning triggered when the macro
XOR_SELECT_TEMPLATE is not set.

Fixes: 39457acda913 ("crypto: xor - skip speed test if the xor...")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

diff --git a/crypto/xor.c b/crypto/xor.c
index b8975d9..69866e9 100644
--- a/crypto/xor.c
+++ b/crypto/xor.c
@@ -113,13 +113,14 @@ calibrate_xor_blocks(void)
 
 #ifdef XOR_SELECT_TEMPLATE
 	fastest = XOR_SELECT_TEMPLATE(fastest);
+#endif
+
 	if (fastest) {
 		printk(KERN_INFO "xor: automatically using best "
 				 "checksumming function   %-10s\n",
 		       fastest->name);
 		goto out;
 	}
-#endif
 
 	/*
 	 * Note: Since the memory is not actually used for _anything_ but to

-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* Re: linux-next: build warning after merge of the crypto tree
  2016-08-25  1:38 Stephen Rothwell
@ 2016-08-25  6:20 ` Martin Schwidefsky
  2016-08-25  7:47   ` Herbert Xu
  0 siblings, 1 reply; 19+ messages in thread
From: Martin Schwidefsky @ 2016-08-25  6:20 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: Herbert Xu, linux-next, linux-kernel

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.

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* linux-next: build warning after merge of the crypto tree
@ 2016-08-25  1:38 Stephen Rothwell
  2016-08-25  6:20 ` Martin Schwidefsky
  0 siblings, 1 reply; 19+ messages in thread
From: Stephen Rothwell @ 2016-08-25  1:38 UTC (permalink / raw)
  To: Herbert Xu; +Cc: linux-next, linux-kernel, Martin Schwidefsky

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.

-- 
Cheers,
Stephen Rothwell

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2024-02-12 12:59 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-19  1:49 linux-next: build warning after merge of the crypto tree Stephen Rothwell
2018-01-19  4:21 ` Harsh Jain
2018-01-19  5:12   ` Herbert Xu
  -- strict thread matches above, loose matches on Subject: below --
2024-02-12  3:48 Stephen Rothwell
2024-02-12 12:59 ` Cabiddu, Giovanni
2022-11-21  1:52 Stephen Rothwell
2022-07-11 10:49 Stephen Rothwell
2019-08-23  3:14 Stephen Rothwell
2019-08-25 18:01 ` Hans de Goede
2019-02-04  0:01 Stephen Rothwell
2018-10-05  5:31 Stephen Rothwell
2018-03-19  1:04 Stephen Rothwell
2018-03-19  5:44 ` Harsh Jain
2017-07-31  2:17 Stephen Rothwell
2017-07-31 13:50 ` Gary R Hook
2016-08-25  1:38 Stephen Rothwell
2016-08-25  6:20 ` Martin Schwidefsky
2016-08-25  7:47   ` Herbert Xu
2016-08-25 11:14     ` Stephen Rothwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).