From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796081151; b=EgOb07lHPYF8DKFablt61cUgz5C+5yvlDjefy5dyR1OfnMjgiMPCJl89QX5vIQa+b/xE ifxYtVwvKNC5jW84rluPpncs5zW1KCjo0oMjZvMLbiGHxTHz/Wsj5sPeIqDdF1LvFkRzA MJvbPI+hFKdvcVauWY+ukbRGI98PTT74AGV84OZwIUlhMO/CAjhF3P4CuizWuQLTxB4i5 9YF/yooILlGtisoUKrZKNab2EVKlftxs4G4EOk/LnisovjX6B+SbgsXc3h5wy7Dhm2KJi lwFmDG+rQEyrOydK24WxFdRrmf906DvqpRkel4GrZoE3cO9Inoewiv1Xr+2HcvqmQbA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796081151; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=qDcOu8Q7O0Fd9pnAdF/pA7I+ogH+C+R+FMz6rTjoMtE=; b=thzK833KXR369cWLs5FsTczOhB72n6fgZ4VDP9Bgv0Wjmapx53+hef5NlTPE6II7jzKp TUtrDVmZewYs636CiVHmA22Tj8gtXpFtk5AjZaC+Xr+DZVAinGgu6HMhoKJZMSZqRAIhy 4cwh8Jg89s91umnWubDSx8zoQk85w2Z3oVHiYZYfG6QO0GrIKL+QZGVJgOPSv1vBkFqIA 1G9KdSpsfPOHx7Exer1QQuut+1pnIEOAMJZlUlGQYz/O4nQNNBBZ1bIxXV9H8VhmJBiHR 1QHKTyCzd+lZyodWhsc+SyplS9RzR1yleOy0r1YCIQDqD7/HgOBbOF3MBLXzJlM4Gzg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=R8TvDooL; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E7083606A31A for ; Mon, 30 Nov 2026 23:25:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=R8TvDooL Received: by smtp.kernel.org (Postfix) with ESMTPSA id 689BF1F000C1; Mon, 30 Nov 2026 23:25:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796081150; bh=qDcOu8Q7O0Fd9pnAdF/pA7I+ogH+C+R+FMz6rTjoMtE=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=R8TvDooLfbEG82s7b/ophP7Ch/nOTVdDUsBfVl5YVSH3TppaN5TTrTffV4X7fgInf +gkyt+QSTMmkLyWBJ6d6Hh5HMnYYYz1XYZfczsh9aR5ewDsToAbWNcwSK862+eN7Af 5nthNFof4aLZVxj45LJqZbpsoJ630mtXHUS/yuPMb3Le8r7sJ9K7lxnThwDSzT7zz4 tmHWLh+5OBwbYI5jgaJAxN9heREu9dyTFYfrfdSJ2jcqd4JXKgF2M20NbAyouAkQza rZopSqgjRSIcQ+v9QFxXbiYN6lSlutvw8O51Fg62mtxkcDlCjCHD6mo+jwRyJfU4ZD 0zr96VFDqH4HQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH net-next v23 04/15] net: pcs: implement Firmware node support for PCS driver Reply-To: sashiko-reviews@lists.linux.dev To: "Christian Marangi" , devicetree@vger.kernel.org Cc: robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261129230558.612526-5-ansuelsmth@gmail.com> References: <20261129230558.612526-1-ansuelsmth@gmail.com> <20261129230558.612526-5-ansuelsmth@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 23:25:50 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] net: pcs: missing struct forward declarations in include/linux/pcs/pcs-provider.h -- commit 99cf1814d7e438ff577e0609ae7abb9287489c81 Author: Christian Marangi net: pcs: implement Firmware node support for PCS driver This commit implements a firmware node provider and consumer API for PCS drivers, allowing MAC drivers to look up PCS instances referenced via the "pcs-handle" property in DT or ACPI. > diff --git a/include/linux/pcs/pcs-provider.h b/include/linux/pcs/pcs-pro= vider.h > new file mode 100644 > index 0000000000000..6b03a635f73c0 > --- /dev/null > +++ b/include/linux/pcs/pcs-provider.h > @@ -0,0 +1,72 @@ > +/* SPDX-License-Identifier: GPL-2.0-or-later */ > +#ifndef __LINUX_PCS_PROVIDER_H > +#define __LINUX_PCS_PROVIDER_H > + > +struct fwnode_pcs_provider; > + > +/** > + * fwnode_pcs_simple_xlate - Simple xlate function to retrieve PCS > + * @pcsspec: reference arguments > + * @data: Context data (assumed assigned to the single PCS) > + * > + * Returns: the PCS pointed by data. > + */ > +struct phylink_pcs *fwnode_pcs_simple_xlate(struct fwnode_reference_args= *pcsspec, > + void *data); > + > +/** > + * fwnode_pcs_add_provider - Registers a new PCS provider > + * @fwnode: Firmware node > + * @fwnode_xlate: xlate function to retrieve the PCS > + * @data: Context data > + * > + * Register and add a new PCS provider to the global providers list > + * for the firmware node. The relevant PCS from the PCS provider > + * is retrieved from the passed fwnode_xlate function. > + * > + * The xlate function MUST return a pointer to an existing, already-allo= cated > + * struct phylink_pcs and MUST NOT dynamically allocate a new PCS. > + * The same PCS object must be returned for a given firmware reference a= nd args, > + * as PCS pointer identity is used to associate PCS objects with their p= rovider. > + * A PCS object belongs to one provider and must remain valid until that > + * provider is removed. > + * > + * Returns: A pointer to the registered PCS provider on success, or > + * an ERR_PTR() encoded error code on failure. > + */ > +struct fwnode_pcs_provider * > +fwnode_pcs_add_provider(struct fwnode_handle *fwnode, > + struct phylink_pcs *(*fwnode_xlate)(struct fwnode_reference_args *pcs= spec, > + void *data), > + void *data); > + > +/** > + * fwnode_pcs_del_provider - Removes a PCS provider > + * @pp: PCS provider returned by fwnode_pcs_add_provider() > + */ > +void fwnode_pcs_del_provider(struct fwnode_pcs_provider *pp); > + > +/** > + * devm_fwnode_pcs_add_provider - Registers a new PCS provider > + * @dev: Device of the PCS provider > + * @fwnode: Firmware node > + * @fwnode_xlate: xlate function to retrieve the PCS > + * @data: Context data > + * > + * Register and add a new PCS provider to the global providers list > + * for the firmware node. The relevant PCS from the PCS provider > + * is retrieved from the passed fwnode_xlate function. While at that, it > + * also associates the device with the PCS provider using devres. > + * On driver detach, release function is invoked on the devres data, > + * then, devres data is freed. > + * > + * Returns: A pointer to the registered PCS provider on success, or > + * an ERR_PTR() encoded error code on failure. > + */ > +struct fwnode_pcs_provider * > +devm_fwnode_pcs_add_provider(struct device *dev, struct fwnode_handle *f= wnode, > + struct phylink_pcs *(*fwnode_xlate)(struct fwnode_reference_args= *pcsspec, > + void *data), > + void *data); [Severity: Low] Does include/linux/pcs/pcs-provider.h need forward declarations for struct device, struct fwnode_handle, struct fwnode_reference_args, and struct phylink_pcs? Because this header has no #include directives and only forward-declares struct fwnode_pcs_provider, including it before linux/fwnode.h or linux/device.h declares those structs inside the parameter lists with prototype scope, triggering -Wvisibility warnings and incompatible pointer type errors. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261129230558.6125= 26-1-ansuelsmth@gmail.com?part=3D4