From: kernel test robot <lkp@intel.com>
To: Matthias Kaehlcke <mka@chromium.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Alan Stern <stern@rowland.harvard.edu>,
Rob Herring <robh+dt@kernel.org>,
Frank Rowand <frowand.list@gmail.com>,
Mathias Nyman <mathias.nyman@intel.com>
Cc: kbuild-all@lists.01.org, Michal Simek <monstr@monstr.eu>,
Ravi Chandra Sadineni <ravisadineni@chromium.org>,
linux-usb@vger.kernel.org, Bastien Nocera <hadess@hadess.net>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v11 2/5] USB: misc: Add onboard_usb_hub driver
Date: Sat, 5 Jun 2021 07:18:38 +0800 [thread overview]
Message-ID: <202106050751.uNo0uAEm-lkp@intel.com> (raw)
In-Reply-To: <20210604144027.v11.2.I7c9a1f1d6ced41dd8310e8a03da666a32364e790@changeid>
[-- Attachment #1: Type: text/plain, Size: 4550 bytes --]
Hi Matthias,
I love your patch! Perhaps something to improve:
[auto build test WARNING on next-20210604]
[also build test WARNING on v5.13-rc4]
[cannot apply to usb/usb-testing robh/for-next char-misc/char-misc-testing driver-core/driver-core-testing linus/master v5.13-rc4 v5.13-rc3 v5.13-rc2]
[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/Matthias-Kaehlcke/USB-misc-Add-onboard_usb_hub-driver/20210605-054213
base: ccc252d2e818f6a479441119ad453c3ce7c7c461
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-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/7107f99a12058b7147342c6f763d026102bd6606
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Matthias-Kaehlcke/USB-misc-Add-onboard_usb_hub-driver/20210605-054213
git checkout 7107f99a12058b7147342c6f763d026102bd6606
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/usb/misc/onboard_usb_hub.c:400:6: warning: no previous prototype for 'onboard_hub_create_pdevs' [-Wmissing-prototypes]
400 | void onboard_hub_create_pdevs(struct usb_device *parent_hub, struct list_head *pdev_list)
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/usb/misc/onboard_usb_hub.c:458:6: warning: no previous prototype for 'onboard_hub_destroy_pdevs' [-Wmissing-prototypes]
458 | void onboard_hub_destroy_pdevs(struct list_head *pdev_list)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
vim +/onboard_hub_create_pdevs +400 drivers/usb/misc/onboard_usb_hub.c
394
395 /*
396 * Creates a platform device for each supported onboard hub that is connected to
397 * the given parent hub. To keep track of the platform devices they are added to
398 * a list that is owned by the parent hub.
399 */
> 400 void onboard_hub_create_pdevs(struct usb_device *parent_hub, struct list_head *pdev_list)
401 {
402 int i;
403 phandle ph;
404 struct device_node *np, *npc;
405 struct platform_device *pdev;
406 struct pdev_list_entry *pdle;
407
408 for (i = 1; i <= parent_hub->maxchild; i++) {
409 np = usb_of_get_device_node(parent_hub, i);
410 if (!np)
411 continue;
412
413 if (!of_is_onboard_usb_hub(np))
414 goto node_put;
415
416 if (of_property_read_u32(np, "companion-hub", &ph))
417 goto node_put;
418
419 npc = of_find_node_by_phandle(ph);
420 if (!npc)
421 goto node_put;
422
423 pdev = of_find_device_by_node(npc);
424 of_node_put(npc);
425
426 if (pdev) {
427 /* the companion hub already has a platform device, nothing to do here */
428 put_device(&pdev->dev);
429 goto node_put;
430 }
431
432 pdev = of_platform_device_create(np, NULL, &parent_hub->dev);
433 if (pdev) {
434 pdle = kzalloc(sizeof(*pdle), GFP_KERNEL);
435 if (!pdle)
436 goto node_put;
437
438 INIT_LIST_HEAD(&pdle->node);
439
440 pdle->pdev = pdev;
441 list_add(&pdle->node, pdev_list);
442 } else {
443 dev_err(&parent_hub->dev,
444 "failed to create platform device for onboard hub '%s'\n",
445 of_node_full_name(np));
446 }
447
448 node_put:
449 of_node_put(np);
450 }
451 }
452 EXPORT_SYMBOL_GPL(onboard_hub_create_pdevs);
453
454 /*
455 * Destroys the platform devices in the given list and frees the memory associated
456 * with the list entry.
457 */
> 458 void onboard_hub_destroy_pdevs(struct list_head *pdev_list)
459 {
460 struct pdev_list_entry *pdle, *tmp;
461
462 list_for_each_entry_safe(pdle, tmp, pdev_list, node) {
463 of_platform_device_destroy(&pdle->pdev->dev, NULL);
464 kfree(pdle);
465 }
466 }
467 EXPORT_SYMBOL_GPL(onboard_hub_destroy_pdevs);
468
---
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: 68462 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH v11 2/5] USB: misc: Add onboard_usb_hub driver
Date: Sat, 05 Jun 2021 07:18:38 +0800 [thread overview]
Message-ID: <202106050751.uNo0uAEm-lkp@intel.com> (raw)
In-Reply-To: <20210604144027.v11.2.I7c9a1f1d6ced41dd8310e8a03da666a32364e790@changeid>
[-- Attachment #1: Type: text/plain, Size: 4671 bytes --]
Hi Matthias,
I love your patch! Perhaps something to improve:
[auto build test WARNING on next-20210604]
[also build test WARNING on v5.13-rc4]
[cannot apply to usb/usb-testing robh/for-next char-misc/char-misc-testing driver-core/driver-core-testing linus/master v5.13-rc4 v5.13-rc3 v5.13-rc2]
[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/Matthias-Kaehlcke/USB-misc-Add-onboard_usb_hub-driver/20210605-054213
base: ccc252d2e818f6a479441119ad453c3ce7c7c461
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-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/7107f99a12058b7147342c6f763d026102bd6606
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Matthias-Kaehlcke/USB-misc-Add-onboard_usb_hub-driver/20210605-054213
git checkout 7107f99a12058b7147342c6f763d026102bd6606
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/usb/misc/onboard_usb_hub.c:400:6: warning: no previous prototype for 'onboard_hub_create_pdevs' [-Wmissing-prototypes]
400 | void onboard_hub_create_pdevs(struct usb_device *parent_hub, struct list_head *pdev_list)
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/usb/misc/onboard_usb_hub.c:458:6: warning: no previous prototype for 'onboard_hub_destroy_pdevs' [-Wmissing-prototypes]
458 | void onboard_hub_destroy_pdevs(struct list_head *pdev_list)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
vim +/onboard_hub_create_pdevs +400 drivers/usb/misc/onboard_usb_hub.c
394
395 /*
396 * Creates a platform device for each supported onboard hub that is connected to
397 * the given parent hub. To keep track of the platform devices they are added to
398 * a list that is owned by the parent hub.
399 */
> 400 void onboard_hub_create_pdevs(struct usb_device *parent_hub, struct list_head *pdev_list)
401 {
402 int i;
403 phandle ph;
404 struct device_node *np, *npc;
405 struct platform_device *pdev;
406 struct pdev_list_entry *pdle;
407
408 for (i = 1; i <= parent_hub->maxchild; i++) {
409 np = usb_of_get_device_node(parent_hub, i);
410 if (!np)
411 continue;
412
413 if (!of_is_onboard_usb_hub(np))
414 goto node_put;
415
416 if (of_property_read_u32(np, "companion-hub", &ph))
417 goto node_put;
418
419 npc = of_find_node_by_phandle(ph);
420 if (!npc)
421 goto node_put;
422
423 pdev = of_find_device_by_node(npc);
424 of_node_put(npc);
425
426 if (pdev) {
427 /* the companion hub already has a platform device, nothing to do here */
428 put_device(&pdev->dev);
429 goto node_put;
430 }
431
432 pdev = of_platform_device_create(np, NULL, &parent_hub->dev);
433 if (pdev) {
434 pdle = kzalloc(sizeof(*pdle), GFP_KERNEL);
435 if (!pdle)
436 goto node_put;
437
438 INIT_LIST_HEAD(&pdle->node);
439
440 pdle->pdev = pdev;
441 list_add(&pdle->node, pdev_list);
442 } else {
443 dev_err(&parent_hub->dev,
444 "failed to create platform device for onboard hub '%s'\n",
445 of_node_full_name(np));
446 }
447
448 node_put:
449 of_node_put(np);
450 }
451 }
452 EXPORT_SYMBOL_GPL(onboard_hub_create_pdevs);
453
454 /*
455 * Destroys the platform devices in the given list and frees the memory associated
456 * with the list entry.
457 */
> 458 void onboard_hub_destroy_pdevs(struct list_head *pdev_list)
459 {
460 struct pdev_list_entry *pdle, *tmp;
461
462 list_for_each_entry_safe(pdle, tmp, pdev_list, node) {
463 of_platform_device_destroy(&pdle->pdev->dev, NULL);
464 kfree(pdle);
465 }
466 }
467 EXPORT_SYMBOL_GPL(onboard_hub_destroy_pdevs);
468
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 68462 bytes --]
next prev parent reply other threads:[~2021-06-04 23:19 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-04 21:40 [PATCH v11 0/5] USB: misc: Add onboard_usb_hub driver Matthias Kaehlcke
2021-06-04 21:40 ` [PATCH v11 1/5] dt-bindings: usb: Add binding for Realtek RTS5411 hub controller Matthias Kaehlcke
2021-06-04 21:40 ` [PATCH v11 2/5] USB: misc: Add onboard_usb_hub driver Matthias Kaehlcke
2021-06-04 23:18 ` kernel test robot [this message]
2021-06-04 23:18 ` kernel test robot
2021-06-07 17:51 ` Matthias Kaehlcke
2021-06-07 17:51 ` Matthias Kaehlcke
2021-06-07 18:23 ` Greg Kroah-Hartman
2021-06-07 18:23 ` Greg Kroah-Hartman
2021-06-07 18:32 ` Matthias Kaehlcke
2021-06-07 18:32 ` Matthias Kaehlcke
2021-06-08 8:56 ` Greg Kroah-Hartman
2021-06-08 8:56 ` Greg Kroah-Hartman
2021-06-08 20:54 ` Matthias Kaehlcke
2021-06-08 20:54 ` Matthias Kaehlcke
2021-06-09 4:47 ` Greg Kroah-Hartman
2021-06-09 4:47 ` Greg Kroah-Hartman
2021-06-04 21:40 ` [PATCH v11 3/5] of/platform: Add stubs for of_platform_device_create/destroy() Matthias Kaehlcke
2021-06-04 21:41 ` [PATCH v11 4/5] usb: host: xhci-plat: Create platform device for onboard hubs in probe() Matthias Kaehlcke
2021-06-04 21:41 ` [PATCH v11 5/5] arm64: dts: qcom: sc7180-trogdor: Add nodes for onboard USB hub Matthias Kaehlcke
2021-06-05 7:01 ` [PATCH v11 0/5] USB: misc: Add onboard_usb_hub driver Greg Kroah-Hartman
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=202106050751.uNo0uAEm-lkp@intel.com \
--to=lkp@intel.com \
--cc=frowand.list@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=hadess@hadess.net \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mathias.nyman@intel.com \
--cc=mka@chromium.org \
--cc=monstr@monstr.eu \
--cc=ravisadineni@chromium.org \
--cc=robh+dt@kernel.org \
--cc=stern@rowland.harvard.edu \
/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.