From: kernel test robot <lkp@intel.com>
To: Heikki Krogerus <heikki.krogerus@linux.intel.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: kbuild-all@lists.01.org, "Rafael J. Wysocki" <rafael@kernel.org>,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
Felipe Balbi <balbi@kernel.org>,
Mathias Nyman <mathias.nyman@intel.com>,
linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org
Subject: Re: [PATCH 4/6] usb: dwc3: qcom: Constify the software node
Date: Wed, 3 Feb 2021 00:40:36 +0800 [thread overview]
Message-ID: <202102030012.V0E763X8-lkp@intel.com> (raw)
In-Reply-To: <20210202125032.64982-5-heikki.krogerus@linux.intel.com>
[-- Attachment #1: Type: text/plain, Size: 4834 bytes --]
Hi Heikki,
I love your patch! Yet something to improve:
[auto build test ERROR on usb/usb-testing]
[also build test ERROR on next-20210125]
[cannot apply to balbi-usb/testing/next char-misc/char-misc-testing v5.11-rc6]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Heikki-Krogerus/usb-Handle-device-properties-with-software-node-API/20210202-205900
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-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
# https://github.com/0day-ci/linux/commit/ca804315a8e0060b2be65411c7d32cbf4396a030
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Heikki-Krogerus/usb-Handle-device-properties-with-software-node-API/20210202-205900
git checkout ca804315a8e0060b2be65411c7d32cbf4396a030
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
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/usb/dwc3/dwc3-qcom.c: In function 'dwc3_qcom_acpi_register_core':
>> drivers/usb/dwc3/dwc3-qcom.c:620:51: error: incompatible type for argument 2 of 'device_add_software_node'
620 | ret = device_add_software_node(&qcom->dwc3->dev, dwc3_qcom_swnode);
| ^~~~~~~~~~~~~~~~
| |
| const struct software_node
In file included from include/linux/of.h:22,
from include/linux/irqdomain.h:35,
from include/linux/acpi.h:13,
from drivers/usb/dwc3/dwc3-qcom.c:7:
include/linux/property.h:491:78: note: expected 'const struct software_node *' but argument is of type 'const struct software_node'
491 | int device_add_software_node(struct device *dev, const struct software_node *swnode);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
vim +/device_add_software_node +620 drivers/usb/dwc3/dwc3-qcom.c
573
574 static int dwc3_qcom_acpi_register_core(struct platform_device *pdev)
575 {
576 struct dwc3_qcom *qcom = platform_get_drvdata(pdev);
577 struct device *dev = &pdev->dev;
578 struct resource *res, *child_res = NULL;
579 struct platform_device *pdev_irq = qcom->urs_usb ? qcom->urs_usb :
580 pdev;
581 int irq;
582 int ret;
583
584 qcom->dwc3 = platform_device_alloc("dwc3", PLATFORM_DEVID_AUTO);
585 if (!qcom->dwc3)
586 return -ENOMEM;
587
588 qcom->dwc3->dev.parent = dev;
589 qcom->dwc3->dev.type = dev->type;
590 qcom->dwc3->dev.dma_mask = dev->dma_mask;
591 qcom->dwc3->dev.dma_parms = dev->dma_parms;
592 qcom->dwc3->dev.coherent_dma_mask = dev->coherent_dma_mask;
593
594 child_res = kcalloc(2, sizeof(*child_res), GFP_KERNEL);
595 if (!child_res)
596 return -ENOMEM;
597
598 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
599 if (!res) {
600 dev_err(&pdev->dev, "failed to get memory resource\n");
601 ret = -ENODEV;
602 goto out;
603 }
604
605 child_res[0].flags = res->flags;
606 child_res[0].start = res->start;
607 child_res[0].end = child_res[0].start +
608 qcom->acpi_pdata->dwc3_core_base_size;
609
610 irq = platform_get_irq(pdev_irq, 0);
611 child_res[1].flags = IORESOURCE_IRQ;
612 child_res[1].start = child_res[1].end = irq;
613
614 ret = platform_device_add_resources(qcom->dwc3, child_res, 2);
615 if (ret) {
616 dev_err(&pdev->dev, "failed to add resources\n");
617 goto out;
618 }
619
> 620 ret = device_add_software_node(&qcom->dwc3->dev, dwc3_qcom_swnode);
621 if (ret < 0) {
622 dev_err(&pdev->dev, "failed to add properties\n");
623 goto out;
624 }
625
626 ret = platform_device_add(qcom->dwc3);
627 if (ret) {
628 dev_err(&pdev->dev, "failed to add device\n");
629 device_remove_software_node(&qcom->dwc3->dev);
630 }
631
632 out:
633 kfree(child_res);
634 return ret;
635 }
636
---
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: 54166 bytes --]
next prev parent reply other threads:[~2021-02-02 16:45 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-02 12:50 [PATCH 0/6] usb: Handle device properties with software node API Heikki Krogerus
2021-02-02 12:50 ` [PATCH 1/6] software node: Provide replacement for device_add_properties() Heikki Krogerus
2021-02-02 14:44 ` Rafael J. Wysocki
2021-02-02 15:01 ` Heikki Krogerus
2021-02-02 16:08 ` Rafael J. Wysocki
2021-02-03 9:45 ` Heikki Krogerus
2021-02-03 13:50 ` Rafael J. Wysocki
2021-02-03 14:26 ` Heikki Krogerus
2021-02-03 14:39 ` Rafael J. Wysocki
2021-02-03 14:51 ` Heikki Krogerus
2021-02-02 12:50 ` [PATCH 2/6] usb: dwc2: pci: Drop the empty quirk function Heikki Krogerus
2021-02-02 12:50 ` [PATCH 3/6] usb: dwc3: haps: Constify the software node Heikki Krogerus
2021-02-02 16:45 ` kernel test robot
2021-02-02 19:27 ` kernel test robot
2021-02-02 12:50 ` [PATCH 4/6] usb: dwc3: qcom: " Heikki Krogerus
2021-02-02 16:40 ` kernel test robot [this message]
2021-02-02 16:54 ` kernel test robot
2021-02-02 12:50 ` [PATCH 5/6] usb: dwc3: host: Use software node API with the properties Heikki Krogerus
2021-02-02 12:50 ` [PATCH 6/6] xhci: ext-caps: " Heikki Krogerus
2021-02-02 13:53 ` Hans de Goede
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=202102030012.V0E763X8-lkp@intel.com \
--to=lkp@intel.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=balbi@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=heikki.krogerus@linux.intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mathias.nyman@intel.com \
--cc=rafael@kernel.org \
/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