From 1ac468b9cd5c388ff86d238b4035c064c7671bfa Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Sun, 27 Nov 2016 23:59:23 +0100 Subject: [PATCH] Fix kernel build warnings (no previous prototypes and/or incompatible function parameters ... --- OpenCL/m00500.cl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/OpenCL/m00500.cl b/OpenCL/m00500.cl index 2c1df0ac8..c1cc603fe 100644 --- a/OpenCL/m00500.cl +++ b/OpenCL/m00500.cl @@ -16,7 +16,7 @@ #define md5crypt_magic 0x00243124u -void md5_transform (const u32 w0[4], const u32 w1[4], const u32 w2[4], const u32 w3[4], u32 digest[4]) +static void md5_transform (const u32 w0[4], const u32 w1[4], const u32 w2[4], const u32 w3[4], u32 digest[4]) { u32 a = digest[0]; u32 b = digest[1]; @@ -114,7 +114,7 @@ void md5_transform (const u32 w0[4], const u32 w1[4], const u32 w2[4], const u32 digest[3] += d; } -void memcat16 (u32 block0[4], u32 block1[4], u32 block2[4], u32 block3[4], const u32 block_len, const u32 append[4]) +static void memcat16 (u32 block0[4], u32 block1[4], u32 block2[4], u32 block3[4], const u32 block_len, const u32 append[4]) { u32 tmp0; u32 tmp1; @@ -226,7 +226,7 @@ void memcat16 (u32 block0[4], u32 block1[4], u32 block2[4], u32 block3[4], const } } -void memcat16_x80 (u32 block0[4], u32 block1[4], u32 block2[4], u32 block3[4], const u32 block_len, const u32 append[4]) +static void memcat16_x80 (u32 block0[4], u32 block1[4], u32 block2[4], u32 block3[4], const u32 block_len, const u32 append[4]) { u32 tmp0; u32 tmp1; @@ -338,7 +338,7 @@ void memcat16_x80 (u32 block0[4], u32 block1[4], u32 block2[4], u32 block3[4], c } } -void memcat8 (u32 block0[4], u32 block1[4], u32 block2[4], u32 block3[4], const u32 block_len, const u32 append[2]) +static void memcat8 (u32 block0[4], u32 block1[4], u32 block2[4], u32 block3[4], const u32 block_len, const u32 append[2]) { u32 tmp0; u32 tmp1; @@ -430,7 +430,7 @@ void memcat8 (u32 block0[4], u32 block1[4], u32 block2[4], u32 block3[4], const } } -void append_sign (u32 block0[4], u32 block1[4], const u32 block_len) +static void append_sign (u32 block0[4], u32 block1[4], const u32 block_len) { switch (block_len) { @@ -512,7 +512,7 @@ void append_sign (u32 block0[4], u32 block1[4], const u32 block_len) } } -void append_1st (u32 block0[4], u32 block1[4], u32 block2[4], u32 block3[4], const u32 block_len, const u32 append) +static void append_1st (u32 block0[4], u32 block1[4], u32 block2[4], u32 block3[4], const u32 block_len, const u32 append) { switch (block_len) {