Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6683608rdb; Tue, 2 Jan 2024 09:39:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IG3lIgrObDPxEl1QZN/4yEXlGXaNyuchpSYp/f+tjHplWVK4QLjigsV8N41tzXUQYzd3njH X-Received: by 2002:a05:6a00:26e9:b0:6d9:9cc0:a135 with SMTP id p41-20020a056a0026e900b006d99cc0a135mr6331920pfw.28.1704217173229; Tue, 02 Jan 2024 09:39:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704217173; cv=none; d=google.com; s=arc-20160816; b=If0q2J9Ll6nMcxRC/95CHdRx11NYKJWoTlPHfw4IS2C+5Xqs5npFRxXCnCnJkJu5S6 WO298C1wQXq7cuCR0TkPFIURkZlr8gedOrv82DNNoI+JdLgipWIPE/Nezy5JsTWQCBS9 Wg2IgtivQn+fk6M/QBtVBglw5mGTp4FkOZLVdcP1DezuSOPtsA952PKFLWP+e2+qVQuE Bp5r87+kXqOqdAxt9mJAc2Pa3ZKy7xG3om+Htl6XkJhqVi86Y0bkCQYQg4080M8YLKXL y31XE3NM692uIhOhKyXzF1ZLpGBAjHB71nDvD4p7trsNjB0R1ZiUaV9T9t/JSAPy/nlW 7+zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=jNvpvta8GOOXzK79HPGCC2uzyjG2iqLPj19fEAMpJlk=; fh=eEKt9xe+mIFyEE9aN2q2bVu3+DRmZvYFqFrQikFy264=; b=JbzpP238xcPvfE3t9Q0mz9bn055EC/3nZtKZOPhuqvVj02OWntgzDJwMeFZN6ulNM/ c4+s8wfBBo9L5o4OReBIsqtdD07XyxUTGGAn93Ro4AJjbL7WHdBeU55O4fvVltIRNcHP 4K/+8lPCpkyaG9W/+BnS0FaPazxurqDjTEayqz4eIUHSla6ohPqw4ZnHSCpu9YaRIGmP iPNf+kIEQBAC0r5c/GBwhct1WlrgL9mZdUpatMYFsDl5EMs0oLN5ZnDFKAArF63opZrL Xwn4j3QnOxa1niD6hik5eaJh3gL77eoZIBddDT1PzvVmqomozNjDG8vhJi4n9MhEw4AP FTCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=MoVk4T9P; spf=pass (google.com: domain of linux-kernel+bounces-14666-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14666-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e19-20020a630f13000000b005bd27be66e1si20183369pgl.719.2024.01.02.09.39.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 09:39:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14666-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=MoVk4T9P; spf=pass (google.com: domain of linux-kernel+bounces-14666-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14666-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id DE9212838C1 for ; Tue, 2 Jan 2024 17:39:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B4F79156CD; Tue, 2 Jan 2024 17:39:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="MoVk4T9P" X-Original-To: linux-kernel@vger.kernel.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C0E2156C1; Tue, 2 Jan 2024 17:39:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=jNvpvta8GOOXzK79HPGCC2uzyjG2iqLPj19fEAMpJlk=; b=MoVk4T9PPX+/W6v4NNlFrShtnY t++vAxX/BomhcaoZRJx5+MCX+sjrzAC4iY1e/7jSs5ncKzONUP4/Eb2g1XE/G0ZHndL3mtf6pNbyv rYKvSqFfy9FArD5JbAIfbCwY49pEp977qTqhStvOr0OPmJ3QTL1L2o+1OdZ9WfnrR0SXYrTHVcCtP Qt5B6WM1wMfq/sBmzQynfFMcdKpEn2MBS0IW3FInuwHjRtP5+O/SC4GiwRzp1LuC3Lewio7RtGkac wHHE7ltWngAO5atrT3j6awSIrk741fTiBMuFEk/tqKhrOVJPb3HtuhCgykzMP2UjvlV0foVzTKy4N FWXnqRPA==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rKijV-008caA-2i; Tue, 02 Jan 2024 17:39:18 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Fan Ni , Davidlohr Bueso , Jonathan Cameron , Dave Jiang , Alison Schofield , Vishal Verma , Ira Weiny , Dan Williams , linux-cxl@vger.kernel.org Subject: [PATCH] cxl/region: use %pap format to print resource_size_t Date: Tue, 2 Jan 2024 09:39:17 -0800 Message-ID: <20240102173917.19718-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Use "%pap" to print a resource_size_t (phys_addr_t derived type) to prevent build warnings on 32-bit arches (seen on i386 and riscv-32). ../drivers/cxl/core/region.c: In function 'alloc_hpa': ../drivers/cxl/core/region.c:556:25: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 5 has type 'resource_size_t' {aka 'unsigned int'} [-Wformat=] 556 | "HPA allocation error (%ld) for size:%#llx in %s %pr\n", Fixes: 7984d22f1315 ("cxl/region: Add dev_dbg() detail on failure to allocate HPA space") Signed-off-by: Randy Dunlap Cc: Fan Ni Cc: Davidlohr Bueso Cc: Jonathan Cameron Cc: Dave Jiang Cc: Alison Schofield Cc: Vishal Verma Cc: Ira Weiny Cc: Dan Williams Cc: linux-cxl@vger.kernel.org --- drivers/cxl/core/region.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -- a/drivers/cxl/core/region.c b/drivers/cxl/core/region.c --- a/drivers/cxl/core/region.c +++ b/drivers/cxl/core/region.c @@ -553,8 +553,8 @@ static int alloc_hpa(struct cxl_region * dev_name(&cxlr->dev)); if (IS_ERR(res)) { dev_dbg(&cxlr->dev, - "HPA allocation error (%ld) for size:%#llx in %s %pr\n", - PTR_ERR(res), size, cxlrd->res->name, cxlrd->res); + "HPA allocation error (%ld) for size:%pap in %s %pr\n", + PTR_ERR(res), &size, cxlrd->res->name, cxlrd->res); return PTR_ERR(res); }