]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
kernel: kmod-ltq-deu: fix discarded-qualifiers build error
authorShiji Yang <yangshiji66@outlook.com>
Mon, 13 Apr 2026 23:46:35 +0000 (07:46 +0800)
committerRobert Marko <robimarko@gmail.com>
Thu, 16 Apr 2026 09:34:28 +0000 (11:34 +0200)
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 <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/22921
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/kernel/lantiq/ltq-deu/src/ifxmips_aes.c

index 4139b343dad32cd97e4f52aa6030f37e50a19a5e..2bb2726be6454f9890b6156721d8205a1c25b6a2 100644 (file)
@@ -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) {