Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba916b6a authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Herbert Xu
Browse files

crypto: sha3-generic - Use __optimize to support old compilers



With gcc-4.1.2:

    crypto/sha3_generic.c:39: warning: ‘__optimize__’ attribute directive ignored

Use the newly introduced __optimize macro to fix this.

Fixes: 83dee2ce ("crypto: sha3-generic - rewrite KECCAK transform to help the compiler optimize")
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Acked-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent d9afaaa4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -152,7 +152,7 @@ static SHA3_INLINE void keccakf_round(u64 st[25])
	st[24] ^= bc[ 4];
}

static void __attribute__((__optimize__("O3"))) keccakf(u64 st[25])
static void __optimize("O3") keccakf(u64 st[25])
{
	int round;