From: Herbert Xu Date: Fri, 13 Nov 2020 06:12:59 +0000 (+1100) Subject: crypto: lib/curve25519 - Move selftest prototype into header file X-Git-Tag: v5.15~2056^2~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1201581c57925b8bc2cba8628b61add3d16d4615;p=platform%2Fkernel%2Flinux-starfive.git crypto: lib/curve25519 - Move selftest prototype into header file This patch moves the curve25519_selftest into curve25519.h so we don't get a warning from gcc complaining about a missing prototype. Reported-by: kernel test robot Signed-off-by: Herbert Xu --- diff --git a/include/crypto/curve25519.h b/include/crypto/curve25519.h index 4e6dc84..ece6a9b 100644 --- a/include/crypto/curve25519.h +++ b/include/crypto/curve25519.h @@ -28,6 +28,8 @@ void curve25519_arch(u8 out[CURVE25519_KEY_SIZE], void curve25519_base_arch(u8 pub[CURVE25519_KEY_SIZE], const u8 secret[CURVE25519_KEY_SIZE]); +bool curve25519_selftest(void); + static inline bool __must_check curve25519(u8 mypublic[CURVE25519_KEY_SIZE], const u8 secret[CURVE25519_KEY_SIZE], diff --git a/lib/crypto/curve25519.c b/lib/crypto/curve25519.c index 288a62c..fb29739 100644 --- a/lib/crypto/curve25519.c +++ b/lib/crypto/curve25519.c @@ -13,8 +13,6 @@ #include #include -bool curve25519_selftest(void); - static int __init mod_init(void) { if (!IS_ENABLED(CONFIG_CRYPTO_MANAGER_DISABLE_TESTS) &&