diff options
author | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2023-03-01 11:36:18 +0200 |
---|---|---|
committer | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2023-03-01 11:36:18 +0200 |
commit | 0a5f7e9543a823034f6dd6dae2f647c4e213f213 (patch) | |
tree | ec0759af58adc48a2f904c8fa11b79ece86b8bd3 /cipher/sha512-ppc.c | |
parent | 66bae697a853b21e0a2ff2a5031d23e3691a9084 (diff) | |
download | libgcrypt-0a5f7e9543a823034f6dd6dae2f647c4e213f213.tar.gz |
Fix "'inline' is not at beginning of declaration" warnings
* cipher/chacha20-ppc.c (chacha20_ppc_blocks1)
(chacha20_ppc_blocks4, chacha20_poly1305_ppc_blocks4): Move
'ASM_FUNC_ATTR_INLINE' right after 'static'.
* cipher/sha256-ppc.c (sha256_transform_ppc): Likewise.
* cipher/sha512-ppc.c (sha512_transform_ppc): Likewise.
--
Patch fixes these GCC warnings in PowerPC implementations:
warning: 'inline' is not at beginning of declaration [-Wold-style-declaration]
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Diffstat (limited to 'cipher/sha512-ppc.c')
-rw-r--r-- | cipher/sha512-ppc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cipher/sha512-ppc.c b/cipher/sha512-ppc.c index 6e69ddb9..d213c241 100644 --- a/cipher/sha512-ppc.c +++ b/cipher/sha512-ppc.c @@ -339,7 +339,7 @@ vec_u64_load_be(unsigned long offset, const void *ptr) wlt1; \ }) -static unsigned int ASM_FUNC_ATTR_INLINE FUNC_ATTR_OPT_O2 +static ASM_FUNC_ATTR_INLINE FUNC_ATTR_OPT_O2 unsigned int sha512_transform_ppc(u64 state[8], const unsigned char *data, size_t nblks) { vector2x_u64 h0, h1, h2, h3, h4, h5, h6, h7; |