From: kernel test robot <lkp@intel.com>
To: Rosen Penev <rosenp@gmail.com>, netdev@vger.kernel.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
andrew@lunn.ch, davem@davemloft.net, edumazet@google.com,
kuba@kernel.org, pabeni@redhat.com, linux-kernel@vger.kernel.org,
jacob.e.keller@intel.com, horms@kernel.org, sd@queasysnail.net,
chunkeey@gmail.com
Subject: Re: [PATCH net-next 09/13] net: ibm: emac: rgmii: devm_platform_get_resource
Date: Tue, 1 Oct 2024 17:06:18 +0800 [thread overview]
Message-ID: <202410011626.D4gEmLU8-lkp@intel.com> (raw)
In-Reply-To: <20240930180036.87598-10-rosenp@gmail.com>
Hi Rosen,
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/Rosen-Penev/net-ibm-emac-remove-custom-init-exit-functions/20241001-020553
base: net-next/main
patch link: https://lore.kernel.org/r/20240930180036.87598-10-rosenp%40gmail.com
patch subject: [PATCH net-next 09/13] net: ibm: emac: rgmii: devm_platform_get_resource
config: powerpc-canyonlands_defconfig (https://download.01.org/0day-ci/archive/20241001/202410011626.D4gEmLU8-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 7773243d9916f98ba0ffce0c3a960e4aa9f03e81)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241001/202410011626.D4gEmLU8-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/202410011626.D4gEmLU8-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/net/ethernet/ibm/emac/rgmii.c:21:
In file included from include/linux/ethtool.h:18:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:17:
In file included from include/linux/bvec.h:10:
In file included from include/linux/highmem.h:8:
In file included from include/linux/cacheflush.h:5:
In file included from arch/powerpc/include/asm/cacheflush.h:7:
In file included from include/linux/mm.h:2213:
include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
>> drivers/net/ethernet/ibm/emac/rgmii.c:229:14: error: call to undeclared function 'devm_platform_get_resource'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
229 | dev->base = devm_platform_get_resource(ofdev, 0);
| ^
drivers/net/ethernet/ibm/emac/rgmii.c:229:14: note: did you mean 'platform_get_resource'?
include/linux/platform_device.h:58:25: note: 'platform_get_resource' declared here
58 | extern struct resource *platform_get_resource(struct platform_device *,
| ^
>> drivers/net/ethernet/ibm/emac/rgmii.c:229:12: error: incompatible integer to pointer conversion assigning to 'struct rgmii_regs *' from 'int' [-Wint-conversion]
229 | dev->base = devm_platform_get_resource(ofdev, 0);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 2 errors generated.
vim +/devm_platform_get_resource +229 drivers/net/ethernet/ibm/emac/rgmii.c
215
216
217 static int rgmii_probe(struct platform_device *ofdev)
218 {
219 struct rgmii_instance *dev;
220
221 dev = devm_kzalloc(&ofdev->dev, sizeof(struct rgmii_instance),
222 GFP_KERNEL);
223 if (!dev)
224 return -ENOMEM;
225
226 mutex_init(&dev->lock);
227 dev->ofdev = ofdev;
228
> 229 dev->base = devm_platform_get_resource(ofdev, 0);
230 if (IS_ERR(dev->base)) {
231 dev_err(&ofdev->dev, "can't map device registers");
232 return PTR_ERR(dev->base);
233 }
234
235 /* Check for RGMII flags */
236 if (of_property_read_bool(ofdev->dev.of_node, "has-mdio"))
237 dev->flags |= EMAC_RGMII_FLAG_HAS_MDIO;
238
239 /* CAB lacks the right properties, fix this up */
240 if (of_device_is_compatible(ofdev->dev.of_node, "ibm,rgmii-axon"))
241 dev->flags |= EMAC_RGMII_FLAG_HAS_MDIO;
242
243 DBG2(dev, " Boot FER = 0x%08x, SSR = 0x%08x\n",
244 in_be32(&dev->base->fer), in_be32(&dev->base->ssr));
245
246 /* Disable all inputs by default */
247 out_be32(&dev->base->fer, 0);
248
249 printk(KERN_INFO
250 "RGMII %pOF initialized with%s MDIO support\n",
251 ofdev->dev.of_node,
252 (dev->flags & EMAC_RGMII_FLAG_HAS_MDIO) ? "" : "out");
253
254 wmb();
255 platform_set_drvdata(ofdev, dev);
256
257 return 0;
258 }
259
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-10-01 9:07 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-30 18:00 [PATCH net-next 00/13] ibm: emac: more cleanups Rosen Penev
2024-09-30 18:00 ` [PATCH net-next 01/13] net: ibm: emac: remove custom init/exit functions Rosen Penev
2024-09-30 18:00 ` [PATCH net-next 02/13] net: ibm: emac: use module_platform_driver for modules Rosen Penev
2024-09-30 18:00 ` [PATCH net-next 03/13] net: ibm: emac: use devm_platform_ioremap_resource Rosen Penev
2024-09-30 18:00 ` [PATCH net-next 04/13] net: ibm: emac: use platform_get_irq Rosen Penev
2024-09-30 18:00 ` [PATCH net-next 05/13] net: ibm: emac: remove bootlist support Rosen Penev
2024-09-30 18:00 ` [PATCH net-next 06/13] net: ibm: emac: tah: use devm for kzalloc Rosen Penev
2024-09-30 18:00 ` [PATCH net-next 07/13] net: ibm: emac: tah: devm_platform_get_resources Rosen Penev
2024-09-30 18:00 ` [PATCH net-next 08/13] net: ibm: emac: rgmii: use devm for kzalloc Rosen Penev
2024-09-30 18:00 ` [PATCH net-next 09/13] net: ibm: emac: rgmii: devm_platform_get_resource Rosen Penev
2024-10-01 8:24 ` kernel test robot
2024-10-01 13:25 ` Simon Horman
2024-10-01 19:35 ` Rosen Penev
2024-10-01 9:06 ` kernel test robot [this message]
2024-09-30 18:00 ` [PATCH net-next 10/13] net: ibm: emac: zmii: use devm for kzalloc Rosen Penev
2024-09-30 18:00 ` [PATCH net-next 11/13] net: ibm: emac: zmii: devm_platform_get_resource Rosen Penev
2024-09-30 18:00 ` [PATCH net-next 12/13] net: ibm: emac: mal: use devm for kzalloc Rosen Penev
2024-09-30 18:00 ` [PATCH net-next 13/13] net: ibm: emac: mal: use devm for request_irq Rosen Penev
2024-10-01 13:32 ` Simon Horman
2024-10-01 19:35 ` Rosen Penev
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=202410011626.D4gEmLU8-lkp@intel.com \
--to=lkp@intel.com \
--cc=andrew@lunn.ch \
--cc=chunkeey@gmail.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=jacob.e.keller@intel.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pabeni@redhat.com \
--cc=rosenp@gmail.com \
--cc=sd@queasysnail.net \
/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;
as well as URLs for NNTP newsgroup(s).