From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f46.google.com (mail-qv1-f46.google.com [209.85.219.46]) (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 486F8357D19 for ; Mon, 13 Jul 2026 19:40:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783971609; cv=none; b=rGjZq6hOq7aL6n8QcE+rValn9z/2W9DHDWNrMpJCWEhg0C+cf81e2/GpvORwF+sH//l9j4ghfHXkcAu71Ss9AEqdrHPmobxpPrATehSzcb+eTOeoy6CsE9UHEBWdmg80+ppzfG9mJ3Yx7O+SSvk0yYxn1+xDAU09WLrhEw2tDvw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783971609; c=relaxed/simple; bh=M9QKRtZ168nKUwDynjsu2QK6gybRC0iEdsj+58oUPCU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DYj7j/4eUOUAVNSTgudohlnV3kBlTQ5080ZyzRDIVgDYuRLq2IScLuaTPfo49JvryYKyinGCn9zUP+s4+vVOyHJf0BwdOgQgoqzO47c+V4TzMqIYs4DokHLC6rfge0MeyuOd9E9yni3ge3adtsfGsLkBFQVDfxloDqBnfgIfc3g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=HfW9hKND; arc=none smtp.client-ip=209.85.219.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="HfW9hKND" Received: by mail-qv1-f46.google.com with SMTP id 6a1803df08f44-8f0e5e36912so26112166d6.2 for ; Mon, 13 Jul 2026 12:40:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1783971607; x=1784576407; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=3axe3nHsSV3pW5ca03j1xpTM6jT4Lmr5n6MpYvrruyI=; b=HfW9hKNDpymyiIMSBx4HRryKCvQXWkDHlUcPQW6z21HbfbcJtdPfuD5MWCkYlK/J98 Oy8skTAAI5OX+axnlZpHugSeK9YIhJ/9Biyw9v8OOjovj8AvIYhZqY1dziOgq+jrw/ey H5+PY+PQJJ7w03Ehe5JCy/URs2nIgvKGVeJRyHHmriImOXNxfgfklXASNcGjRW5AclTM JJ/T2phxhSijThY+1CHT7wNloWn4LvmvtIqvx5LiAtjKp393gCJe6HQWNxhzIwGQbc50 B4qvwte+1T6AFq2RCHjTCY9Ih3H3kNS+KQacCiTwZFrzI++wn1ZFmIybYE+ZqLOjGrmJ GN4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783971607; x=1784576407; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=3axe3nHsSV3pW5ca03j1xpTM6jT4Lmr5n6MpYvrruyI=; b=op9NhYfgEshUAGhRMbtnYh3zP/YKDwcLasxRPm9d9zk6/v8ktw7rbeJZ1OwTevUW8J w3oJ6ehgZymFwXD+SSDAz6xwVKbTB38WCXEz+TQtdPRR+wIYeI4Lx/apsJeNsnF1Fhun LJxfSskKLEVoHbavpXY1THUbDfrTMTlHmElwCxEiThfVZcjv37DnXyZLkUDRExBZAY7a l0bCNr4xZwkgtWtHZ4bqqP4OMsgoLiCySkAE3b+Ds9/gZmhDcYqjT23qO6zm3diN5BZU gCoL0CioLDY+j9BmPzk1+qycWbRGkzL7i/MVgaU24A/OBwtg4V1hBcQsW3HMQxoAvt1W DYqQ== X-Forwarded-Encrypted: i=1; AHgh+RrH/D4Hn6aj6eYtV/AUhOzWPURW4zmeCdLjbgit+1pzShlxB23cvubcSG5CyAx4DASP3atyMWp9Zc9M@vger.kernel.org X-Gm-Message-State: AOJu0YzeSlV7qZmFoeoXxyLsphN7bXRXr2A28BJXrEq/F0Khe4z+Rxnf 9enVHzPExyjm4Qv9z/f/Qhcp1bdvMFwz2+yeUlfLLT2NDobKPuckf7ba9QNw1V2CZ1c= X-Gm-Gg: AfdE7clvf9RcdCDycqWWPllVzZ1w5q8B6nvmsG9ILxB/KSzaGF7llUQ3xtBdmgrc/uV 7/z98HRbr8hw6DOBa2i2H//2E8ShnJ00gLtNQqaPBFjhdL49sPJbqK5XMBqybH0H3NDBlDWQ3qt nBKAf1oWLCfQsI80wk0TLQm7zvIPbUSRSxVolMZo0/QGWRO26rvF59etj18NUE999rveLexWEir pqDdx+I2TiZeoOB53OCd9kcg+Bb2IIdip79fSRcoA4VU1b2n/mX+C4ENqKHvgYiIhUONxnpMSd9 IGG9Qv0bgVPobEr+/yYW+LhUC4Som2XjXYk/Zq43NwwqZmFx0y3W+G58SOZqvP09FX8Z+ovMIb4 HN9u+Dl61sk35q5hFkBaMmEukLIvOQKwGsZCFC+MLrTVnY94Ko4RN3XIwAmUe X-Received: by 2002:a05:6214:e8c:b0:8fd:6e12:9711 with SMTP id 6a1803df08f44-90747d1c8bbmr12839976d6.63.1783971607034; Mon, 13 Jul 2026 12:40:07 -0700 (PDT) Received: from ziepe.ca ([159.2.72.92]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-8ffd56c06e1sm136829916d6.14.2026.07.13.12.40.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2026 12:40:06 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.97) (envelope-from ) id 1wjMVa-0000000E6cV-053d; Mon, 13 Jul 2026 16:40:06 -0300 Date: Mon, 13 Jul 2026 16:40:06 -0300 From: Jason Gunthorpe To: "Aneesh Kumar K.V (Arm)" Cc: iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-coco@lists.linux.dev, Robin Murphy , Marek Szyprowski , Will Deacon , Marc Zyngier , Steven Price , Suzuki K Poulose , Catalin Marinas , Jiri Pirko , Mostafa Saleh , Petr Tesarik , Alexey Kardashevskiy , Dan Williams , Xu Yilun , linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , "Christophe Leroy (CS GROUP)" , Alexander Gordeev , Gerald Schaefer , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Sven Schnelle , x86@kernel.org, Michael Kelley Subject: Re: [PATCH v7 19/22] dma-direct: rename ret to cpu_addr in alloc helpers Message-ID: <20260713194006.GY3133966@ziepe.ca> References: <20260701054926.825925-1-aneesh.kumar@kernel.org> <20260701054926.825925-20-aneesh.kumar@kernel.org> Precedence: bulk X-Mailing-List: linux-s390@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: <20260701054926.825925-20-aneesh.kumar@kernel.org> On Wed, Jul 01, 2026 at 11:19:23AM +0530, Aneesh Kumar K.V (Arm) wrote: > ret in dma_direct_alloc() and dma_direct_alloc_pages() holds the returned > CPU mapping, not a generic return value. Rename it to cpu_addr and update > the remaining uses to match. > > This makes the allocation paths easier to follow and keeps the local naming > consistent with what the variable actually represents. > > Tested-by: Michael Kelley > Tested-by: Mostafa Saleh > Reviewed-by: Petr Tesarik > Signed-off-by: Aneesh Kumar K.V (Arm) > --- > kernel/dma/direct.c | 40 ++++++++++++++++++++-------------------- > 1 file changed, 20 insertions(+), 20 deletions(-) Reviewed-by: Jason Gunthorpe Jason