aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-29 17:04:48 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-29 23:08:53 +0200
commit35a03b163b434560c1030ce4272744c922f0a81f (patch)
tree2e86544a7f6e473138ef6d490638cb4e237bb87f
parentcurve25519: x86_64: satisfy sparse (diff)
downloadwireguard-monolithic-historical-35a03b163b434560c1030ce4272744c922f0a81f.tar.xz
wireguard-monolithic-historical-35a03b163b434560c1030ce4272744c922f0a81f.zip
curve25519: x86_64: make symbol static
-rw-r--r--src/crypto/curve25519-x86_64.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypto/curve25519-x86_64.h b/src/crypto/curve25519-x86_64.h
index 4e3f9f8..a4c958a 100644
--- a/src/crypto/curve25519-x86_64.h
+++ b/src/crypto/curve25519-x86_64.h
@@ -890,7 +890,7 @@ static void sqr2_256x256_integer_bmi2(u64 *const c, const u64 *const a)
: "memory", "cc", "%rax", "%rcx", "%rdx", "%r8", "%r9", "%r10", "%r11", "%r12", "%r13", "%r14");
}
-void red_eltfp25519_2w_adx(u64 *const c, const u64 *const a)
+static void red_eltfp25519_2w_adx(u64 *const c, const u64 *const a)
{
asm volatile(
"movl $38, %%edx; " /* 2*c = 38 = 2^256 */
@@ -956,7 +956,7 @@ void red_eltfp25519_2w_adx(u64 *const c, const u64 *const a)
: "memory", "cc", "%rax", "%rbx", "%rcx", "%rdx", "%r8", "%r9", "%r10", "%r11");
}
-void red_eltfp25519_2w_bmi2(u64 *const c, const u64 *const a)
+static void red_eltfp25519_2w_bmi2(u64 *const c, const u64 *const a)
{
asm volatile(
"movl $38, %%edx ; " /* 2*c = 38 = 2^256 */