Skip to content

Commit 0f4128d

Browse files
committed
crypto: arm64/sha - Add declarations for assembly variables
This patch adds declarations for variables only used by assembly code to silence compiler warnings: CC [M] arch/arm64/crypto/sha1-ce-glue.o AS [M] arch/arm64/crypto/sha1-ce-core.o CC [M] arch/arm64/crypto/sha2-ce-glue.o AS [M] arch/arm64/crypto/sha2-ce-core.o CHECK ../arch/arm64/crypto/sha1-ce-glue.c CHECK ../arch/arm64/crypto/sha2-ce-glue.c ../arch/arm64/crypto/sha1-ce-glue.c:38:11: warning: symbol 'sha1_ce_offsetof_count' was not declared. Should it be static? ../arch/arm64/crypto/sha1-ce-glue.c:39:11: warning: symbol 'sha1_ce_offsetof_finalize' was not declared. Should it be static? ../arch/arm64/crypto/sha2-ce-glue.c:38:11: warning: symbol 'sha256_ce_offsetof_count' was not declared. Should it be static? ../arch/arm64/crypto/sha2-ce-glue.c:40:11: warning: symbol 'sha256_ce_offsetof_finalize' was not declared. Should it be static? Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Acked-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 51982ea commit 0f4128d

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎arch/arm64/crypto/sha1-ce-glue.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ struct sha1_ce_state {
2525
u32 finalize;
2626
};
2727

28+
extern const u32 sha1_ce_offsetof_count;
29+
extern const u32 sha1_ce_offsetof_finalize;
30+
2831
asmlinkage void sha1_ce_transform(struct sha1_ce_state *sst, u8 const *src,
2932
int blocks);
3033

‎arch/arm64/crypto/sha2-ce-glue.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ struct sha256_ce_state {
2525
u32 finalize;
2626
};
2727

28+
extern const u32 sha256_ce_offsetof_count;
29+
extern const u32 sha256_ce_offsetof_finalize;
30+
2831
asmlinkage void sha2_ce_transform(struct sha256_ce_state *sst, u8 const *src,
2932
int blocks);
3033

0 commit comments

Comments
 (0)