2021-11-29 08:37:15

by Guo Zhengkui

[permalink] [raw]
Subject: [PATCH] crypto: DH: remove duplicate includes

Remove a duplicate #include <linux/fips.h>.

Signed-off-by: Guo Zhengkui <[email protected]>
---
crypto/dh.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/crypto/dh.c b/crypto/dh.c
index 38557e64b4b3..27e62a2a8027 100644
--- a/crypto/dh.c
+++ b/crypto/dh.c
@@ -7,13 +7,12 @@

#include <linux/fips.h>
#include <linux/module.h>
#include <crypto/internal/kpp.h>
#include <crypto/kpp.h>
#include <crypto/dh.h>
-#include <linux/fips.h>
#include <linux/mpi.h>

struct dh_ctx {
MPI p; /* Value is guaranteed to be set. */
MPI q; /* Value is optional. */
MPI g; /* Value is guaranteed to be set. */
--
2.20.1



2021-12-11 05:55:42

by Herbert Xu

[permalink] [raw]
Subject: Re: [PATCH] crypto: DH: remove duplicate includes

On Mon, Nov 29, 2021 at 04:34:56PM +0800, Guo Zhengkui wrote:
> Remove a duplicate #include <linux/fips.h>.
>
> Signed-off-by: Guo Zhengkui <[email protected]>
> ---
> crypto/dh.c | 1 -
> 1 file changed, 1 deletion(-)

Patch applied. Thanks.
--
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt