From patchwork Tue Jan 2 17:39:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 184409 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp4585510dyb; Tue, 2 Jan 2024 09:39:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IEIUYNmE8ZlO95oGLmTnVBdMePzCvyuMksiwS8B88+w92i8lHi1oEZy2PhWTV7XKGXwMPv5 X-Received: by 2002:a17:90a:b396:b0:285:adb1:6acb with SMTP id e22-20020a17090ab39600b00285adb16acbmr5279592pjr.29.1704217182112; Tue, 02 Jan 2024 09:39:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704217182; cv=none; d=google.com; s=arc-20160816; b=XT2C2qfS4CSY/ccYJjOvHA/eYtOKxMQfLuueTY7URVDOz84X29R+YiLJJWYKJyxiV2 Ufo5s0hj3BBMd1K1Nhtm3sDlpqBns0XSDZXerDZq82leNLgsomD4u5HS9BV8xeKC6TOO 8j0B4Gh4fW1FrqMjdzOxqxEvLUW+ntYbB9dggnUYAUz8EhreAkKX9SZsdrjFLNbNrP9u hCCLSmoqKKw6DnnlWV9ipBLE7pLnAfOXvWTHe0VMj817IE+EaPulmvJvbuUd0f8bbsHV q6SQhPmCxHCBEERPt++G3T2P94oiWyZviqLU1B4p39CLKuakK+DsdylCGaMidK/U2pj2 12sw== 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14666-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id a185-20020a6390c2000000b005cdf7f2f98asi18359028pge.50.2024.01.02.09.39.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 09:39:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14666-ouuuleilei=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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14666-ouuuleilei=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 B88D2283F4F for ; Tue, 2 Jan 2024 17:39:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BD0A2156D4; Tue, 2 Jan 2024 17:39:27 +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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787001235836641778 X-GMAIL-MSGID: 1787001235836641778 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); }