From f78091a180efe6cd5ba83fc4183b12432e368841 Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Sun, 27 Nov 2016 23:59:36 +0100 Subject: [PATCH] Fix kernel build warnings (no previous prototypes and/or incompatible function parameters ... --- OpenCL/m14100_a0.cl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenCL/m14100_a0.cl b/OpenCL/m14100_a0.cl index e2458bb9d..f88da687e 100644 --- a/OpenCL/m14100_a0.cl +++ b/OpenCL/m14100_a0.cl @@ -382,7 +382,7 @@ __constant u32 c_skb[8][64] = #define BOX1(i,S) (u32x) ((S)[(i).s0], (S)[(i).s1], (S)[(i).s2], (S)[(i).s3], (S)[(i).s4], (S)[(i).s5], (S)[(i).s6], (S)[(i).s7], (S)[(i).s8], (S)[(i).s9], (S)[(i).sa], (S)[(i).sb], (S)[(i).sc], (S)[(i).sd], (S)[(i).se], (S)[(i).sf]) #endif -void _des_crypt_encrypt (u32x iv[2], u32x data[2], u32x Kc[16], u32x Kd[16], __local u32 (*s_SPtrans)[64]) +static void _des_crypt_encrypt (u32x iv[2], u32x data[2], u32x Kc[16], u32x Kd[16], __local u32 (*s_SPtrans)[64]) { u32x r = rotl32 (data[0], 3u); u32x l = rotl32 (data[1], 3u); @@ -426,7 +426,7 @@ void _des_crypt_encrypt (u32x iv[2], u32x data[2], u32x Kc[16], u32x Kd[16], __l iv[1] = rotl32 (r, 29u); } -void _des_crypt_decrypt (u32x iv[2], u32x data[2], u32x Kc[16], u32x Kd[16], __local u32 (*s_SPtrans)[64]) +static void _des_crypt_decrypt (u32x iv[2], u32x data[2], u32x Kc[16], u32x Kd[16], __local u32 (*s_SPtrans)[64]) { u32x r = rotl32 (data[0], 3u); u32x l = rotl32 (data[1], 3u); @@ -470,7 +470,7 @@ void _des_crypt_decrypt (u32x iv[2], u32x data[2], u32x Kc[16], u32x Kd[16], __l iv[1] = rotl32 (r, 29u); } -void _des_crypt_keysetup (u32x c, u32x d, u32x Kc[16], u32x Kd[16], __local u32 (*s_skb)[64]) +static void _des_crypt_keysetup (u32x c, u32x d, u32x Kc[16], u32x Kd[16], __local u32 (*s_skb)[64]) { u32x tt;