]> code.ossystems Code Review - meta-freescale.git/commitdiff
openssl-qoriq: s/inline/static/ to fix gcc7.1 issue
authorChunrong Guo <chunrong.guo@nxp.com>
Tue, 20 Jun 2017 03:27:02 +0000 (11:27 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Thu, 29 Jun 2017 19:44:10 +0000 (16:44 -0300)
ix the following error:
| ../libcrypto.so: undefined reference to `spcf_bn2bin'
| ../libcrypto.so: undefined reference to `spcf_bn2bin_ex'
| collect2: error: ld returned 1 exit status
| make[2]: *** [link_app.gnu] Error 1

Change-Id: I24be02ccd7f587d6c67d443ac3a36206399a4702
Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
Signed-off-by: Chunrong Guo <B40290@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-connectivity/openssl/openssl-qoriq/qoriq/0045-cryptodev-change-signature-for-conversion-functions.patch

index 4489b435e851d95c0dcea61ddbfe72a1163ec578..12b5f6cc632f3e7e0fc7980f95c4704d63411176 100644 (file)
@@ -20,7 +20,7 @@ index b9c7ff3..58e539c 100644
  const EVP_CIPHER cryptodev_tls12_aes_256_cbc_hmac_sha256;
  
 -inline int spcf_bn2bin(BIGNUM *bn, unsigned char **bin, int *bin_len)
-+inline int spcf_bn2bin(const BIGNUM *bn, unsigned char **bin, int *bin_len)
++static int spcf_bn2bin(const BIGNUM *bn, unsigned char **bin, int *bin_len)
  {
      int len;
      unsigned char *p;
@@ -29,7 +29,7 @@ index b9c7ff3..58e539c 100644
  }
  
 -inline int spcf_bn2bin_ex(BIGNUM *bn, unsigned char **bin, int *bin_len)
-+inline int spcf_bn2bin_ex(const BIGNUM *bn, unsigned char **bin, int *bin_len)
++static int spcf_bn2bin_ex(const BIGNUM *bn, unsigned char **bin, int *bin_len)
  {
      int len;
      unsigned char *p;