Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp155304rdb; Wed, 21 Feb 2024 22:14:20 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUsb5/ocshYJ8ILBSXT2Fh5f1EHtBh4gLpNw/j3rXb1plfdM9SlM9Q81I16+U2k9PsoE/31QheVfGHylrSt2pX69eGbrOyVBc2Wsv9RyA== X-Google-Smtp-Source: AGHT+IHp+i3xocU5G2kjmwIGjnt9gmNSwoAb/ioo1Ng66/tsoFFn7EPuc3P2pzgwzrHmVCmo20Ji X-Received: by 2002:a05:620a:4089:b0:787:955a:ecac with SMTP id f9-20020a05620a408900b00787955aecacmr1995647qko.5.1708582460378; Wed, 21 Feb 2024 22:14:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708582460; cv=pass; d=google.com; s=arc-20160816; b=cpRuy6n7Avojer5aSMd6/8uLjOj15oRKOgTrMCI0DycG7SNBmw+aWtWR35XzRi2AHj M5pBklSuTliq9q50VsToGZjMcIfcM4WVC9bSRCxa8aJYiyNGslserB8H7xiGmf7ZmH8U wVR5hEdo5MHyi2mJuqEWHz1wZNGshAz2HAiQa21EG5N/6rtimLqoL6xhHxWSCYTAERrS pnDhzXw4F9XfYPaq6pjhwel4BqweqhHtvB8KraMmepvWLLMbOf6Y2Qql+MECwj2GgJ2V sTTrnEO93DpCk5Q33thzCcE/tZGgYF2xPHJtnCXqysyqlnkSR9z2IBVL/jgTVk8ZoiAX +VCQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=4SC+H9Oulb2l4KVayVXMGit73eWaz8qeCs2MKjcvOvk=; fh=gtt/pDTRpM6tC2oWFZ/LxWr4/94BtrfOhR5nh3NoIsI=; b=v9iqWKJU0I7hA7IAcgkOkDKW+OTQU43PWnQjjvuC1fD446zY0Rjf10gAYNoYXlWZ14 6l7Y07K9Tf0igOqoMMm9UVt6F6sq2JHPqwUZdnMsquLAhSAdHY3MX31Y7T7xgKMSjnVr 7GCo4qjePM9xXkKCfMELeoL4EK0/MhHwausP+cmXFuIiyTiTEuRJDtDtF1Xvik96x3Q8 UNYsOomNbqkjvq4excWKpUwfMjJ4Oe7zBZaPKWjdDIr7vzzngvD0eBkqPy4M1suS2a4j C6tLve2l0nPRVx68p2T9bY4eTNG/hvoaOJQsbbioufTq+EVGTveHteVE6nR/wR8jm4Jj Xi8Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZssiwUOS; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-75971-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75971-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id pi21-20020a05620a379500b0078726baaca4si12505242qkn.617.2024.02.21.22.14.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 22:14:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75971-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZssiwUOS; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-75971-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75971-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 2671C1C2132D for ; Thu, 22 Feb 2024 06:14:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 63C0D17593; Thu, 22 Feb 2024 06:14:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ZssiwUOS" Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4D834134A1 for ; Thu, 22 Feb 2024 06:14:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708582450; cv=none; b=tBQIEscnKGDe6sv9qYnkaf8PuJ2rClYn7VKyZIeukqaPgfeVNSf9GraqehB1sVDjCK5FawEAENlwplpzvODSxPkswEutTP1VlNupdZOBYFrRoWvDWGAK6Yi0uBdnqdP2cZiZyGO3rgfeNdIWmU8FxK7AIDwRltBtq6nL1hqyTaY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708582450; c=relaxed/simple; bh=bn5i7/H5MiGU8X0jDHY08Xk8tKztkxjuCmvj7DxUVWU=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=rcKLKjWf9ScKAgrkr0cd0xHPLC7G81qcrSkjCAKMrCJ6nFbNh/62LzZHg6wLLtWOPA2kfP0c2i2nyf9pbd5L2rJIIGlZ3zXAT4FjDlWD1AwBDrgSWVeVHIKb4KUTIOw2ZFr9ktLNl4xUqHFw130p34sPvFbeGDbZdh1vhvk4jT4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ZssiwUOS; arc=none smtp.client-ip=209.85.167.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-512bce554a5so4856260e87.3 for ; Wed, 21 Feb 2024 22:14:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708582446; x=1709187246; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=4SC+H9Oulb2l4KVayVXMGit73eWaz8qeCs2MKjcvOvk=; b=ZssiwUOSH8jikzJYq8ZcP5uGGi6D0dmW7qLMtDVUrOprFj/imhE5lg8l+2JBrT+1Ja jo+dQATSr2viMRGoeXXXZdBuw3hgeLLWfudCiYtdRR9glVeZslvFJqeaxuLyEPGR3Z+6 EVv9XO/cS4V1lTlYl3SP8X8JI9SJONBpwCOBBjYDIzyoRLQMoV8FNTQgzVv7mxLzKHRN 29pK2BNotffTu44O84ADPTQohNQDHcWrpVx6ckGqkg4avFKqTDD4DuLTqXRqoQJqheI4 CBgUglcOQ/9SDcg3YsyB06Xjs91+Nza1AcoG548haDqPcO3ZkYZ794PNYwaxd+cn+cql lZ7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708582446; x=1709187246; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4SC+H9Oulb2l4KVayVXMGit73eWaz8qeCs2MKjcvOvk=; b=mVLNy+BrWYL4Qr3MutmrZD1b/tWz9U9FHw1RBQT6WHgZtL3ezA8WMgchUxxn3dkuM8 8lESLw0KYagnwoH3Vg6Zu0OGslvcccB5GGPpea4TauPbcb01hsdXxfGxufnEjamnC+VG B6KMlzVjhHBEqVuA3l9AW4tq7mEdNPo+uYtaxVa9rXA/X2W+JFPPxlSlenzHT8nK9pIw prnN0TiqIUt+r/WU11nz47pBxiudWJ9j++G27zqXF/JrDFCyDSFggUlQm4DIX0oDvfGk jtlPLdGBs7QhxEp2JyqKDjRKcEOfasLQl3+NjiYIacHiZGeuhXSwN50tpHobVQoYk2sy AHxw== X-Forwarded-Encrypted: i=1; AJvYcCXn3vXkCPzC6DTWZJX2B2JrJAPluyuMzJ4I3Qjfic0qfdcd5DJWDRQp0LoNd+QSWsshDbMiY2hYMsZ6NFpzGTZPBm8dQHffNfDFvQtM X-Gm-Message-State: AOJu0YyicskSO3EAmLr+K4iZXski0pvv5EjCLVKa5/uh/udptlggVGAH lNjLJ1brYHpzPU4hkmqvrbbo24YZfO6YeDoTCpr4aORqC1VTc/vhEZKEmupRzFY= X-Received: by 2002:a05:6512:3f06:b0:512:8d30:6dce with SMTP id y6-20020a0565123f0600b005128d306dcemr14162544lfa.52.1708582446477; Wed, 21 Feb 2024 22:14:06 -0800 (PST) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id u7-20020a7bc047000000b0040fe4b733f4sm4867924wmc.26.2024.02.21.22.14.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 22:14:06 -0800 (PST) Date: Thu, 22 Feb 2024 09:14:02 +0300 From: Dan Carpenter To: Davidlohr Bueso Cc: Jonathan Cameron , Dave Jiang , Alison Schofield , Vishal Verma , Ira Weiny , Dan Williams , Robert Richter , linux-cxl@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH] cxl/hdm: Clean up a debug printk Message-ID: <3d3d969d-651d-4e9d-a892-900876a60ab5@moroto.mountain> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Mailer: git-send-email haha only kidding Smatch complains that %pa is for phys_addr_t types and "size" is a u64. drivers/cxl/core/hdm.c:521 cxl_dpa_alloc() error: '%pa' expects argument of type 'phys_addr_t*', argument 4 has type 'ullong* Looking at this, to me it seems more useful to print the sizes as decimal instead of hex. Let's do that. Signed-off-by: Dan Carpenter --- drivers/cxl/core/hdm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/cxl/core/hdm.c b/drivers/cxl/core/hdm.c index 7d97790b893d..0b1843631b26 100644 --- a/drivers/cxl/core/hdm.c +++ b/drivers/cxl/core/hdm.c @@ -518,9 +518,9 @@ int cxl_dpa_alloc(struct cxl_endpoint_decoder *cxled, unsigned long long size) } if (size > avail) { - dev_dbg(dev, "%pa exceeds available %s capacity: %pa\n", &size, + dev_dbg(dev, "%llu exceeds available %s capacity: %llu\n", size, cxled->mode == CXL_DECODER_RAM ? "ram" : "pmem", - &avail); + (u64)avail); rc = -ENOSPC; goto out; } -- 2.43.0