From e82d006bf4cbfc8593bc55d05afe438a52a240d6 Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Sat, 17 Dec 2022 10:09:24 +0100 Subject: [PATCH] fix kernel 28000 a3 build warnings/errors --- OpenCL/m28000_a3-pure.cl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenCL/m28000_a3-pure.cl b/OpenCL/m28000_a3-pure.cl index dc96cab5d..f0aac2e14 100644 --- a/OpenCL/m28000_a3-pure.cl +++ b/OpenCL/m28000_a3-pure.cl @@ -171,7 +171,7 @@ DECLSPEC u64 crc64jones (PRIVATE_AS const u32 *w, const u32 pw_len, const u64 iv PRIVATE_AS const u8 *w_ptr = (PRIVATE_AS const u8 *) w; - for (int i = 0; i < pw_len; i++) + for (u32 i = 0; i < pw_len; i++) { const u64 v = (const u64) w_ptr[i]; @@ -181,7 +181,7 @@ DECLSPEC u64 crc64jones (PRIVATE_AS const u32 *w, const u32 pw_len, const u64 iv return a; } -KERNEL_FQ void m28000_mxx (KERN_ATTR_ESALT (crc64_t)) +KERNEL_FQ void m28000_mxx (KERN_ATTR_VECTOR_ESALT (crc64_t)) { /** * modifier @@ -254,7 +254,7 @@ KERNEL_FQ void m28000_mxx (KERN_ATTR_ESALT (crc64_t)) } } -KERNEL_FQ void m28000_sxx (KERN_ATTR_ESALT (crc64_t)) +KERNEL_FQ void m28000_sxx (KERN_ATTR_VECTOR_ESALT (crc64_t)) { /** * modifier