From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (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 2266C329E79; Mon, 2 Mar 2026 12:21:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.176.79.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772454109; cv=none; b=fSYEIBWbOM9kvRzQ7C8pXjKui+Y5Fxpw+D9OmAHbmPg7t0wxQFdloEtshM9zmKa+jiiZp+xT0fKpujZIfIZHAJaloavzQgaQfz/NraQi8WGe4pWPykEHrGpcVDzsCShSLEkviAT3lDvuloMiQVoPdHGxmyultIAfnFM4rqK/6nQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772454109; c=relaxed/simple; bh=hY4/1V4CPkbzOM46xddbLCRjIns1Rne2oR81yNkRkMQ=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Zs4I+AmdVZGEnrx256SEazhMrm2xjZTnZ7Qlty/7b7bWlrXt4b6GHsRRB/3Z4wA+27U7p3yuwrb0qUdxhvJAniS4/hAeYLnMSeNlXAX0ft3vdu/4sffPPrqxPdP2BtOB4mB72fTGd/OzFNy3ySDjeqauPHGpiCfGslzsVigw97M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=185.176.79.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.224.150]) by frasgout.his.huawei.com (SkyGuard) with ESMTPS id 4fPdMC6pw7zJ46tt; Mon, 2 Mar 2026 20:21:11 +0800 (CST) Received: from dubpeml500005.china.huawei.com (unknown [7.214.145.207]) by mail.maildlp.com (Postfix) with ESMTPS id 53AA54056B; Mon, 2 Mar 2026 20:21:43 +0800 (CST) Received: from localhost (10.203.177.15) by dubpeml500005.china.huawei.com (7.214.145.207) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Mon, 2 Mar 2026 12:21:41 +0000 Date: Mon, 2 Mar 2026 12:21:39 +0000 From: Jonathan Cameron To: Herve Codina CC: Andrew Lunn , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , "Geert Uytterhoeven" , Kalle Niemi , Matti Vaittinen , Greg Kroah-Hartman , "Rafael J. Wysocki" , Danilo Krummrich , Frank Li , "Sascha Hauer" , Pengutronix Kernel Team , Fabio Estevam , "Michael Turquette" , Stephen Boyd , "Andi Shyti" , Wolfram Sang , Peter Rosin , "Arnd Bergmann" , Saravana Kannan , "Bjorn Helgaas" , Charles Keepax , Richard Fitzgerald , David Rhodes , "Linus Walleij" , Ulf Hansson , "Mark Brown" , Len Brown , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , Davidlohr Bueso , "Dave Jiang" , Alison Schofield , Vishal Verma , "Ira Weiny" , Dan Williams , "Shawn Guo" , Wolfram Sang , , , , , , , , , , , , , , , , Allan Nielsen , Horatiu Vultur , Steen Hegelund , Luca Ceresoli , Thomas Petazzoni Subject: Re: [PATCH v5 10/28] cxl/test: Use device_set_node() Message-ID: <20260302122139.00000041@huawei.com> In-Reply-To: <20260227135428.783983-11-herve.codina@bootlin.com> References: <20260227135428.783983-1-herve.codina@bootlin.com> <20260227135428.783983-11-herve.codina@bootlin.com> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.42; x86_64-w64-mingw32) 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-Transfer-Encoding: 7bit X-ClientProxiedBy: lhrpeml100009.china.huawei.com (7.191.174.83) To dubpeml500005.china.huawei.com (7.214.145.207) On Fri, 27 Feb 2026 14:54:07 +0100 Herve Codina wrote: > The code set directly dev->fwnode. > > Use the dedicated helper to perform this operation. > > Signed-off-by: Herve Codina > Reviewed-by: Dave Jiang Reviewed-by: Jonathan Cameron > --- > tools/testing/cxl/test/cxl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/testing/cxl/test/cxl.c b/tools/testing/cxl/test/cxl.c > index 81e2aef3627a..3d9107b2661c 100644 > --- a/tools/testing/cxl/test/cxl.c > +++ b/tools/testing/cxl/test/cxl.c > @@ -1136,7 +1136,7 @@ static void mock_companion(struct acpi_device *adev, struct device *dev) > { > device_initialize(&adev->dev); > fwnode_init(&adev->fwnode, NULL); > - dev->fwnode = &adev->fwnode; > + device_set_node(dev, &adev->fwnode); > adev->fwnode.dev = dev; > } >