From 5912e926b08cc59a9515f70d1a822e7c56b0ff91 Mon Sep 17 00:00:00 2001 From: Jianfeng Liu Date: Tue, 14 Oct 2025 10:11:28 +0800 Subject: [PATCH] rename sha256_init to rtw_sha256_init to avoid name conflict since v6.18 --- core/rtw_security.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/rtw_security.c b/core/rtw_security.c index 11aa9a4..539c5a3 100644 --- a/core/rtw_security.c +++ b/core/rtw_security.c @@ -2180,7 +2180,7 @@ static int sha256_compress(struct rtl_sha256_state *md, unsigned char *buf) } /* Initialize the hash state */ -static void sha256_init(struct rtl_sha256_state *md) +static void rtw_sha256_init(struct rtl_sha256_state *md) { md->curlen = 0; md->length = 0; @@ -2295,7 +2295,7 @@ static int sha256_vector(size_t num_elem, u8 *addr[], size_t *len, struct rtl_sha256_state ctx; size_t i; - sha256_init(&ctx); + rtw_sha256_init(&ctx); for (i = 0; i < num_elem; i++) if (sha256_process(&ctx, addr[i], len[i])) return -1;