From: kernel test robot <lkp@intel.com>
To: Christian Marangi <ansuelsmth@gmail.com>,
Lee Jones <lee@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Vladimir Oltean <olteanv@gmail.com>,
Srinivas Kandagatla <srinivas.kandagatla@linaro.org>,
Heiner Kallweit <hkallweit1@gmail.com>,
Russell King <linux@armlinux.org.uk>,
Matthias Brugger <matthias.bgg@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, upstream@airoha.com
Cc: oe-kbuild-all@lists.linux.dev, netdev@vger.kernel.org
Subject: Re: [net-next PATCH v10 8/9] net: dsa: Add Airoha AN8855 5-Port Gigabit DSA Switch driver
Date: Mon, 9 Dec 2024 12:42:57 +0800 [thread overview]
Message-ID: <202412081353.I0203taL-lkp@intel.com> (raw)
In-Reply-To: <20241208002105.18074-9-ansuelsmth@gmail.com>
Hi Christian,
kernel test robot noticed the following build warnings:
[auto build test WARNING on net-next/main]
url: https://github.com/intel-lab-lkp/linux/commits/Christian-Marangi/dt-bindings-nvmem-Document-support-for-Airoha-AN8855-Switch-EFUSE/20241208-082533
base: net-next/main
patch link: https://lore.kernel.org/r/20241208002105.18074-9-ansuelsmth%40gmail.com
patch subject: [net-next PATCH v10 8/9] net: dsa: Add Airoha AN8855 5-Port Gigabit DSA Switch driver
config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20241208/202412081353.I0203taL-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241208/202412081353.I0203taL-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/202412081353.I0203taL-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/net/dsa/an8855.c: In function 'an8855_switch_probe':
drivers/net/dsa/an8855.c:2227:34: error: invalid use of undefined type 'struct platform_device'
2227 | priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
| ^~
drivers/net/dsa/an8855.c:2231:26: error: invalid use of undefined type 'struct platform_device'
2231 | priv->dev = &pdev->dev;
| ^~
drivers/net/dsa/an8855.c: In function 'an8855_switch_remove':
drivers/net/dsa/an8855.c:2282:57: error: invalid use of undefined type 'struct platform_device'
2282 | struct an8855_priv *priv = dev_get_drvdata(&pdev->dev);
| ^~
drivers/net/dsa/an8855.c: At top level:
drivers/net/dsa/an8855.c:2295:15: error: variable 'an8855_switch_driver' has initializer but incomplete type
2295 | static struct platform_driver an8855_switch_driver = {
| ^~~~~~~~~~~~~~~
drivers/net/dsa/an8855.c:2296:10: error: 'struct platform_driver' has no member named 'probe'
2296 | .probe = an8855_switch_probe,
| ^~~~~
drivers/net/dsa/an8855.c:2296:18: warning: excess elements in struct initializer
2296 | .probe = an8855_switch_probe,
| ^~~~~~~~~~~~~~~~~~~
drivers/net/dsa/an8855.c:2296:18: note: (near initialization for 'an8855_switch_driver')
drivers/net/dsa/an8855.c:2297:10: error: 'struct platform_driver' has no member named 'remove'
2297 | .remove = an8855_switch_remove,
| ^~~~~~
drivers/net/dsa/an8855.c:2297:19: warning: excess elements in struct initializer
2297 | .remove = an8855_switch_remove,
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/an8855.c:2297:19: note: (near initialization for 'an8855_switch_driver')
drivers/net/dsa/an8855.c:2298:10: error: 'struct platform_driver' has no member named 'driver'
2298 | .driver = {
| ^~~~~~
drivers/net/dsa/an8855.c:2298:19: error: extra brace group at end of initializer
2298 | .driver = {
| ^
drivers/net/dsa/an8855.c:2298:19: note: (near initialization for 'an8855_switch_driver')
drivers/net/dsa/an8855.c:2298:19: warning: excess elements in struct initializer
drivers/net/dsa/an8855.c:2298:19: note: (near initialization for 'an8855_switch_driver')
drivers/net/dsa/an8855.c:2303:1: warning: data definition has no type or storage class
2303 | module_platform_driver(an8855_switch_driver);
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/an8855.c:2303:1: error: type defaults to 'int' in declaration of 'module_platform_driver' [-Werror=implicit-int]
>> drivers/net/dsa/an8855.c:2303:1: warning: parameter names (without types) in function declaration
drivers/net/dsa/an8855.c:2295:31: error: storage size of 'an8855_switch_driver' isn't known
2295 | static struct platform_driver an8855_switch_driver = {
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/an8855.c:2295:31: warning: 'an8855_switch_driver' defined but not used [-Wunused-variable]
cc1: some warnings being treated as errors
vim +2303 drivers/net/dsa/an8855.c
2294
2295 static struct platform_driver an8855_switch_driver = {
2296 .probe = an8855_switch_probe,
2297 .remove = an8855_switch_remove,
2298 .driver = {
2299 .name = "an8855-switch",
2300 .of_match_table = an8855_switch_of_match,
2301 },
2302 };
> 2303 module_platform_driver(an8855_switch_driver);
2304
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-12-09 4:43 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-08 0:20 [net-next PATCH v10 0/9] net: dsa: Add Airoha AN8855 support Christian Marangi
2024-12-08 0:20 ` [net-next PATCH v10 1/9] dt-bindings: nvmem: Document support for Airoha AN8855 Switch EFUSE Christian Marangi
2024-12-08 0:20 ` [net-next PATCH v10 2/9] dt-bindings: net: Document support for Airoha AN8855 Switch Virtual MDIO Christian Marangi
2024-12-08 16:02 ` Andrew Lunn
2024-12-08 0:20 ` [net-next PATCH v10 3/9] dt-bindings: net: dsa: Document support for Airoha AN8855 DSA Switch Christian Marangi
2024-12-08 0:20 ` [net-next PATCH v10 4/9] dt-bindings: mfd: Document support for Airoha AN8855 Switch SoC Christian Marangi
2024-12-08 1:47 ` Rob Herring (Arm)
2024-12-08 0:20 ` [net-next PATCH v10 5/9] mfd: an8855: Add support for Airoha AN8855 Switch MFD Christian Marangi
2024-12-08 15:09 ` Christophe JAILLET
2024-12-08 15:12 ` Christian Marangi
2024-12-08 15:38 ` Christophe JAILLET
2024-12-08 0:20 ` [net-next PATCH v10 6/9] net: mdio: Add Airoha AN8855 Switch MDIO Passtrough Christian Marangi
2024-12-08 15:13 ` Christophe JAILLET
2024-12-08 0:20 ` [net-next PATCH v10 7/9] nvmem: an8855: Add support for Airoha AN8855 Switch EFUSE Christian Marangi
2024-12-08 15:17 ` Christophe JAILLET
2024-12-08 0:20 ` [net-next PATCH v10 8/9] net: dsa: Add Airoha AN8855 5-Port Gigabit DSA Switch driver Christian Marangi
2024-12-08 15:26 ` Christophe JAILLET
2024-12-09 4:38 ` kernel test robot
2024-12-09 4:42 ` kernel test robot [this message]
2024-12-08 0:20 ` [net-next PATCH v10 9/9] net: phy: Add Airoha AN8855 Internal Switch Gigabit PHY Christian Marangi
2024-12-09 4:39 ` kernel test robot
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=202412081353.I0203taL-lkp@intel.com \
--to=lkp@intel.com \
--cc=andrew+netdev@lunn.ch \
--cc=angelogioacchino.delregno@collabora.com \
--cc=ansuelsmth@gmail.com \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=krzk@kernel.org \
--cc=kuba@kernel.org \
--cc=lee@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux@armlinux.org.uk \
--cc=matthias.bgg@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.com \
--cc=robh@kernel.org \
--cc=srinivas.kandagatla@linaro.org \
--cc=upstream@airoha.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