2022-06-30 08:20:03

by Herbert Xu

[permalink] [raw]
Subject: [PATCH] crypto: vmx - Fix warning on p8_ghash_alg

The compiler complains that p8_ghash_alg isn't declared which is
because the header file aesp8-ppc.h isn't included in ghash.c.
This patch fixes the warning.

Signed-off-by: Herbert Xu <[email protected]>

diff --git a/drivers/crypto/vmx/ghash.c b/drivers/crypto/vmx/ghash.c
index 5bc5710a6de0..77eca20bc7ac 100644
--- a/drivers/crypto/vmx/ghash.c
+++ b/drivers/crypto/vmx/ghash.c
@@ -23,6 +23,7 @@
#include <crypto/internal/hash.h>
#include <crypto/internal/simd.h>
#include <crypto/b128ops.h>
+#include "aesp8-ppc.h"

void gcm_init_p8(u128 htable[16], const u64 Xi[2]);
void gcm_gmult_p8(u64 Xi[2], const u128 htable[16]);
--
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt


2022-07-06 15:32:17

by Breno Leitao

[permalink] [raw]
Subject: Re: [PATCH] crypto: vmx - Fix warning on p8_ghash_alg

On Thu, Jun 30, 2022 at 04:11:49PM +0800, Herbert Xu wrote:
> The compiler complains that p8_ghash_alg isn't declared which is
> because the header file aesp8-ppc.h isn't included in ghash.c.
> This patch fixes the warning.
>
> Signed-off-by: Herbert Xu <[email protected]>
Acked-by: Breno Leitao <[email protected]>


Attachments:
(No filename) (335.00 B)
signature.asc (849.00 B)
Download all attachments