git: 521fdb95cc78 - main - ossl: fix unused-function warning for AES_CBC_ENCRYPT on powerpc

Adrian Chadd <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a808b7e.1c7cf.7cab605b__6174.75107298873$1786809299$gmane$org@gitrepo.freebsd.org>
The branch main has been updated by adrian:

URL: https://cgit.FreeBSD.org/src/commit/?id=521fdb95cc7863871e5404e9a9abd1c4174af1ba

commit 521fdb95cc7863871e5404e9a9abd1c4174af1ba
Author:     Abdelkader Boudih <[email protected]>
AuthorDate: 2026-08-15 15:52:19 +0000
Commit:     Adrian Chadd <[email protected]>
CommitDate: 2026-08-15 15:52:42 +0000

    ossl: fix unused-function warning for AES_CBC_ENCRYPT on powerpc
    
    static, not static inline, so TUs that don't call it warn.
    
    Reviewed by:    adrian
    Differential Revision:  https://reviews.freebsd.org/D58823
---
 sys/crypto/openssl/ossl_ppc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/crypto/openssl/ossl_ppc.h b/sys/crypto/openssl/ossl_ppc.h
index 5f685687d27e..9218a5e8127f 100644
--- a/sys/crypto/openssl/ossl_ppc.h
+++ b/sys/crypto/openssl/ossl_ppc.h
@@ -33,7 +33,7 @@ ossl_cipher_encrypt_t aes_p8_cbc_encrypt;
 /* vpaes-ppc.S */
 ossl_cipher_encrypt_t vpaes_cbc_encrypt;
 
-static void
+static inline void
 AES_CBC_ENCRYPT(const unsigned char *in, unsigned char *out,
     size_t length, const void *key, unsigned char *iv, int encrypt)
 {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.