wireless: iwlwifi: fix printk format warnings in uefi.c
Subsystems (3)
PATCH 1/1 wireless: iwlwifi: fix printk format warnings in uefi.c
The kernel test robot reports printk format warnings in uefi.c, so correct them.
../drivers/net/wireless/intel/iwlwifi/fw/uefi.c: In function 'iwl_uefi_get_pnvm':../drivers/net/wireless/intel/iwlwifi/fw/uefi.c:52:30: warning: format '%zd' expects argument of type 'signed size_t', but argument 7 has type 'long unsigned int' [-Wformat=]
52 | "PNVM UEFI variable not found %d (len %zd)\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
53 | err, package_size);
| ~~~~~~~~~~~~
| |
| long unsigned int
../drivers/net/wireless/intel/iwlwifi/fw/uefi.c:59:29: warning: format '%zd' expects argument of type 'signed size_t', but argument 6 has type 'long unsigned int' [-Wformat=]
59 | IWL_DEBUG_FW(trans, "Read PNVM from UEFI with size %zd\n", package_size);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~
| |
| long unsigned int--- drivers/net/wireless/intel/iwlwifi/fw/uefi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/wireless/intel/iwlwifi/fw/uefi.c +2 -2
@@ -49,14 +49,14 @@ void *iwl_uefi_get_pnvm(struct iwl_trans err =efivar_entry_get (pnvm_efivar,NULL , &package_size, data);if (err) {IWL_DEBUG_FW (trans, -"PNVM UEFI variable not found %d (len %zd)\n" , +"PNVM UEFI variable not found %d (len %lu)\n" , err, package_size);kfree (data); data =ERR_PTR (err); goto out; } -IWL_DEBUG_FW (trans,"Read PNVM from UEFI with size %zd\n" , package_size); +IWL_DEBUG_FW (trans,"Read PNVM from UEFI with size %lu\n" , package_size); *len = package_size; out:
Quoted 39 lines · Randy Dunlap
The kernel test robot reports printk format warnings in
uefi.c, so correct them.
../drivers/net/wireless/intel/iwlwifi/fw/uefi.c: In function 'iwl_uefi_get_pnvm':../drivers/net/wireless/intel/iwlwifi/fw/uefi.c:52:30: warning: format '%zd' expects argument of type 'signedsize_t', but argument 7 has type 'long unsigned int' [-Wformat=]52 | "PNVM UEFI variable not found %d (len %zd)\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 53 | err, package_size); | ~~~~~~~~~~~~ | | | long unsigned int ../drivers/net/wireless/intel/iwlwifi/fw/uefi.c:59:29: warning: format '%zd' expects argument of type 'signed size_t', but argument 6 has type 'long unsigned int' [-Wformat=] 59 | IWL_DEBUG_FW(trans, "Read PNVM from UEFI with size %zd\n", package_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ | | | long unsigned intFixes 84c3c9952afb ("iwlwifi: move UEFI code to a separate file")Signed-off-by Randy Dunlap <[email protected]>Reported-by kernel test robot <[email protected]>Cc Kalle Valo <[email protected]>Cc Luca Coelho <[email protected]>Cc "David S. Miller" <[email protected]>Cc Jakub Kicinski <[email protected]>--- drivers/net/wireless/intel/iwlwifi/fw/uefi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/net/wireless/intel/iwlwifi/fw/uefi.c +1
-1@@ -49,14 +49,14 @@ void *iwl_uefi_get_pnvm(struct iwl_trans err =efivar_entry_get (pnvm_efivar,NULL , &package_size, data);if (err) {IWL_DEBUG_FW (trans, -"PNVM UEFI variable not found %d (len %zd)\n" , +"PNVM UEFI variable not found %d (len %lu)\n" , err, package_size);
drivers/net/wireless/intel/iwlwifi/fw/uefi.c void *iwl_uefi_get_pnvm(struct iwl_trans · line 62
Quoted 10 lines
drivers/net/wireless/intel/iwlwifi/fw/uefi.c +1
-1kfree (data); data =ERR_PTR (err); goto out; } -IWL_DEBUG_FW (trans,"Read PNVM from UEFI with size %zd\n" , package_size); +IWL_DEBUG_FW (trans,"Read PNVM from UEFI with size %lu\n" , package_size); *len = package_size; out:
Hm, no one has commented on this and the robot is still reporting it as build warnings.
Do I need to resend it?
thanx.
Quoted 50 lines · Randy Dunlap
Quoted 49 lines · Randy Dunlap
The kernel test robot reports printk format warnings in
uefi.c, so correct them.
../drivers/net/wireless/intel/iwlwifi/fw/uefi.c: In function 'iwl_uefi_get_pnvm':../drivers/net/wireless/intel/iwlwifi/fw/uefi.c:52:30: warning: format '%zd' expects argument of type 'signedsize_t', but argument 7 has type 'long unsigned int' [-Wformat=]
52 | "PNVM UEFI variable not found %d (len %zd)\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
53 | err,package_size);| ~~~~~~~~~~~~ | | | long unsigned int ../drivers/net/wireless/intel/iwlwifi/fw/uefi.c:59:29: warning: format '%zd' expects argument of type 'signed size_t', but argument 6 has type 'long unsigned int' [-Wformat=] 59 | IWL_DEBUG_FW(trans, "Read PNVM from UEFI with size %zd\n", package_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ | | | long unsigned intFixes 84c3c9952afb ("iwlwifi: move UEFI code to a separate file")Signed-off-by Randy Dunlap <[email protected]>Reported-by kernel test robot <[email protected]>Cc Kalle Valo <[email protected]>Cc Luca Coelho <[email protected]>Cc "David S. Miller" <[email protected]>Cc Jakub Kicinski <[email protected]>---
drivers/net/wireless/intel/iwlwifi/fw/uefi.c | 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)drivers/net/wireless/intel/iwlwifi/fw/uefi.c +1
-1@@ -49,14 +49,14 @@ void *iwl_uefi_get_pnvm(struct iwl_trans err = efivar_entry_get(pnvm_efivar, NULL, &package_size, data); if (err) { IWL_DEBUG_FW(trans, -"PNVM UEFI variable not found %d (len %zd)\n" , +"PNVM UEFI variable not found %d (len %lu)\n" , err, package_size); kfree(data); data = ERR_PTR(err); goto out; }drivers/net/wireless/intel/iwlwifi/fw/uefi.c +1
-1-IWL_DEBUG_FW (trans,"Read PNVM from UEFI with size %zd\n" , package_size); +IWL_DEBUG_FW (trans,"Read PNVM from UEFI with size %lu\n" , package_size);*len =
package_size;
Quoted 6 lines
Quoted 2 lines
out:
Hm, no one has commented on this and the robot is still reporting it as build warnings.
Do I need to resend it?
No need to resend. Kalle, can you take this directly to wireless- drivers? I have assigned it to you in patchwork.
--
Cheers,
Luca.
Re: iwlwifi: fix printk format warnings in uefi.c
In reply to Randy DunlapQuoted 17 lines · Randy Dunlap
The kernel test robot reports printk format warnings in
uefi.c, so correct them.
../drivers/net/wireless/intel/iwlwifi/fw/uefi.c: In function 'iwl_uefi_get_pnvm':../drivers/net/wireless/intel/iwlwifi/fw/uefi.c:52:30: warning: format '%zd' expects argument of type 'signedsize_t', but argument 7 has type 'long unsigned int' [-Wformat=]52 | "PNVM UEFI variable not found %d (len %zd)\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 53 | err, package_size); | ~~~~~~~~~~~~ | | | long unsigned int ../drivers/net/wireless/intel/iwlwifi/fw/uefi.c:59:29: warning: format '%zd' expects argument of type 'signed size_t', but argument 6 has type 'long unsigned int' [-Wformat=] 59 | IWL_DEBUG_FW(trans, "Read PNVM from UEFI with size %zd\n", package_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ | | | long unsigned int
Quoted 8 lines
Fixes 84c3c9952afb ("iwlwifi: move UEFI code to a separate file")Signed-off-by Randy Dunlap <[email protected]>Reported-by kernel test robot <[email protected]>Cc Kalle Valo <[email protected]>Cc Luca Coelho <[email protected]>Cc "David S. Miller" <[email protected]>Cc Jakub Kicinski <[email protected]>
Patch applied to wireless-drivers.git, thanks.
e4457a45b41c iwlwifi: fix printk format warnings in uefi.c
Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches