mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-05-04 09:31:26 +02:00
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 <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/22921
Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
parent
87ae122fd1
commit
d3c7bf20f3
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user