2018-01-19 01:50:39

by Stephen Rothwell

[permalink] [raw]
Subject: linux-next: build warning after merge of the crypto tree

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


2018-01-19 04:24:49

by Harsh Jain

[permalink] [raw]
Subject: Re: linux-next: build warning after merge of the crypto tree

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")
>


2018-01-19 05:14:26

by Herbert Xu

[permalink] [raw]
Subject: Re: linux-next: build warning after merge of the crypto tree

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 <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt