Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp530122rdb; Thu, 22 Feb 2024 10:57:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXI22msSPT9U3Sss0S0CvUMlPwb4V5A9JIck6ruxik93Ils0GI+ZX0vqKJFh3pCd9TmfbwiDNmP8fAxKs1M2dD8KwNojdhmG1ZaYdzweA== X-Google-Smtp-Source: AGHT+IGo1B5X0mhWAmETLoWt77UvxCgKPLRQ3L2N6MJ3TxT+aDZ90rivBiLCM+br7J4vY7haTYpi X-Received: by 2002:a05:620a:4089:b0:787:955a:ecac with SMTP id f9-20020a05620a408900b00787955aecacmr4197257qko.5.1708628245617; Thu, 22 Feb 2024 10:57:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708628245; cv=pass; d=google.com; s=arc-20160816; b=ODphTPbRvXaHoz0T58AkjEp5yTg8gzz0tW8PFah5vkFLyP/Js6sX5QrNhA3qUk8gra 4yheElQJ/HuWUX8lCOWmLTybNnrpNNV7vo2QF0hv9bmWwCp2sEhpEf5kOZUG2Mxnw2WH +yyy0gj/kv3377nbEYIl/uOwG4Cu5Gw5NBKvKdgElLerzq+HlMqi2UtgW3wogkHcA/sN N53/O2PDWviF7KB3ksOuWNJoDz5d0VP3Pxyma/Jfj6tG5R8T9+i/ETJMZ9sdCYSkvG7x iee3HeiZ0yI2N/GO+VylUje4ZY+NhogeiAFC7PcJJvOuGD92KkUHuweYi+1P+IHEKRw3 ufsg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:date:from:dkim-signature; bh=CX+buwoA+SqSG7r/CEcjs5/GgQYEZL4oqoCzZ/o1bnQ=; fh=qBA+FJ+TSbGdv1KMtidyiej9uxoCUWzVRDWidKFtOSw=; b=Z/WGvraBONPVCfjE/7F/Az5U3fQKPF7LHRj3D4g/+e6I11l0Wk/kaJW+LuwdF+oKhd JDviUswWnAR9dof5nxlUv91YzMw3ZKntcaVJX5qFhrXRvFN3RPKGQZbcWCuH74JyfgWB 0LPaokKNsSEnQtRu15p+kLtAfGbFHG5X1HCRVR+X7WZLl4HSBeL9gDCNukvMhVgJ6QOX mQs3TqaTl11o6xlRR6UH4zHmupQOlDroh1WSDBWHW6h4cGbJ7uL95TCE9b1d7b9YQppv tc9XLMzCN+UyKwCNhb3ntGFDqP5mtE9WWlI9RWVwPWOVPU+0aTGXLESqmxRTi5dzNfRJ V7tw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=dhoyhb2W; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-77204-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77204-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t14-20020a05620a0b0e00b00787a98d263bsi743694qkg.197.2024.02.22.10.57.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 10:57:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77204-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=dhoyhb2W; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-77204-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77204-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 08C3C1C265B2 for ; Thu, 22 Feb 2024 18:56:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D200012D21F; Thu, 22 Feb 2024 18:52:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dhoyhb2W" Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (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 A0DB11EB3D; Thu, 22 Feb 2024 18:52:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708627924; cv=none; b=XjRGj7KIjl86gVrvN/ANwiA0LWyy/U05cebQRpbhTnKsKz7ryVtlfxjQiaRRoo02+1UD2F0O2TB1LYyB3Xf+bxftA4I8wDO0L7h22D5ClJsZXJ/MPhj5yUev/LJRQbof9qAZI+jesGLx/p0TmAlxiFCg/eVY63HDJKDVukoszgk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708627924; c=relaxed/simple; bh=Rqlhl8scJWK1KFRqpMadZ1k19G5+0GHAMj4w2ohm/zY=; h=From:Date:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SgY2HlxO6t/YQL1NjjNysBUdk3ePrbH+JqrV9tkeJyFHhWwK0sbNMn90Tkh8iAGlmoTBoi77h3vAu6/RKeXqmAmAF4dwihN8oAa9VsOb2Fj6PV40+WLp/WTNTZQfIMg9+bTbQjZZ0Eq7S3sSVcZVILndEAnczvywePKQPFoYCjA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=dhoyhb2W; arc=none smtp.client-ip=209.85.214.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-1dc09556599so917605ad.1; Thu, 22 Feb 2024 10:52:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708627922; x=1709232722; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:from:to:cc:subject:date:message-id:reply-to; bh=CX+buwoA+SqSG7r/CEcjs5/GgQYEZL4oqoCzZ/o1bnQ=; b=dhoyhb2WM2xHU8UYV/bu557UmKK5fTA57zIUepJs3xoaogtKo68dh185NAt0azrd9C o58m3rcwZ8KKzagRZNcAByGNqHJtJk6vhfnw23CBl8o8BrCHlvnOrKL1VflUjgAIecWO tt1M7tQHFt4DBCfhfarYWIETCECUeNfggXPPnK3LT+9cMZmihpQ9hevuSdvCa7qFM9Qf 3mhgkfobB9ZgSQl8UQ/JR6Gw6ZTuwqJFBSp892bJUelyzB9KVh6/z78I04vEZd1cL852 NiYux7wC+XDgj4j2bPqIDlmc8JYjSEJ3oqujkbqbdRNvu2K0tisiuteurk04p8scNusa Bmnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708627922; x=1709232722; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=CX+buwoA+SqSG7r/CEcjs5/GgQYEZL4oqoCzZ/o1bnQ=; b=iEL5HFHJPTeKl3hNEB1yMZ85vbcgs4z6OQPXcYw+NNXPWX6GuoZriKbFDjGkBR8J5H iLtqOKR2gvJj0ZBGYEE4lHWB0H/ZHotI0DebN56eI7HCzQux2/P9HOaLvlNSVzZoMYB4 9TShXrsz7floV8TefG5Hxkdq66dNIzepQZC9DpSMT2vJkA8aRxLpqRGtn3TysYwXT/Gk 31YwJGikXEwcjDdgY+eBGITx/DPMc/UPW0v8x93ii9b8+hl/qQ6fJwHOGhqoHPuZAS+t vWxIjKfon2sn/Jpx6Yqdd15ZWS77WZ7dGDXbkCKPz/m0OeguOFkHAjxRFlLdhJPtWzSO 53LQ== X-Forwarded-Encrypted: i=1; AJvYcCXpgrDVCrIIR4+nj2Rrx5a/hzYphmqCj1NOg0MAuvFWOZPzID1+gHvnO2NvORHNW188McOEDSdEAfpp7gzi4a0Ro2jCXna/elXasTuQBKbBciz4Kz0Qgw/m5tEWwvggMxR5YQ0rMIW1aubdDgqqSki7MP48OvczX/B/PBf7M4iqJd+DwM4GwKC7 X-Gm-Message-State: AOJu0Yw0G+P4R23tgmuyLOVk98kD+aqq+LV1i8M7qLfHGMz0CCx5Ygtf jo/rwDh25TINf4dnjMw/+6SzIM1HqFoXIpUZCftu7a/Me0NGXiWF X-Received: by 2002:a17:903:1212:b0:1d9:14fb:d142 with SMTP id l18-20020a170903121200b001d914fbd142mr26128212plh.32.1708627921888; Thu, 22 Feb 2024 10:52:01 -0800 (PST) Received: from debian ([2601:641:300:14de:f32d:6b5:d03a:44f]) by smtp.gmail.com with ESMTPSA id mp14-20020a17090b190e00b002993f72ed02sm12374377pjb.34.2024.02.22.10.52.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 10:52:01 -0800 (PST) From: fan X-Google-Original-From: fan Date: Thu, 22 Feb 2024 10:51:41 -0800 To: Dan Carpenter Cc: Davidlohr Bueso , 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: Re: [PATCH] cxl/hdm: Clean up a debug printk Message-ID: References: <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 In-Reply-To: <3d3d969d-651d-4e9d-a892-900876a60ab5@moroto.mountain> On Thu, Feb 22, 2024 at 09:14:02AM +0300, Dan Carpenter wrote: > 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 > --- Reviewed-by: Fan Ni > 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 >