linux-next: build warning after merge of the char-misc tree
Hi all,
After merging the char-misc tree, today's linux-next build (x86_64 allmodconfig) produced this warning:
drivers/crypto/xilinx/zynqmp-aes-gcm.c: In function 'zynqmp_handle_aes_req':drivers/crypto/xilinx/zynqmp-aes-gcm.c:137:5: warning: 'status' may be used uninitialized in this function [-Wmaybe-uninitialized]
137 | if (status) {
| ^
drivers/crypto/xilinx/zynqmp-aes-gcm.c:87:15: note: 'status' was declared here
87 | unsigned int status;
| ^~~~~~Introduced by commit
bc86f9c54616 ("firmware: xilinx: Remove eemi ops for aes engine")
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 13 lines · Stephen Rothwell
Hi all,
After merging the char-misc tree, today's linux-next build (
x86_64allmodconfig) produced this warning:
drivers/crypto/xilinx/zynqmp-aes-gcm.c: In function 'zynqmp_handle_aes_req':drivers/crypto/xilinx/zynqmp-aes-gcm.c:137:5: warning: 'status' may be used uninitialized in this function [-Wmaybe-uninitialized]137 | if (status) { | ^ drivers/crypto/xilinx/zynqmp-aes-gcm.c:87:15: note: 'status' was declared here 87 | unsigned int status; | ^~~~~~
Quoted 3 lines
Introduced by commit
bc86f9c54616("firmware: xilinx: Remove eemi ops for aes engine")
Rajan, can you send me a patch to fix this up please?
thanks,
greg k-h
Hi Greg,
Thanks for notifying. I have submitted "[PATCH char-misc-next] crypto: xilinx: Handle AES PM API return status" to fix warning.
Thanks,
Rajan
Quoted 41 lines
-----Original Message-----
From: Greg KH <[email protected]>
Sent: Friday, May 1, 2020 12:25 PM
To: Stephen Rothwell <[email protected]>; Rajan Vaja <[email protected]>; Jolly Shah <[email protected]>
Cc: Arnd Bergmann <[email protected]>; Linux Next Mailing List <linux- [email protected]>; Linux Kernel Mailing List <linux- [email protected]>
Subject: Re: linux-next: build warning after merge of the char-misc treeCAUTION: This message has originated from an External Source. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email.
Quoted 6 lines · Stephen Rothwell
Hi all,
After merging the char-misc tree, today's linux-next build (
x86_64allmodconfig) produced this warning:
drivers/crypto/xilinx/zynqmp-aes-gcm.c: In function'
zynqmp_handle_aes_req':Quoted 1 line
drivers/crypto/xilinx/zynqmp-aes-gcm.c:137:5: warning: 'status' may beused uninitialized in this function [-Wmaybe-uninitialized]
Quoted 3 lines
137 | if (status) { | ^
drivers/crypto/xilinx/zynqmp-aes-gcm.c:87:15: note: 'status' was declaredhere
Quoted 6 lines
87 | unsigned int status; | ^~~~~~Introduced by commit
bc86f9c54616("firmware: xilinx: Remove eemi ops for aes engine")Rajan, can you send me a patch to fix this up please?
thanks,
greg k-h