Skip to content

Commit 320a93d

Browse files
arndbctmarinas
authored andcommitted
arm64: xor-neon: mark xor_arm64_neon_*() static
The only references to these functions are in the same file, and there is no prototype, which causes a harmless warning: arch/arm64/lib/xor-neon.c:13:6: error: no previous prototype for 'xor_arm64_neon_2' [-Werror=missing-prototypes] arch/arm64/lib/xor-neon.c:40:6: error: no previous prototype for 'xor_arm64_neon_3' [-Werror=missing-prototypes] arch/arm64/lib/xor-neon.c:76:6: error: no previous prototype for 'xor_arm64_neon_4' [-Werror=missing-prototypes] arch/arm64/lib/xor-neon.c:121:6: error: no previous prototype for 'xor_arm64_neon_5' [-Werror=missing-prototypes] Fixes: cc9f834 ("arm64: crypto: add NEON accelerated XOR implementation") Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: Kees Cook <[email protected]> Acked-by: Ard Biesheuvel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent 44c026a commit 320a93d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arch/arm64/lib/xor-neon.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <linux/module.h>
1111
#include <asm/neon-intrinsics.h>
1212

13-
void xor_arm64_neon_2(unsigned long bytes, unsigned long * __restrict p1,
13+
static void xor_arm64_neon_2(unsigned long bytes, unsigned long * __restrict p1,
1414
const unsigned long * __restrict p2)
1515
{
1616
uint64_t *dp1 = (uint64_t *)p1;
@@ -37,7 +37,7 @@ void xor_arm64_neon_2(unsigned long bytes, unsigned long * __restrict p1,
3737
} while (--lines > 0);
3838
}
3939

40-
void xor_arm64_neon_3(unsigned long bytes, unsigned long * __restrict p1,
40+
static void xor_arm64_neon_3(unsigned long bytes, unsigned long * __restrict p1,
4141
const unsigned long * __restrict p2,
4242
const unsigned long * __restrict p3)
4343
{
@@ -73,7 +73,7 @@ void xor_arm64_neon_3(unsigned long bytes, unsigned long * __restrict p1,
7373
} while (--lines > 0);
7474
}
7575

76-
void xor_arm64_neon_4(unsigned long bytes, unsigned long * __restrict p1,
76+
static void xor_arm64_neon_4(unsigned long bytes, unsigned long * __restrict p1,
7777
const unsigned long * __restrict p2,
7878
const unsigned long * __restrict p3,
7979
const unsigned long * __restrict p4)
@@ -118,7 +118,7 @@ void xor_arm64_neon_4(unsigned long bytes, unsigned long * __restrict p1,
118118
} while (--lines > 0);
119119
}
120120

121-
void xor_arm64_neon_5(unsigned long bytes, unsigned long * __restrict p1,
121+
static void xor_arm64_neon_5(unsigned long bytes, unsigned long * __restrict p1,
122122
const unsigned long * __restrict p2,
123123
const unsigned long * __restrict p3,
124124
const unsigned long * __restrict p4,

0 commit comments

Comments
 (0)