All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Maxime Chevallier <maxime.chevallier@bootlin.com>,
	davem@davemloft.net, Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzk@kernel.org>
Cc: kbuild-all@lists.01.org,
	Maxime Chevallier <maxime.chevallier@bootlin.com>,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	devicetree@vger.kernel.org, thomas.petazzoni@bootlin.com,
	Andrew Lunn <andrew@lunn.ch>,
	Florian Fainelli <f.fainelli@gmail.com>,
	Heiner Kallweit <hkallweit1@gmail.com>,
	Russell King <linux@armlinux.org.uk>,
	linux-arm-kernel@lists.infradead.org,
	Vladimir Oltean <vladimir.oltean@nxp.com>,
	Luka Perkov <luka.perkov@sartura.hr>,
	Robert Marko <robert.marko@sartura.hr>
Subject: Re: [PATCH net-next v4 1/5] net: ipqess: introduce the Qualcomm IPQESS driver
Date: Mon, 12 Sep 2022 06:11:04 +0800	[thread overview]
Message-ID: <202209120614.ZJKTCvbf-lkp@intel.com> (raw)
In-Reply-To: <20220909152454.7462-2-maxime.chevallier@bootlin.com>

Hi Maxime,

I love your patch! Yet something to improve:

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

url:    https://github.com/intel-lab-lkp/linux/commits/Maxime-Chevallier/net-ipqess-introduce-Qualcomm-IPQESS-driver/20220909-232946
base:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 169ccf0e40825d9e465863e4707d8e8546d3c3cb
config: xtensa-allyesconfig (https://download.01.org/0day-ci/archive/20220912/202209120614.ZJKTCvbf-lkp@intel.com/config)
compiler: xtensa-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/intel-lab-lkp/linux/commit/0f2d032fe80cfabb7db162b9c19ed6e23077baeb
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Maxime-Chevallier/net-ipqess-introduce-Qualcomm-IPQESS-driver/20220909-232946
        git checkout 0f2d032fe80cfabb7db162b9c19ed6e23077baeb
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=xtensa SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   drivers/net/ethernet/qualcomm/ipqess/ipqess.c: In function 'ipqess_axi_probe':
>> drivers/net/ethernet/qualcomm/ipqess/ipqess.c:1191:17: error: implicit declaration of function 'netif_tx_napi_add'; did you mean 'netif_napi_add'? [-Werror=implicit-function-declaration]
    1191 |                 netif_tx_napi_add(netdev, &ess->tx_ring[i].napi_tx,
         |                 ^~~~~~~~~~~~~~~~~
         |                 netif_napi_add
   cc1: some warnings being treated as errors


vim +1191 drivers/net/ethernet/qualcomm/ipqess/ipqess.c

  1097	
  1098	static int ipqess_axi_probe(struct platform_device *pdev)
  1099	{
  1100		struct device_node *np = pdev->dev.of_node;
  1101		struct net_device *netdev;
  1102		phy_interface_t phy_mode;
  1103		struct resource *res;
  1104		struct ipqess *ess;
  1105		int i, err = 0;
  1106	
  1107		netdev = devm_alloc_etherdev_mqs(&pdev->dev, sizeof(struct ipqess),
  1108						 IPQESS_NETDEV_QUEUES,
  1109						 IPQESS_NETDEV_QUEUES);
  1110		if (!netdev)
  1111			return -ENOMEM;
  1112	
  1113		ess = netdev_priv(netdev);
  1114		ess->netdev = netdev;
  1115		ess->pdev = pdev;
  1116		spin_lock_init(&ess->stats_lock);
  1117		SET_NETDEV_DEV(netdev, &pdev->dev);
  1118		platform_set_drvdata(pdev, netdev);
  1119	
  1120		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
  1121		ess->hw_addr = devm_ioremap_resource(&pdev->dev, res);
  1122		if (IS_ERR(ess->hw_addr))
  1123			return PTR_ERR(ess->hw_addr);
  1124	
  1125		err = of_get_phy_mode(np, &phy_mode);
  1126		if (err) {
  1127			dev_err(&pdev->dev, "incorrect phy-mode\n");
  1128			return err;
  1129		}
  1130	
  1131		ess->ess_clk = devm_clk_get(&pdev->dev, "ess");
  1132		if (!IS_ERR(ess->ess_clk))
  1133			clk_prepare_enable(ess->ess_clk);
  1134	
  1135		ess->ess_rst = devm_reset_control_get(&pdev->dev, "ess");
  1136		if (IS_ERR(ess->ess_rst))
  1137			goto err_clk;
  1138	
  1139		ipqess_reset(ess);
  1140	
  1141		ess->phylink_config.dev = &netdev->dev;
  1142		ess->phylink_config.type = PHYLINK_NETDEV;
  1143		ess->phylink_config.mac_capabilities = MAC_SYM_PAUSE | MAC_10 |
  1144						       MAC_100 | MAC_1000FD;
  1145	
  1146		__set_bit(PHY_INTERFACE_MODE_INTERNAL,
  1147			  ess->phylink_config.supported_interfaces);
  1148	
  1149		ess->phylink = phylink_create(&ess->phylink_config,
  1150					      of_fwnode_handle(np), phy_mode,
  1151					      &ipqess_phylink_mac_ops);
  1152		if (IS_ERR(ess->phylink)) {
  1153			err = PTR_ERR(ess->phylink);
  1154			goto err_clk;
  1155		}
  1156	
  1157		for (i = 0; i < IPQESS_MAX_TX_QUEUE; i++) {
  1158			ess->tx_irq[i] = platform_get_irq(pdev, i);
  1159			scnprintf(ess->tx_irq_names[i], sizeof(ess->tx_irq_names[i]),
  1160				  "%s:txq%d", pdev->name, i);
  1161		}
  1162	
  1163		for (i = 0; i < IPQESS_MAX_RX_QUEUE; i++) {
  1164			ess->rx_irq[i] = platform_get_irq(pdev, i + IPQESS_MAX_TX_QUEUE);
  1165			scnprintf(ess->rx_irq_names[i], sizeof(ess->rx_irq_names[i]),
  1166				  "%s:rxq%d", pdev->name, i);
  1167		}
  1168	
  1169		netdev->netdev_ops = &ipqess_axi_netdev_ops;
  1170		netdev->features = NETIF_F_HW_CSUM | NETIF_F_RXCSUM |
  1171				   NETIF_F_HW_VLAN_CTAG_RX |
  1172				   NETIF_F_HW_VLAN_CTAG_TX |
  1173				   NETIF_F_TSO | NETIF_F_GRO | NETIF_F_SG;
  1174		/* feature change is not supported yet */
  1175		netdev->hw_features = 0;
  1176		netdev->vlan_features = NETIF_F_HW_CSUM | NETIF_F_SG | NETIF_F_RXCSUM |
  1177					NETIF_F_TSO |
  1178					NETIF_F_GRO;
  1179		netdev->watchdog_timeo = 5 * HZ;
  1180		netdev->base_addr = (u32)ess->hw_addr;
  1181		netdev->max_mtu = 9000;
  1182		netdev->gso_max_segs = IPQESS_TX_RING_SIZE / 2;
  1183	
  1184		ipqess_set_ethtool_ops(netdev);
  1185	
  1186		err = ipqess_hw_init(ess);
  1187		if (err)
  1188			goto err_phylink;
  1189	
  1190		for (i = 0; i < IPQESS_NETDEV_QUEUES; i++) {
> 1191			netif_tx_napi_add(netdev, &ess->tx_ring[i].napi_tx,
  1192					  ipqess_tx_napi, 64);
  1193			netif_napi_add(netdev, &ess->rx_ring[i].napi_rx, ipqess_rx_napi,
  1194				       64);
  1195		}
  1196	
  1197		err = register_netdev(netdev);
  1198		if (err)
  1199			goto err_hw_stop;
  1200	
  1201		return 0;
  1202	
  1203	err_hw_stop:
  1204		ipqess_hw_stop(ess);
  1205	
  1206		ipqess_tx_ring_free(ess);
  1207		ipqess_rx_ring_free(ess);
  1208	err_phylink:
  1209		phylink_destroy(ess->phylink);
  1210	
  1211	err_clk:
  1212		clk_disable_unprepare(ess->ess_clk);
  1213	
  1214		return err;
  1215	}
  1216	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Maxime Chevallier <maxime.chevallier@bootlin.com>,
	davem@davemloft.net, Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzk@kernel.org>
Cc: kbuild-all@lists.01.org,
	Maxime Chevallier <maxime.chevallier@bootlin.com>,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	devicetree@vger.kernel.org, thomas.petazzoni@bootlin.com,
	Andrew Lunn <andrew@lunn.ch>,
	Florian Fainelli <f.fainelli@gmail.com>,
	Heiner Kallweit <hkallweit1@gmail.com>,
	Russell King <linux@armlinux.org.uk>,
	linux-arm-kernel@lists.infradead.org,
	Vladimir Oltean <vladimir.oltean@nxp.com>,
	Luka Perkov <luka.perkov@sartura.hr>,
	Robert Marko <robert.marko@sartura.hr>
Subject: Re: [PATCH net-next v4 1/5] net: ipqess: introduce the Qualcomm IPQESS driver
Date: Mon, 12 Sep 2022 06:11:04 +0800	[thread overview]
Message-ID: <202209120614.ZJKTCvbf-lkp@intel.com> (raw)
In-Reply-To: <20220909152454.7462-2-maxime.chevallier@bootlin.com>

Hi Maxime,

I love your patch! Yet something to improve:

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

url:    https://github.com/intel-lab-lkp/linux/commits/Maxime-Chevallier/net-ipqess-introduce-Qualcomm-IPQESS-driver/20220909-232946
base:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 169ccf0e40825d9e465863e4707d8e8546d3c3cb
config: xtensa-allyesconfig (https://download.01.org/0day-ci/archive/20220912/202209120614.ZJKTCvbf-lkp@intel.com/config)
compiler: xtensa-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/intel-lab-lkp/linux/commit/0f2d032fe80cfabb7db162b9c19ed6e23077baeb
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Maxime-Chevallier/net-ipqess-introduce-Qualcomm-IPQESS-driver/20220909-232946
        git checkout 0f2d032fe80cfabb7db162b9c19ed6e23077baeb
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=xtensa SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   drivers/net/ethernet/qualcomm/ipqess/ipqess.c: In function 'ipqess_axi_probe':
>> drivers/net/ethernet/qualcomm/ipqess/ipqess.c:1191:17: error: implicit declaration of function 'netif_tx_napi_add'; did you mean 'netif_napi_add'? [-Werror=implicit-function-declaration]
    1191 |                 netif_tx_napi_add(netdev, &ess->tx_ring[i].napi_tx,
         |                 ^~~~~~~~~~~~~~~~~
         |                 netif_napi_add
   cc1: some warnings being treated as errors


vim +1191 drivers/net/ethernet/qualcomm/ipqess/ipqess.c

  1097	
  1098	static int ipqess_axi_probe(struct platform_device *pdev)
  1099	{
  1100		struct device_node *np = pdev->dev.of_node;
  1101		struct net_device *netdev;
  1102		phy_interface_t phy_mode;
  1103		struct resource *res;
  1104		struct ipqess *ess;
  1105		int i, err = 0;
  1106	
  1107		netdev = devm_alloc_etherdev_mqs(&pdev->dev, sizeof(struct ipqess),
  1108						 IPQESS_NETDEV_QUEUES,
  1109						 IPQESS_NETDEV_QUEUES);
  1110		if (!netdev)
  1111			return -ENOMEM;
  1112	
  1113		ess = netdev_priv(netdev);
  1114		ess->netdev = netdev;
  1115		ess->pdev = pdev;
  1116		spin_lock_init(&ess->stats_lock);
  1117		SET_NETDEV_DEV(netdev, &pdev->dev);
  1118		platform_set_drvdata(pdev, netdev);
  1119	
  1120		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
  1121		ess->hw_addr = devm_ioremap_resource(&pdev->dev, res);
  1122		if (IS_ERR(ess->hw_addr))
  1123			return PTR_ERR(ess->hw_addr);
  1124	
  1125		err = of_get_phy_mode(np, &phy_mode);
  1126		if (err) {
  1127			dev_err(&pdev->dev, "incorrect phy-mode\n");
  1128			return err;
  1129		}
  1130	
  1131		ess->ess_clk = devm_clk_get(&pdev->dev, "ess");
  1132		if (!IS_ERR(ess->ess_clk))
  1133			clk_prepare_enable(ess->ess_clk);
  1134	
  1135		ess->ess_rst = devm_reset_control_get(&pdev->dev, "ess");
  1136		if (IS_ERR(ess->ess_rst))
  1137			goto err_clk;
  1138	
  1139		ipqess_reset(ess);
  1140	
  1141		ess->phylink_config.dev = &netdev->dev;
  1142		ess->phylink_config.type = PHYLINK_NETDEV;
  1143		ess->phylink_config.mac_capabilities = MAC_SYM_PAUSE | MAC_10 |
  1144						       MAC_100 | MAC_1000FD;
  1145	
  1146		__set_bit(PHY_INTERFACE_MODE_INTERNAL,
  1147			  ess->phylink_config.supported_interfaces);
  1148	
  1149		ess->phylink = phylink_create(&ess->phylink_config,
  1150					      of_fwnode_handle(np), phy_mode,
  1151					      &ipqess_phylink_mac_ops);
  1152		if (IS_ERR(ess->phylink)) {
  1153			err = PTR_ERR(ess->phylink);
  1154			goto err_clk;
  1155		}
  1156	
  1157		for (i = 0; i < IPQESS_MAX_TX_QUEUE; i++) {
  1158			ess->tx_irq[i] = platform_get_irq(pdev, i);
  1159			scnprintf(ess->tx_irq_names[i], sizeof(ess->tx_irq_names[i]),
  1160				  "%s:txq%d", pdev->name, i);
  1161		}
  1162	
  1163		for (i = 0; i < IPQESS_MAX_RX_QUEUE; i++) {
  1164			ess->rx_irq[i] = platform_get_irq(pdev, i + IPQESS_MAX_TX_QUEUE);
  1165			scnprintf(ess->rx_irq_names[i], sizeof(ess->rx_irq_names[i]),
  1166				  "%s:rxq%d", pdev->name, i);
  1167		}
  1168	
  1169		netdev->netdev_ops = &ipqess_axi_netdev_ops;
  1170		netdev->features = NETIF_F_HW_CSUM | NETIF_F_RXCSUM |
  1171				   NETIF_F_HW_VLAN_CTAG_RX |
  1172				   NETIF_F_HW_VLAN_CTAG_TX |
  1173				   NETIF_F_TSO | NETIF_F_GRO | NETIF_F_SG;
  1174		/* feature change is not supported yet */
  1175		netdev->hw_features = 0;
  1176		netdev->vlan_features = NETIF_F_HW_CSUM | NETIF_F_SG | NETIF_F_RXCSUM |
  1177					NETIF_F_TSO |
  1178					NETIF_F_GRO;
  1179		netdev->watchdog_timeo = 5 * HZ;
  1180		netdev->base_addr = (u32)ess->hw_addr;
  1181		netdev->max_mtu = 9000;
  1182		netdev->gso_max_segs = IPQESS_TX_RING_SIZE / 2;
  1183	
  1184		ipqess_set_ethtool_ops(netdev);
  1185	
  1186		err = ipqess_hw_init(ess);
  1187		if (err)
  1188			goto err_phylink;
  1189	
  1190		for (i = 0; i < IPQESS_NETDEV_QUEUES; i++) {
> 1191			netif_tx_napi_add(netdev, &ess->tx_ring[i].napi_tx,
  1192					  ipqess_tx_napi, 64);
  1193			netif_napi_add(netdev, &ess->rx_ring[i].napi_rx, ipqess_rx_napi,
  1194				       64);
  1195		}
  1196	
  1197		err = register_netdev(netdev);
  1198		if (err)
  1199			goto err_hw_stop;
  1200	
  1201		return 0;
  1202	
  1203	err_hw_stop:
  1204		ipqess_hw_stop(ess);
  1205	
  1206		ipqess_tx_ring_free(ess);
  1207		ipqess_rx_ring_free(ess);
  1208	err_phylink:
  1209		phylink_destroy(ess->phylink);
  1210	
  1211	err_clk:
  1212		clk_disable_unprepare(ess->ess_clk);
  1213	
  1214		return err;
  1215	}
  1216	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

  parent reply	other threads:[~2022-09-11 22:12 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-09 15:24 [PATCH net-next v4 0/5] net: ipqess: introduce Qualcomm IPQESS driver Maxime Chevallier
2022-09-09 15:24 ` Maxime Chevallier
2022-09-09 15:24 ` [PATCH net-next v4 1/5] net: ipqess: introduce the " Maxime Chevallier
2022-09-09 15:24   ` Maxime Chevallier
2022-09-09 15:39   ` Krzysztof Kozlowski
2022-09-09 15:39     ` Krzysztof Kozlowski
2022-09-11 22:11   ` kernel test robot [this message]
2022-09-11 22:11     ` kernel test robot
2022-09-09 15:24 ` [PATCH net-next v4 2/5] net: dsa: add out-of-band tagging protocol Maxime Chevallier
2022-09-09 15:24   ` Maxime Chevallier
2022-09-17  0:15   ` Vladimir Oltean
2022-09-17  0:15     ` Vladimir Oltean
2022-09-17  9:00     ` Maxime Chevallier
2022-09-17  9:00       ` Maxime Chevallier
2022-09-09 15:24 ` [PATCH net-next v4 3/5] net: ipqess: Add out-of-band DSA tagging support Maxime Chevallier
2022-09-09 15:24   ` Maxime Chevallier
2022-09-09 15:24 ` [PATCH net-next v4 4/5] net: dt-bindings: Introduce the Qualcomm IPQESS Ethernet controller Maxime Chevallier
2022-09-09 15:24   ` Maxime Chevallier
2022-09-09 15:35   ` Krzysztof Kozlowski
2022-09-09 15:35     ` Krzysztof Kozlowski
2022-09-09 15:24 ` [PATCH net-next v4 5/5] ARM: dts: qcom: ipq4019: Add description for the " Maxime Chevallier
2022-09-09 15:24   ` Maxime Chevallier
2022-09-09 15:36   ` Krzysztof Kozlowski
2022-09-09 15:36     ` Krzysztof Kozlowski
2022-09-17  0:20 ` [PATCH net-next v4 0/5] net: ipqess: introduce Qualcomm IPQESS driver Vladimir Oltean
2022-09-17  0:20   ` Vladimir Oltean
2022-09-17  9:02   ` Maxime Chevallier
2022-09-17  9:02     ` Maxime Chevallier

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=202209120614.ZJKTCvbf-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=f.fainelli@gmail.com \
    --cc=hkallweit1@gmail.com \
    --cc=kbuild-all@lists.01.org \
    --cc=krzk@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=luka.perkov@sartura.hr \
    --cc=maxime.chevallier@bootlin.com \
    --cc=netdev@vger.kernel.org \
    --cc=robert.marko@sartura.hr \
    --cc=robh+dt@kernel.org \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=vladimir.oltean@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.