Devicetree
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Claudiu Manoil <claudiu.manoil@nxp.com>, netdev@vger.kernel.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, s32@nxp.com,
	linux-kernel@vger.kernel.org,
	Vladimir Oltean <vladimir.oltean@nxp.com>,
	Wei Fang <wei.fang@nxp.com>, Clark Wang <xiaoning.wang@nxp.com>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Rob Herring <robh@kernel.org>,
	Saravana Kannan <saravanak@kernel.org>,
	Russell King <linux@armlinux.org.uk>,
	imx@lists.linux.dev, devicetree@vger.kernel.org
Subject: Re: [PATCH net-next v2 1/5] net: enetc: Add pseudo-MAC support for ENETCv4 Ports via a fixed-link node
Date: Thu, 15 Oct 2026 16:43:40 +0800	[thread overview]
Message-ID: <202610151650.UHqL0Sb7-lkp@intel.com> (raw)
In-Reply-To: <d7b51cb29758538a4c68a700dd8cd41b6e7e08b6.1791908694.git.claudiu.manoil@nxp.com>

Hi Claudiu,

kernel test robot noticed the following build errors:

[auto build test ERROR on net-next/main]

url:    https://github.com/intel-lab-lkp/linux/commits/Claudiu-Manoil/net-enetc-Add-pseudo-MAC-support-for-ENETCv4-Ports-via-a-fixed-link-node/20261013-201245
base:   net-next/main
patch link:    https://lore.kernel.org/r/d7b51cb29758538a4c68a700dd8cd41b6e7e08b6.1791908694.git.claudiu.manoil%40nxp.com
patch subject: [PATCH net-next v2 1/5] net: enetc: Add pseudo-MAC support for ENETCv4 Ports via a fixed-link node
config: x86_64-buildonly-randconfig-1004-20261015 (https://download.01.org/0day-ci/archive/20261015/202610151650.UHqL0Sb7-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261015/202610151650.UHqL0Sb7-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610151650.UHqL0Sb7-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/net/ethernet/freescale/enetc/enetc4_pf.c:963:2: error: call to undeclared function 'of_changeset_revert'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     963 |         of_changeset_revert(priv->ppm_ocs);
         |         ^
>> drivers/net/ethernet/freescale/enetc/enetc4_pf.c:964:2: error: call to undeclared function 'of_changeset_destroy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     964 |         of_changeset_destroy(priv->ppm_ocs);
         |         ^
>> drivers/net/ethernet/freescale/enetc/enetc4_pf.c:992:2: error: call to undeclared function 'of_changeset_init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     992 |         of_changeset_init(ocs);
         |         ^
>> drivers/net/ethernet/freescale/enetc/enetc4_pf.c:994:15: error: call to undeclared function 'of_changeset_create_node'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     994 |         fixed_link = of_changeset_create_node(ocs, np, "fixed-link");
         |                      ^
>> drivers/net/ethernet/freescale/enetc/enetc4_pf.c:994:13: error: incompatible integer to pointer conversion assigning to 'struct device_node *' from 'int' [-Wint-conversion]
     994 |         fixed_link = of_changeset_create_node(ocs, np, "fixed-link");
         |                    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/freescale/enetc/enetc4_pf.c:1000:8: error: call to undeclared function 'of_changeset_add_prop_u32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1000 |         err = of_changeset_add_prop_u32(ocs, fixed_link, "speed", speed);
         |               ^
>> drivers/net/ethernet/freescale/enetc/enetc4_pf.c:1004:8: error: call to undeclared function 'of_changeset_add_prop_bool'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1004 |         err = of_changeset_add_prop_bool(ocs, fixed_link, "full-duplex");
         |               ^
>> drivers/net/ethernet/freescale/enetc/enetc4_pf.c:1008:8: error: call to undeclared function 'of_changeset_apply'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1008 |         err = of_changeset_apply(ocs);
         |               ^
   drivers/net/ethernet/freescale/enetc/enetc4_pf.c:1020:2: error: call to undeclared function 'of_changeset_destroy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1020 |         of_changeset_destroy(ocs);
         |         ^
   9 errors generated.


vim +/of_changeset_revert +963 drivers/net/ethernet/freescale/enetc/enetc4_pf.c

   957	
   958	static void enetc4_put_ppm_fixed_link(struct enetc_ndev_priv *priv)
   959	{
   960		if (!priv->ppm_ocs)
   961			return;
   962	
 > 963		of_changeset_revert(priv->ppm_ocs);
 > 964		of_changeset_destroy(priv->ppm_ocs);
   965		kfree(priv->ppm_ocs);
   966		priv->ppm_ocs = NULL;
   967	}
   968	
   969	/* Pseudo-MAC ports have no real PHY; the link is fixed, with the operating
   970	 * speed set at probe time from PCR[PSPEED]. Describe this with a fixed-link
   971	 * subnode synthesized at runtime onto the port's own OF node, so phylink
   972	 * picks it up through dev_fwnode() exactly as if it came from static DT.
   973	 */
   974	static int enetc4_add_ppm_fixed_link(struct enetc_ndev_priv *priv)
   975	{
   976		struct device_node *np = dev_of_node(priv->dev);
   977		struct device_node *fixed_link;
   978		struct of_changeset *ocs;
   979		int speed, err;
   980	
   981		if (!np)
   982			return dev_err_probe(priv->dev, -ENODEV,
   983					     "Missing of_node for Pseudo-MAC port\n");
   984	
   985		enetc4_get_pcr_speed(&priv->si->hw, &speed);
   986		speed = enetc_phylink_match_pseudo_mac_speed(speed);
   987	
   988		ocs = kzalloc_obj(*ocs);
   989		if (!ocs)
   990			return -ENOMEM;
   991	
 > 992		of_changeset_init(ocs);
   993	
 > 994		fixed_link = of_changeset_create_node(ocs, np, "fixed-link");
   995		if (!fixed_link) {
   996			err = -ENOMEM;
   997			goto err_destroy;
   998		}
   999	
> 1000		err = of_changeset_add_prop_u32(ocs, fixed_link, "speed", speed);
  1001		if (err)
  1002			goto err_put_node;
  1003	
> 1004		err = of_changeset_add_prop_bool(ocs, fixed_link, "full-duplex");
  1005		if (err)
  1006			goto err_put_node;
  1007	
> 1008		err = of_changeset_apply(ocs);
  1009		if (err)
  1010			goto err_put_node;
  1011	
  1012		of_node_put(fixed_link);
  1013		priv->ppm_ocs = ocs;
  1014	
  1015		return 0;
  1016	
  1017	err_put_node:
  1018		of_node_put(fixed_link);
  1019	err_destroy:
  1020		of_changeset_destroy(ocs);
  1021		kfree(ocs);
  1022	
  1023		return dev_err_probe(priv->dev, err,
  1024				     "Failed to add fixed-link node\n");
  1025	}
  1026	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  parent reply	other threads:[~2026-10-15  8:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-13 17:12 [PATCH net-next v2 0/5] net: enetc: S32N79 pseudo-MAC (PPM) networking support Claudiu Manoil
2026-10-13 17:12 ` [PATCH net-next v2 1/5] net: enetc: Add pseudo-MAC support for ENETCv4 Ports via a fixed-link node Claudiu Manoil
2026-10-15  2:16   ` Wei Fang
2026-10-15 13:20     ` Claudiu Manoil
2026-10-15  8:43   ` kernel test robot [this message]
2026-10-15 13:26     ` Claudiu Manoil
2026-10-13 17:12 ` [PATCH net-next v2 3/5] arm64: dts: s32n79: add NETC IEP18 ECAM node for ENETC PPM ports Claudiu Manoil
2026-10-13 17:12 ` [PATCH net-next v2 4/5] arm64: dts: s32n79-rdb: enable NETC IEP18 Claudiu Manoil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202610151650.UHqL0Sb7-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=claudiu.manoil@nxp.com \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@kernel.org \
    --cc=imx@lists.linux.dev \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=llvm@lists.linux.dev \
    --cc=netdev@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pabeni@redhat.com \
    --cc=robh@kernel.org \
    --cc=s32@nxp.com \
    --cc=saravanak@kernel.org \
    --cc=vladimir.oltean@nxp.com \
    --cc=wei.fang@nxp.com \
    --cc=xiaoning.wang@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox