Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30330607rwd; Thu, 6 Jul 2023 04:31:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlGs1OyeCFYud2ZrIdIRE1OlKcfx6lCSXhcTk5+EEocyHuMgQw7Zv9W0UBD6s47U1J3XHVcT X-Received: by 2002:a17:903:244d:b0:1b7:f24c:3b9a with SMTP id l13-20020a170903244d00b001b7f24c3b9amr1845591pls.47.1688643083573; Thu, 06 Jul 2023 04:31:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688643083; cv=none; d=google.com; s=arc-20160816; b=lZ3zZHwhx8Bogkdste9+8R2t0jPHhZZUxGpsciYjPu3Wz2ic2wu9zrO6JRbq2u1mbS AxVM1rrmbnrYP0V+auWss99nCsL3BzmrmScO39E9LtbD31yobcCGfmW+omaMj5Pw6wnG q71Viw0cdkmjYwZFlISN1e9/YVTMzkthlQ94waoQJRMb/GIaPKcbVjZ39eIi3uhbQ1n+ nh/7cq5MRRuDaLuNGK7ieTFzuujIktORq9ahlGspdWdIuV9S4Dw5cO8G2n9XJwVplFRu OalwpmfgFcVH8er1MHe0d4IONGJere6GqbRWDEsavlCRmcSIz2RXy39RVmWTRXMOkDmg REJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=xxZlC0G3QtZ7+XhZAwA5z4tLTrQUwBftO4S+9f+68BU=; fh=gO693ysgJfRulKfbmw7tTxOng7NqOQZxUW+7GzpAQg8=; b=E3UsorxHyY1kgDehd4AI97/CDSdVlEKCk4gqD7VVV4O7ALG/WBirg+oWy/d2AaB+mv n3PHgqzEf2ETJtMP0NIdeUslB/Yo3unqYRNQ5g2bm57GJ0OtcrlfPF+H455s21g7Mlu4 +w6Cs1oyNPuohAWMgVVl418mYwtUUPpfD8JqjcErsZQtH0DFkXAIozBSEuxNaYPTAGjr Wr5QNpjsA7rcJgmAa1l5XiiJcF4Gp/4oSIot6kmlFxydkDgpSk3vXgoB5jih0CKFwvqN QnuyUpbf8xNcvY5x6+VrTiECDUUaYwXWSEZs09UkaM8XTm6DOQa67Drr1YX4aH7vrG/s Telw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i6-20020a170902c94600b001b01276a0bcsi1274008pla.51.2023.07.06.04.30.55; Thu, 06 Jul 2023 04:31:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231466AbjGFLRf (ORCPT + 59 others); Thu, 6 Jul 2023 07:17:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229486AbjGFLRe (ORCPT ); Thu, 6 Jul 2023 07:17:34 -0400 Received: from hust.edu.cn (unknown [202.114.0.240]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70E47170F; Thu, 6 Jul 2023 04:17:33 -0700 (PDT) Received: from pride-poweredge-r740.. ([172.16.0.254]) (user=dzm91@hust.edu.cn mech=LOGIN bits=0) by mx1.hust.edu.cn with ESMTP id 366BH8YK013936-366BH8YN013936 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 6 Jul 2023 19:17:13 +0800 From: Dongliang Mu To: =?UTF-8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= , Kalle Valo Cc: Dongliang Mu , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3] wifi: ath9k: fix printk specifier Date: Thu, 6 Jul 2023 19:17:00 +0800 Message-Id: <20230706111700.14305-1-dzm91@hust.edu.cn> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-FEAS-AUTH-USER: dzm91@hust.edu.cn X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Smatch reports: ath_pci_probe() warn: argument 4 to %lx specifier is cast from pointer ath_ahb_probe() warn: argument 4 to %lx specifier is cast from pointer Fix it by modifying %lx to %p in printk. Signed-off-by: Dongliang Mu --- v2->v3: modify %px to %p in the patch v1->v2: modify %px to %p in the commit message drivers/net/wireless/ath/ath9k/ahb.c | 4 ++-- drivers/net/wireless/ath/ath9k/pci.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/ahb.c b/drivers/net/wireless/ath/ath9k/ahb.c index 9cd12b20b18d..a683757eecd4 100644 --- a/drivers/net/wireless/ath/ath9k/ahb.c +++ b/drivers/net/wireless/ath/ath9k/ahb.c @@ -132,8 +132,8 @@ static int ath_ahb_probe(struct platform_device *pdev) ah = sc->sc_ah; ath9k_hw_name(ah, hw_name, sizeof(hw_name)); - wiphy_info(hw->wiphy, "%s mem=0x%lx, irq=%d\n", - hw_name, (unsigned long)mem, irq); + wiphy_info(hw->wiphy, "%s mem=0x%p, irq=%d\n", + hw_name, mem, irq); return 0; diff --git a/drivers/net/wireless/ath/ath9k/pci.c b/drivers/net/wireless/ath/ath9k/pci.c index a09f9d223f3d..12c00c7c1408 100644 --- a/drivers/net/wireless/ath/ath9k/pci.c +++ b/drivers/net/wireless/ath/ath9k/pci.c @@ -988,8 +988,8 @@ static int ath_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) sc->sc_ah->msi_reg = 0; ath9k_hw_name(sc->sc_ah, hw_name, sizeof(hw_name)); - wiphy_info(hw->wiphy, "%s mem=0x%lx, irq=%d\n", - hw_name, (unsigned long)sc->mem, pdev->irq); + wiphy_info(hw->wiphy, "%s mem=0x%p, irq=%d\n", + hw_name, sc->mem, pdev->irq); return 0; -- 2.34.1