Re: [PATCH 35/74] lto, crypto, aes: mark AES tables __visible
On Sat, Aug 18, 2012 at 07:56:31PM -0700, Andi Kleen wrote: > From: Andi Kleen > > Various tables in aes_generic are accessed by assembler code. > Mark them __visible for LTO > > Cc: herb...@gondor.apana.org.au > Signed-off-by: Andi Kleen Acked-by: Herbert Xu -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 35/74] lto, crypto, aes: mark AES tables __visible
On Sat, Aug 18, 2012 at 07:56:31PM -0700, Andi Kleen wrote: From: Andi Kleen a...@linux.intel.com Various tables in aes_generic are accessed by assembler code. Mark them __visible for LTO Cc: herb...@gondor.apana.org.au Signed-off-by: Andi Kleen a...@linux.intel.com Acked-by: Herbert Xu herb...@gondor.apana.org.au -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH 35/74] lto, crypto, aes: mark AES tables __visible
From: Andi Kleen Various tables in aes_generic are accessed by assembler code. Mark them __visible for LTO Cc: herb...@gondor.apana.org.au Signed-off-by: Andi Kleen --- crypto/aes_generic.c |8 include/crypto/aes.h |8 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/crypto/aes_generic.c b/crypto/aes_generic.c index a68c73d..1cf1f89 100644 --- a/crypto/aes_generic.c +++ b/crypto/aes_generic.c @@ -62,7 +62,7 @@ static inline u8 byte(const u32 x, const unsigned n) static const u32 rco_tab[10] = { 1, 2, 4, 8, 16, 32, 64, 128, 27, 54 }; -const u32 crypto_ft_tab[4][256] = { +__visible const u32 crypto_ft_tab[4][256] = { { 0xa56363c6, 0x847c7cf8, 0x99ee, 0x8d7b7bf6, 0x0df2f2ff, 0xbd6b6bd6, 0xb16f6fde, 0x54c5c591, @@ -326,7 +326,7 @@ const u32 crypto_ft_tab[4][256] = { } }; -const u32 crypto_fl_tab[4][256] = { +__visible const u32 crypto_fl_tab[4][256] = { { 0x0063, 0x007c, 0x0077, 0x007b, 0x00f2, 0x006b, 0x006f, 0x00c5, @@ -590,7 +590,7 @@ const u32 crypto_fl_tab[4][256] = { } }; -const u32 crypto_it_tab[4][256] = { +__visible const u32 crypto_it_tab[4][256] = { { 0x50a7f451, 0x5365417e, 0xc3a4171a, 0x965e273a, 0xcb6bab3b, 0xf1459d1f, 0xab58faac, 0x9303e34b, @@ -854,7 +854,7 @@ const u32 crypto_it_tab[4][256] = { } }; -const u32 crypto_il_tab[4][256] = { +__visible const u32 crypto_il_tab[4][256] = { { 0x0052, 0x0009, 0x006a, 0x00d5, 0x0030, 0x0036, 0x00a5, 0x0038, diff --git a/include/crypto/aes.h b/include/crypto/aes.h index 7524ba3..f30d38d 100644 --- a/include/crypto/aes.h +++ b/include/crypto/aes.h @@ -27,10 +27,10 @@ struct crypto_aes_ctx { u32 key_length; }; -extern const u32 crypto_ft_tab[4][256]; -extern const u32 crypto_fl_tab[4][256]; -extern const u32 crypto_it_tab[4][256]; -extern const u32 crypto_il_tab[4][256]; +extern __visible const u32 crypto_ft_tab[4][256]; +extern __visible const u32 crypto_fl_tab[4][256]; +extern __visible const u32 crypto_it_tab[4][256]; +extern __visible const u32 crypto_il_tab[4][256]; int crypto_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, unsigned int key_len); -- 1.7.7.6 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH 35/74] lto, crypto, aes: mark AES tables __visible
From: Andi Kleen a...@linux.intel.com Various tables in aes_generic are accessed by assembler code. Mark them __visible for LTO Cc: herb...@gondor.apana.org.au Signed-off-by: Andi Kleen a...@linux.intel.com --- crypto/aes_generic.c |8 include/crypto/aes.h |8 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/crypto/aes_generic.c b/crypto/aes_generic.c index a68c73d..1cf1f89 100644 --- a/crypto/aes_generic.c +++ b/crypto/aes_generic.c @@ -62,7 +62,7 @@ static inline u8 byte(const u32 x, const unsigned n) static const u32 rco_tab[10] = { 1, 2, 4, 8, 16, 32, 64, 128, 27, 54 }; -const u32 crypto_ft_tab[4][256] = { +__visible const u32 crypto_ft_tab[4][256] = { { 0xa56363c6, 0x847c7cf8, 0x99ee, 0x8d7b7bf6, 0x0df2f2ff, 0xbd6b6bd6, 0xb16f6fde, 0x54c5c591, @@ -326,7 +326,7 @@ const u32 crypto_ft_tab[4][256] = { } }; -const u32 crypto_fl_tab[4][256] = { +__visible const u32 crypto_fl_tab[4][256] = { { 0x0063, 0x007c, 0x0077, 0x007b, 0x00f2, 0x006b, 0x006f, 0x00c5, @@ -590,7 +590,7 @@ const u32 crypto_fl_tab[4][256] = { } }; -const u32 crypto_it_tab[4][256] = { +__visible const u32 crypto_it_tab[4][256] = { { 0x50a7f451, 0x5365417e, 0xc3a4171a, 0x965e273a, 0xcb6bab3b, 0xf1459d1f, 0xab58faac, 0x9303e34b, @@ -854,7 +854,7 @@ const u32 crypto_it_tab[4][256] = { } }; -const u32 crypto_il_tab[4][256] = { +__visible const u32 crypto_il_tab[4][256] = { { 0x0052, 0x0009, 0x006a, 0x00d5, 0x0030, 0x0036, 0x00a5, 0x0038, diff --git a/include/crypto/aes.h b/include/crypto/aes.h index 7524ba3..f30d38d 100644 --- a/include/crypto/aes.h +++ b/include/crypto/aes.h @@ -27,10 +27,10 @@ struct crypto_aes_ctx { u32 key_length; }; -extern const u32 crypto_ft_tab[4][256]; -extern const u32 crypto_fl_tab[4][256]; -extern const u32 crypto_it_tab[4][256]; -extern const u32 crypto_il_tab[4][256]; +extern __visible const u32 crypto_ft_tab[4][256]; +extern __visible const u32 crypto_fl_tab[4][256]; +extern __visible const u32 crypto_it_tab[4][256]; +extern __visible const u32 crypto_il_tab[4][256]; int crypto_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, unsigned int key_len); -- 1.7.7.6 -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/