]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
fix(st-crypto): set get_plain_pk_from_asn1() static
authorYann Gautier <yann.gautier@st.com>
Mon, 12 Dec 2022 13:56:39 +0000 (14:56 +0100)
committerYann Gautier <yann.gautier@st.com>
Tue, 13 Dec 2022 09:54:07 +0000 (10:54 +0100)
The issue is triggered when enabling -Wmissing-prototypes warning:
plat/st/common/stm32mp_crypto_lib.c:81:5: warning:
 no previous prototype for 'get_plain_pk_from_asn1'
 [-Wmissing-prototypes]
   81 | int get_plain_pk_from_asn1(void *pk_ptr, unsigned int pk_len,
      |     ^~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Yann Gautier <yann.gautier@st.com>
Change-Id: Ia36bbaba6e187ab47c203ddf0d7d017b210545cf

plat/st/common/stm32mp_crypto_lib.c

index acfe70165631a4f357709db00038586a017f9337..0da00193a5bb47c6cd8493ac8870118800ef6023 100644 (file)
@@ -79,7 +79,7 @@ static void crypto_lib_init(void)
        }
 }
 
-int get_plain_pk_from_asn1(void *pk_ptr, unsigned int pk_len, void **plain_pk,
+static int get_plain_pk_from_asn1(void *pk_ptr, unsigned int pk_len, void **plain_pk,
                           unsigned int *len, int *pk_alg)
 {
        int ret;