From patchwork Tue Mar 2 01:16:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre-Louis Bossart X-Patchwork-Id: 390754 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 98379C41621 for ; Tue, 2 Mar 2021 08:40:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4A76561494 for ; Tue, 2 Mar 2021 08:40:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1446337AbhCBIdG (ORCPT ); Tue, 2 Mar 2021 03:33:06 -0500 Received: from mga05.intel.com ([192.55.52.43]:65115 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240262AbhCBBSq (ORCPT ); Mon, 1 Mar 2021 20:18:46 -0500 IronPort-SDR: ACEssgvXcps3ESo418MylkrQWFMc3Wit3GPq+5om41Dg4yeVu22RYSK2Zq4LVrnXK6/hiaDibj E1Itm7zOjNfg== X-IronPort-AV: E=McAfee;i="6000,8403,9910"; a="271650667" X-IronPort-AV: E=Sophos;i="5.81,216,1610438400"; d="scan'208";a="271650667" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2021 17:16:55 -0800 IronPort-SDR: HdRnrgj/a/lToZBkv9SNvWc5tXGaZn3OSd8PLODP3ozFiJQMP1S9JaQTs9+L8CvnjhS/ErUxzG Jq4/qkr1JGvw== X-IronPort-AV: E=Sophos;i="5.81,216,1610438400"; d="scan'208";a="434492460" Received: from dethomse-mob2.amr.corp.intel.com (HELO pbossart-mobl3.intel.com) ([10.213.173.10]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2021 17:16:55 -0800 From: Pierre-Louis Bossart To: linux-wireless@vger.kernel.org, Luca Coelho Cc: Pierre-Louis Bossart , Kalle Valo , "David S. Miller" , Jakub Kicinski , Johannes Berg , netdev@vger.kernel.org (open list:NETWORKING DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] iwlwifi: fix ARCH=i386 compilation warnings Date: Mon, 1 Mar 2021 19:16:37 -0600 Message-Id: <20210302011640.1276636-1-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org An unsigned long variable should rely on '%lu' format strings, not '%zd' Fixes: a1a6a4cf49ece ("iwlwifi: pnvm: implement reading PNVM from UEFI") Signed-off-by: Pierre-Louis Bossart Acked-by: Luca Coelho --- warnings found with v5.12-rc1 and next-20210301 drivers/net/wireless/intel/iwlwifi/fw/pnvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/fw/pnvm.c b/drivers/net/wireless/intel/iwlwifi/fw/pnvm.c index fd070ca5e517..40f2109a097f 100644 --- a/drivers/net/wireless/intel/iwlwifi/fw/pnvm.c +++ b/drivers/net/wireless/intel/iwlwifi/fw/pnvm.c @@ -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); 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); 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); if (!*data)