mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 12:03:54 +02:00
iwlwifi: fix ARCH=i386 compilation warnings
An unsigned long variable should rely on '%lu' format strings, not '%zd'
Fixes: a1a6a4cf49 ("iwlwifi: pnvm: implement reading PNVM from UEFI")
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Acked-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210302011640.1276636-1-pierre-louis.bossart@linux.intel.com
This commit is contained in:
parent
a22549f127
commit
436b265671
|
|
@ -271,12 +271,12 @@ static int iwl_pnvm_get_from_efi(struct iwl_trans *trans,
|
||||||
err = efivar_entry_get(pnvm_efivar, NULL, &package_size, package);
|
err = efivar_entry_get(pnvm_efivar, NULL, &package_size, package);
|
||||||
if (err) {
|
if (err) {
|
||||||
IWL_DEBUG_FW(trans,
|
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);
|
err, package_size);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
IWL_DEBUG_FW(trans, "Read PNVM fro UEFI with size %zd\n", package_size);
|
IWL_DEBUG_FW(trans, "Read PNVM fro UEFI with size %lu\n", package_size);
|
||||||
|
|
||||||
*data = kmemdup(package->data, *len, GFP_KERNEL);
|
*data = kmemdup(package->data, *len, GFP_KERNEL);
|
||||||
if (!*data)
|
if (!*data)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user