Skip to contentSkip to conversation

linux-next: build warning after merge of the char-misc tree

DISCUSSION Stephen Rothwell 3 participants 3 messages May 1, 2020 Linux-next tree

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw
Quoted 13 lines · Stephen Rothwell

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;
      |               ^~~~~~
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

#2 lore raw

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 tree

CAUTION: 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_64 allmodconfig) 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 be

used uninitialized in this function [-Wmaybe-uninitialized]

Quoted 3 lines
  137 |  if (status) {
      |     ^

drivers/crypto/xilinx/zynqmp-aes-gcm.c:87:15: note: 'status' was declared

here

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