From 091338cb398ef45776313e01db9c0a58d4e806f7 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Fri, 2 Jul 2021 16:25:22 -0700 Subject: [PATCH] ANDROID: fips140: add missing static keyword to fips140_init() Avoid a compiler warning about there being no previous declaration for fips140_init(). Bug: 153614920 Bug: 188620248 Change-Id: I8192c597d16ff6f43a0e9cb45a89969666b3875e Signed-off-by: Eric Biggers --- crypto/fips140-module.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crypto/fips140-module.c b/crypto/fips140-module.c index 2b3ecd4bea5a..7971e0bdfb36 100644 --- a/crypto/fips140-module.c +++ b/crypto/fips140-module.c @@ -523,7 +523,8 @@ static bool update_fips140_library_routines(void) * let's disable CFI locally when handling the initcall array, to avoid * surpises. */ -int __init __attribute__((__no_sanitize__("cfi"))) fips140_init(void) +static int __init __attribute__((__no_sanitize__("cfi"))) +fips140_init(void) { const u32 *initcall;