From d3c7bf20f3cc5f5bc44ce51513838561c8ceb40f Mon Sep 17 00:00:00 2001 From: Shiji Yang Date: Tue, 14 Apr 2026 07:46:35 +0800 Subject: [PATCH] kernel: kmod-ltq-deu: fix discarded-qualifiers build error Fixes: ifxmips_aes.c: In function 'gcm_aes_decrypt': ifxmips_aes.c:1803:14: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 1803 | temp = walk.src.virt.addr; | ^ Signed-off-by: Shiji Yang Link: https://github.com/openwrt/openwrt/pull/22921 Signed-off-by: Robert Marko --- package/kernel/lantiq/ltq-deu/src/ifxmips_aes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/kernel/lantiq/ltq-deu/src/ifxmips_aes.c b/package/kernel/lantiq/ltq-deu/src/ifxmips_aes.c index 4139b343da..2bb2726be6 100644 --- a/package/kernel/lantiq/ltq-deu/src/ifxmips_aes.c +++ b/package/kernel/lantiq/ltq-deu/src/ifxmips_aes.c @@ -1798,7 +1798,7 @@ static int gcm_aes_decrypt(struct aead_request *req) //crypt and hash while ((nbytes = dec_bytes = walk.nbytes) && (walk.nbytes >= AES_BLOCK_SIZE)) { - u8 *temp; + const u8 *temp; dec_bytes -= (nbytes % AES_BLOCK_SIZE); temp = walk.src.virt.addr; while (dec_bytes) {