From: kernel test robot <lkp@intel.com>
To: Calvin Johnson <calvin.johnson@oss.nxp.com>,
Jeremy Linton <jeremy.linton@arm.com>,
Russell King - ARM Linux admin <linux@armlinux.org.uk>,
Jon <jon@solid-run.com>,
Cristi Sovaiala <cristian.sovaiala@nxp.com>,
Ioana Ciornei <ioana.ciornei@nxp.com>,
Andrew Lunn <andrew@lunn.ch>,
Andy Shevchenko <andy.shevchenko@gmail.com>,
Florian Fainelli <f.fainelli@gmail.com>,
Madalin Bucur <madalin.bucur@oss.nxp.com>
Cc: kbuild-all@lists.01.org, linux-acpi@vger.kernel.org
Subject: Re: [net-next PATCH v1] net: dpaa2-mac: Add ACPI support for DPAA2 MAC driver
Date: Thu, 25 Jun 2020 19:05:57 +0800 [thread overview]
Message-ID: <202006251802.jt5kabG7%lkp@intel.com> (raw)
In-Reply-To: <20200625043538.25464-1-calvin.johnson@oss.nxp.com>
[-- Attachment #1: Type: text/plain, Size: 2854 bytes --]
Hi Calvin,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on net-next/master]
url: https://github.com/0day-ci/linux/commits/Calvin-Johnson/net-dpaa2-mac-Add-ACPI-support-for-DPAA2-MAC-driver/20200625-123653
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 147373d968f1c1b5d6bb71e4e8b7495eeb9cdcae
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c: In function 'dpaa2_mac_get_node':
>> drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c:52:13: error: implicit declaration of function 'acpi_evaluate_integer'; did you mean 'acpi_evaluate_object'? [-Werror=implicit-function-declaration]
52 | status = acpi_evaluate_integer(ACPI_HANDLE_FWNODE(dpmac),
| ^~~~~~~~~~~~~~~~~~~~~
| acpi_evaluate_object
cc1: some warnings being treated as errors
vim +52 drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c
26
27 /* Caller must call of_node_put on the returned value */
28 static struct fwnode_handle *dpaa2_mac_get_node(struct device *dev,
29 u16 dpmac_id)
30 {
31 struct fwnode_handle *dpmacs, *dpmac = NULL;
32 unsigned long long adr;
33 acpi_status status;
34 int err;
35 u32 id;
36
37 if (is_of_node(dev->parent->fwnode)) {
38 dpmacs = device_get_named_child_node(dev->parent, "dpmacs");
39 if (!dpmacs)
40 return NULL;
41
42 while ((dpmac = fwnode_get_next_child_node(dpmacs, dpmac))) {
43 err = fwnode_property_read_u32(dpmac, "reg", &id);
44 if (err)
45 continue;
46 if (id == dpmac_id)
47 return dpmac;
48 }
49
50 } else if (is_acpi_node(dev->parent->fwnode)) {
51 device_for_each_child_node(dev->parent, dpmac) {
> 52 status = acpi_evaluate_integer(ACPI_HANDLE_FWNODE(dpmac),
53 "_ADR", NULL, &adr);
54 if (ACPI_FAILURE(status)) {
55 dev_info(dev, "_ADR returned status 0x%x\n", status);
56 continue;
57 } else {
58 id = (u32)adr;
59 if (id == dpmac_id)
60 return dpmac;
61 }
62 }
63 }
64 return NULL;
65 }
66
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 69759 bytes --]
next prev parent reply other threads:[~2020-06-25 11:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-25 4:35 [net-next PATCH v1] net: dpaa2-mac: Add ACPI support for DPAA2 MAC driver Calvin Johnson
2020-06-25 7:59 ` Ioana Ciornei
2020-06-25 9:46 ` Calvin Johnson
2020-06-25 11:05 ` kernel test robot [this message]
2020-06-25 19:29 ` Andy Shevchenko
2020-06-29 11:40 ` Calvin Johnson
2020-06-25 19:42 ` Andrew Lunn
2020-06-26 13:20 ` Calvin Johnson
2020-06-26 13:39 ` Andrew Lunn
2020-06-26 14:02 ` Calvin Johnson
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=202006251802.jt5kabG7%lkp@intel.com \
--to=lkp@intel.com \
--cc=andrew@lunn.ch \
--cc=andy.shevchenko@gmail.com \
--cc=calvin.johnson@oss.nxp.com \
--cc=cristian.sovaiala@nxp.com \
--cc=f.fainelli@gmail.com \
--cc=ioana.ciornei@nxp.com \
--cc=jeremy.linton@arm.com \
--cc=jon@solid-run.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=madalin.bucur@oss.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