Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp221962rwl; Wed, 29 Mar 2023 00:21:46 -0700 (PDT) X-Google-Smtp-Source: AKy350bwnvQnbOUKW43LBCL3uelU6T9PfslACUBg0nSA+TUTcvqn7QycS97NhDv0Q2C88DnKEnZD X-Received: by 2002:a17:90b:4ac1:b0:23b:35f6:4ee6 with SMTP id mh1-20020a17090b4ac100b0023b35f64ee6mr19016880pjb.3.1680074506367; Wed, 29 Mar 2023 00:21:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680074506; cv=none; d=google.com; s=arc-20160816; b=Sknop74yWbsYdOieNp+vg6ulkwm6GNB96tF0WFoyBZ3U6GbK4NcNWaNYueguLU5XEI 6tOmcnPS5oa3ECRmA61tUBtW8qCsSymtzNJeS6xTZtzQHdRF+h8eHC2Fsn3rVSoW107I 4Sq2RB0mrYowFyu8ke6zcQBgO3u+yZWT1flZP3Tu7gZeY1dzFSAJROX/XYky+1yovS+Q XMne7MpTR/L1P9Z17vkgAwkQXdTCCnnQLHpur/RnSlGUksWJqStoTzX+SbjERigfU29K LYgISxhF7mADtndZaM4blkVm2UUEA2NyukQ4HoiDp467cwoTd37vijzPyREekrmCluIT Lnqg== 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=WWpmqjGXJsJDCKEu7LOVmlkX7Y/Ujsc/5vSSbOMRfaY=; b=txdhca2Rtf3fclfN6zLcoS8a/TiDm8PzRtNt+6/Y6z9UYK2g3Rig4gdfUZyxzBFKr3 pWD6j7NLnL5Ea7XSA6u+8MDLi5pGj7ZYj0VR1b9Aq/AbIyNsrTGvR66lC3Ml/sZDZun8 yVt/XkkbAV+QdjvvNc4+zwPBsvnYUeZO8aK0SiR4kyxZg5aXjuxtDvpQPgEAvkGRz5RN 4bNxTArCq79yTp6zwaGNRwqGjWME4Zh18ZW1tjukvTk0okxMGbuKTc0cSJjDOF9s1X9m 0+DutUukZ2lmtdupM0cKQXO1WdkrLEVehsZZ814v2ceJ6lkt0Mijr/z0kzc+sO3U92um 4VoQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 e17-20020a17090ac21100b0023369af18e2si937055pjt.72.2023.03.29.00.21.30; Wed, 29 Mar 2023 00:21:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229893AbjC2HOR (ORCPT + 99 others); Wed, 29 Mar 2023 03:14:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229836AbjC2HOQ (ORCPT ); Wed, 29 Mar 2023 03:14:16 -0400 Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [IPv6:2a02:1800:120:4::f00:14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43116CE for ; Wed, 29 Mar 2023 00:14:15 -0700 (PDT) Received: from ramsan.of.borg ([84.195.187.55]) by xavier.telenet-ops.be with bizsmtp id e7EC290021C8whw017ECJl; Wed, 29 Mar 2023 09:14:13 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1phPzr-00FCqK-UX; Wed, 29 Mar 2023 09:14:12 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1phQ0Z-006ZvT-V8; Wed, 29 Mar 2023 09:14:11 +0200 From: Geert Uytterhoeven To: Desnes Nunes , Christoph Hellwig , Marek Szyprowski , Robin Murphy Cc: iommu@lists.linux.dev, linux-kernel@vger.kernel.org, Geert Uytterhoeven , kernel test robot , noreply@ellerman.id.au Subject: [PATCH -next] dma-debug: Use %pa to format phys_addr_t Date: Wed, 29 Mar 2023 09:14:05 +0200 Message-Id: <20230329071405.1568021-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.4 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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-kernel@vger.kernel.org On 32-bit without LPAE: kernel/dma/debug.c: In function ‘debug_dma_dump_mappings’: kernel/dma/debug.c:537:7: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 9 has type ‘phys_addr_t’ {aka ‘unsigned int’} [-Wformat=] kernel/dma/debug.c: In function ‘dump_show’: kernel/dma/debug.c:568:59: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 11 has type ‘phys_addr_t’ {aka ‘unsigned int’} [-Wformat=] Fixes: bd89d69a529fbef3 ("dma-debug: add cacheline to user/kernel space dump messages") Reported-by: kernel test robot Link: https://lore.kernel.org/r/202303160548.ReyuTsGD-lkp@intel.com Reported-by: noreply@ellerman.id.au Signed-off-by: Geert Uytterhoeven --- kernel/dma/debug.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/dma/debug.c b/kernel/dma/debug.c index 676142072d997b6a..f190651bcaddc9e9 100644 --- a/kernel/dma/debug.c +++ b/kernel/dma/debug.c @@ -534,11 +534,11 @@ void debug_dma_dump_mappings(struct device *dev) if (!dev || dev == entry->dev) { cln = to_cacheline_number(entry); dev_info(entry->dev, - "%s idx %d P=%llx N=%lx D=%llx L=%llx cln=%llx %s %s\n", + "%s idx %d P=%llx N=%lx D=%llx L=%llx cln=%pa %s %s\n", type2name[entry->type], idx, phys_addr(entry), entry->pfn, entry->dev_addr, entry->size, - cln, dir2name[entry->direction], + &cln, dir2name[entry->direction], maperr2str[entry->map_err_type]); } } @@ -565,13 +565,13 @@ static int dump_show(struct seq_file *seq, void *v) list_for_each_entry(entry, &bucket->list, list) { cln = to_cacheline_number(entry); seq_printf(seq, - "%s %s %s idx %d P=%llx N=%lx D=%llx L=%llx cln=%llx %s %s\n", + "%s %s %s idx %d P=%llx N=%lx D=%llx L=%llx cln=%pa %s %s\n", dev_driver_string(entry->dev), dev_name(entry->dev), type2name[entry->type], idx, phys_addr(entry), entry->pfn, entry->dev_addr, entry->size, - cln, dir2name[entry->direction], + &cln, dir2name[entry->direction], maperr2str[entry->map_err_type]); } spin_unlock_irqrestore(&bucket->lock, flags); -- 2.34.1