Hi Qi,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on linus/master]
[also build test ERROR on v5.13-rc6 next-20210616]
[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/Qi-Liu/Add-support-for-Ultrasoc-...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
94f0b2d4a1d0c52035aef425da5e022bd2cb1c71
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/0day-ci/linux/commit/b5544dc3a2731c7be00b04a0d497f892d...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Qi-Liu/Add-support-for-Ultrasoc-Trace-Module/20210616-151905
git checkout b5544dc3a2731c7be00b04a0d497f892d56fc6aa
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/hwtracing/ultrasoc/ultrasoc-smb.c:37:
drivers/hwtracing/ultrasoc/ultrasoc-smb.h:172:5: warning: no previous prototype for
'etm_perf_add_symlink_sink' [-Wmissing-prototypes]
172 | int etm_perf_add_symlink_sink(struct coresight_device *csdev)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/hwtracing/ultrasoc/ultrasoc-smb.h:174:6: warning: no previous prototype for
'etm_perf_del_symlink_sink' [-Wmissing-prototypes]
174 | void etm_perf_del_symlink_sink(struct coresight_device *csdev) {}
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/hwtracing/ultrasoc/ultrasoc-smb.c: In function 'smb_register_sink':
> drivers/hwtracing/ultrasoc/ultrasoc-smb.c:552:14: error: implicit
declaration of function 'coresight_alloc_device_name'; did you mean
'coresight_claim_device'? [-Werror=implicit-function-declaration]
552 |
desc.name = coresight_alloc_device_name(&sink_devs, &pdev->dev);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| coresight_claim_device
drivers/hwtracing/ultrasoc/ultrasoc-smb.c:552:12: warning: assignment to 'const
char *' from 'int' makes pointer from integer without a cast
[-Wint-conversion]
552 | desc.name = coresight_alloc_device_name(&sink_devs, &pdev->dev);
| ^
cc1: some warnings being treated as errors
vim +552 drivers/hwtracing/ultrasoc/ultrasoc-smb.c
533
534 DEFINE_CORESIGHT_DEVLIST(sink_devs, "sink_smb");
535 static int smb_register_sink(struct platform_device *pdev,
536 struct smb_drv_data *drvdata)
537 {
538 struct coresight_platform_data *pdata = NULL;
539 struct coresight_desc desc = { 0 };
540 int ret;
541
542 pdata = coresight_get_platform_data(&pdev->dev);
543 if (IS_ERR(pdata))
544 return PTR_ERR(pdata);
545
546 drvdata->dev->platform_data = pdata;
547 desc.type = CORESIGHT_DEV_TYPE_SINK;
548 desc.subtype.sink_subtype = CORESIGHT_DEV_SUBTYPE_SINK_BUFFER;
549 desc.ops = &cs_ops;
550 desc.pdata = pdata;
551 desc.dev = &pdev->dev;
552 desc.name = coresight_alloc_device_name(&sink_devs,
&pdev->dev);
553 if (!desc.name) {
554 dev_err(&pdev->dev, "Failed to alloc coresight device name.");
555 return -ENOMEM;
556 }
557
558 drvdata->csdev = coresight_register(&desc);
559 if (IS_ERR(drvdata->csdev))
560 return PTR_ERR(drvdata->csdev);
561
562 drvdata->miscdev.name = desc.name;
563 drvdata->miscdev.minor = MISC_DYNAMIC_MINOR;
564 drvdata->miscdev.fops = &smb_fops;
565 ret = misc_register(&drvdata->miscdev);
566 if (ret) {
567 coresight_unregister(drvdata->csdev);
568 dev_err(&pdev->dev, "Failed to register misc, ret=%d\n", ret);
569 }
570
571 return ret;
572 }
573
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org