[PATCH 36/74] lto, crypto, camelia: Make camelia tables used by assembler __visible

2012-08-18 Thread Andi Kleen
From: Andi Kleen 

Cc: herb...@gondor.apana.org.au
Signed-off-by: Andi Kleen 
---
 arch/x86/crypto/camellia_glue.c |   16 
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/arch/x86/crypto/camellia_glue.c b/arch/x86/crypto/camellia_glue.c
index eeb2b3b..f290db7 100644
--- a/arch/x86/crypto/camellia_glue.c
+++ b/arch/x86/crypto/camellia_glue.c
@@ -91,7 +91,7 @@ static void camellia_decrypt(struct crypto_tfm *tfm, u8 *dst, 
const u8 *src)
 }
 
 /* camellia sboxes */
-const u64 camellia_sp1000[256] = {
+__visible const u64 camellia_sp1000[256] = {
0x707070707000, 0x828282828200, 0x2c2c2c2c2c00,
0xececececec00, 0xb3b3b3b3b300, 0x272727272700,
0xc0c0c0c0c000, 0xe5e5e5e5e500, 0xe4e4e4e4e400,
@@ -180,7 +180,7 @@ const u64 camellia_sp1000[256] = {
0x9e9e9e9e9e00,
 };
 
-const u64 camellia_sp22000222[256] = {
+__visible const u64 camellia_sp22000222[256] = {
0xe0e000e0e0e0, 0x050500050505, 0x585800585858,
0xd9d900d9d9d9, 0x676700676767, 0x4e4e004e4e4e,
0x818100818181, 0xcbcb00cbcbcb, 0xc9c900c9c9c9,
@@ -269,7 +269,7 @@ const u64 camellia_sp22000222[256] = {
0x3d3d003d3d3d,
 };
 
-const u64 camellia_sp03303033[256] = {
+__visible const u64 camellia_sp03303033[256] = {
0x0038380038003838, 0x0041410041004141, 0x0016160016001616,
0x0076760076007676, 0x00d9d900d900d9d9, 0x0093930093009393,
0x0060600060006060, 0x00f2f200f200f2f2, 0x0072720072007272,
@@ -358,7 +358,7 @@ const u64 camellia_sp03303033[256] = {
0x004f4f004f004f4f,
 };
 
-const u64 camellia_sp0004[256] = {
+__visible const u64 camellia_sp0004[256] = {
0x707070700070, 0x2c2c2c2c002c, 0xb3b3b3b300b3,
0xc0c0c0c000c0, 0xe4e4e4e400e4, 0x575757570057,
0xeaeaeaea00ea, 0xaeaeaeae00ae, 0x232323230023,
@@ -447,7 +447,7 @@ const u64 camellia_sp0004[256] = {
0x9e9e9e9e009e,
 };
 
-const u64 camellia_sp02220222[256] = {
+__visible const u64 camellia_sp02220222[256] = {
0x00e0e0e000e0e0e0, 0x0005050500050505, 0x0058585800585858,
0x00d9d9d900d9d9d9, 0x0067676700676767, 0x004e4e4e004e4e4e,
0x0081818100818181, 0x00cbcbcb00cbcbcb, 0x00c9c9c900c9c9c9,
@@ -536,7 +536,7 @@ const u64 camellia_sp02220222[256] = {
0x003d3d3d003d3d3d,
 };
 
-const u64 camellia_sp30333033[256] = {
+__visible const u64 camellia_sp30333033[256] = {
0x3800383838003838, 0x4100414141004141, 0x1600161616001616,
0x7600767676007676, 0xd900d9d9d900d9d9, 0x9300939393009393,
0x6000606060006060, 0xf200f2f2f200f2f2, 0x7200727272007272,
@@ -625,7 +625,7 @@ const u64 camellia_sp30333033[256] = {
0x4f004f4f4f004f4f,
 };
 
-const u64 camellia_sp44044404[256] = {
+__visible const u64 camellia_sp44044404[256] = {
0x7070007070700070, 0x2c2c002c2c2c002c, 0xb3b300b3b3b300b3,
0xc0c000c0c0c000c0, 0xe4e400e4e4e400e4, 0x5757005757570057,
0xeaea00eaeaea00ea, 0xaeae00aeaeae00ae, 0x2323002323230023,
@@ -714,7 +714,7 @@ const u64 camellia_sp44044404[256] = {
0x9e9e009e9e9e009e,
 };
 
-const u64 camellia_sp11101110[256] = {
+__visible const u64 camellia_sp11101110[256] = {
0x7070700070707000, 0x8282820082828200, 0x2c2c2c002c2c2c00,
0xececec00ececec00, 0xb3b3b300b3b3b300, 0x2727270027272700,
0xc0c0c000c0c0c000, 0xe5e5e500e5e5e500, 0xe4e4e400e4e4e400,
-- 
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/


Re: [PATCH 36/74] lto, crypto, camelia: Make camelia tables used by assembler __visible

2012-08-20 Thread Herbert Xu
On Sat, Aug 18, 2012 at 07:56:32PM -0700, Andi Kleen wrote:
> From: Andi Kleen 
> 
> 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/