From: kernel test robot <lkp@intel.com>
To: Mauro Carvalho Chehab <mchehab@kernel.org>,
Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-media@vger.kernel.org, linuxarm@huawei.com,
mauro.chehab@huawei.com,
"Mauro Carvalho Chehab" <mchehab@kernel.org>,
"Krzysztof Wilczyński" <kw@linux.com>,
Songxiaowei <songxiaowei@hisilicon.com>,
"Binghui Wang" <wangbinghui@hisilicon.com>,
"Bjorn Helgaas" <helgaas@kernel.org>,
"Rob Herring" <robh@kernel.org>
Subject: Re: [PATCH v13 02/10] PCI: kirin: Add support for a PHY layer
Date: Tue, 19 Oct 2021 02:48:22 +0800 [thread overview]
Message-ID: <202110190238.3zisUALG-lkp@intel.com> (raw)
In-Reply-To: <a71b60d2c35ba9c2c5398380bc8ad5533e8160f1.1634539769.git.mchehab+huawei@kernel.org>
[-- Attachment #1: Type: text/plain, Size: 3492 bytes --]
Hi Mauro,
I love your patch! Perhaps something to improve:
[auto build test WARNING on helgaas-pci/next]
[also build test WARNING on v5.15-rc6 next-20211018]
[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/Mauro-Carvalho-Chehab/Add-support-for-Hikey-970-PCIe/20211018-150945
base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next
config: arm64-randconfig-r004-20211017 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d245f2e8597bfb52c34810a328d42b990e4af1a4)
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
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/0day-ci/linux/commit/203dfb8c88a9a2b502b9e1db644565559e028cf2
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Mauro-Carvalho-Chehab/Add-support-for-Hikey-970-PCIe/20211018-150945
git checkout 203dfb8c88a9a2b502b9e1db644565559e028cf2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64
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/pci/controller/dwc/pcie-kirin.c:561:13: warning: cast to smaller integer type 'enum pcie_kirin_phy_type' from 'const void *' [-Wvoid-pointer-to-enum-cast]
phy_type = (enum pcie_kirin_phy_type)of_id->data;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +561 drivers/pci/controller/dwc/pcie-kirin.c
540
541 static int kirin_pcie_probe(struct platform_device *pdev)
542 {
543 enum pcie_kirin_phy_type phy_type;
544 const struct of_device_id *of_id;
545 struct device *dev = &pdev->dev;
546 struct kirin_pcie *kirin_pcie;
547 struct dw_pcie *pci;
548 int ret;
549
550 if (!dev->of_node) {
551 dev_err(dev, "NULL node\n");
552 return -EINVAL;
553 }
554
555 of_id = of_match_device(kirin_pcie_match, dev);
556 if (!of_id) {
557 dev_err(dev, "OF data missing\n");
558 return -EINVAL;
559 }
560
> 561 phy_type = (enum pcie_kirin_phy_type)of_id->data;
562
563 kirin_pcie = devm_kzalloc(dev, sizeof(struct kirin_pcie), GFP_KERNEL);
564 if (!kirin_pcie)
565 return -ENOMEM;
566
567 pci = devm_kzalloc(dev, sizeof(*pci), GFP_KERNEL);
568 if (!pci)
569 return -ENOMEM;
570
571 pci->dev = dev;
572 pci->ops = &kirin_dw_pcie_ops;
573 pci->pp.ops = &kirin_pcie_host_ops;
574 kirin_pcie->pci = pci;
575 kirin_pcie->type = phy_type;
576
577 ret = kirin_pcie_get_resource(kirin_pcie, pdev);
578 if (ret)
579 return ret;
580
581 platform_set_drvdata(pdev, kirin_pcie);
582
583 ret = kirin_pcie_power_on(pdev, kirin_pcie);
584 if (ret)
585 return ret;
586
587 return dw_pcie_host_init(&pci->pp);
588 }
589
---
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: 43417 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 v13 02/10] PCI: kirin: Add support for a PHY layer
Date: Tue, 19 Oct 2021 02:48:22 +0800 [thread overview]
Message-ID: <202110190238.3zisUALG-lkp@intel.com> (raw)
In-Reply-To: <a71b60d2c35ba9c2c5398380bc8ad5533e8160f1.1634539769.git.mchehab+huawei@kernel.org>
[-- Attachment #1: Type: text/plain, Size: 3587 bytes --]
Hi Mauro,
I love your patch! Perhaps something to improve:
[auto build test WARNING on helgaas-pci/next]
[also build test WARNING on v5.15-rc6 next-20211018]
[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/Mauro-Carvalho-Chehab/Add-support-for-Hikey-970-PCIe/20211018-150945
base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next
config: arm64-randconfig-r004-20211017 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d245f2e8597bfb52c34810a328d42b990e4af1a4)
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
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/0day-ci/linux/commit/203dfb8c88a9a2b502b9e1db644565559e028cf2
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Mauro-Carvalho-Chehab/Add-support-for-Hikey-970-PCIe/20211018-150945
git checkout 203dfb8c88a9a2b502b9e1db644565559e028cf2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64
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/pci/controller/dwc/pcie-kirin.c:561:13: warning: cast to smaller integer type 'enum pcie_kirin_phy_type' from 'const void *' [-Wvoid-pointer-to-enum-cast]
phy_type = (enum pcie_kirin_phy_type)of_id->data;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +561 drivers/pci/controller/dwc/pcie-kirin.c
540
541 static int kirin_pcie_probe(struct platform_device *pdev)
542 {
543 enum pcie_kirin_phy_type phy_type;
544 const struct of_device_id *of_id;
545 struct device *dev = &pdev->dev;
546 struct kirin_pcie *kirin_pcie;
547 struct dw_pcie *pci;
548 int ret;
549
550 if (!dev->of_node) {
551 dev_err(dev, "NULL node\n");
552 return -EINVAL;
553 }
554
555 of_id = of_match_device(kirin_pcie_match, dev);
556 if (!of_id) {
557 dev_err(dev, "OF data missing\n");
558 return -EINVAL;
559 }
560
> 561 phy_type = (enum pcie_kirin_phy_type)of_id->data;
562
563 kirin_pcie = devm_kzalloc(dev, sizeof(struct kirin_pcie), GFP_KERNEL);
564 if (!kirin_pcie)
565 return -ENOMEM;
566
567 pci = devm_kzalloc(dev, sizeof(*pci), GFP_KERNEL);
568 if (!pci)
569 return -ENOMEM;
570
571 pci->dev = dev;
572 pci->ops = &kirin_dw_pcie_ops;
573 pci->pp.ops = &kirin_pcie_host_ops;
574 kirin_pcie->pci = pci;
575 kirin_pcie->type = phy_type;
576
577 ret = kirin_pcie_get_resource(kirin_pcie, pdev);
578 if (ret)
579 return ret;
580
581 platform_set_drvdata(pdev, kirin_pcie);
582
583 ret = kirin_pcie_power_on(pdev, kirin_pcie);
584 if (ret)
585 return ret;
586
587 return dw_pcie_host_init(&pci->pp);
588 }
589
---
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: 43417 bytes --]
next prev parent reply other threads:[~2021-10-18 18:49 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-18 7:07 [PATCH v13 00/10] Add support for Hikey 970 PCIe Mauro Carvalho Chehab
2021-10-18 7:07 ` [PATCH v13 01/10] PCI: kirin: Reorganize the PHY logic inside the driver Mauro Carvalho Chehab
2021-10-18 10:11 ` Lorenzo Pieralisi
2021-10-18 7:07 ` [PATCH v13 02/10] PCI: kirin: Add support for a PHY layer Mauro Carvalho Chehab
2021-10-18 10:02 ` Lorenzo Pieralisi
2021-10-18 18:48 ` kernel test robot [this message]
2021-10-18 18:48 ` kernel test robot
2021-10-18 7:07 ` [PATCH v13 03/10] PCI: kirin: Use regmap for APB registers Mauro Carvalho Chehab
2021-10-18 7:07 ` [PATCH v13 04/10] PCI: kirin: Add support for bridge slot DT schema Mauro Carvalho Chehab
2021-10-18 9:56 ` Lorenzo Pieralisi
2021-10-18 7:07 ` [PATCH v13 05/10] PCI: kirin: Add Kirin 970 compatible Mauro Carvalho Chehab
2021-10-18 7:07 ` [PATCH v13 06/10] PCI: kirin: Add MODULE_* macros Mauro Carvalho Chehab
2021-10-18 7:07 ` [PATCH v13 07/10] PCI: kirin: Allow building it as a module Mauro Carvalho Chehab
2021-10-18 7:07 ` [PATCH v13 08/10] PCI: kirin: Add power_off support for Kirin 960 PHY Mauro Carvalho Chehab
2021-10-18 7:07 ` [PATCH v13 09/10] PCI: kirin: fix poweroff sequence Mauro Carvalho Chehab
2021-10-18 10:21 ` Lorenzo Pieralisi
2021-10-18 14:37 ` Mauro Carvalho Chehab
2021-10-19 9:40 ` Lorenzo Pieralisi
2021-10-21 10:09 ` Lorenzo Pieralisi
2021-10-18 7:07 ` [PATCH v13 10/10] PCI: kirin: Allow removing the driver Mauro Carvalho Chehab
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=202110190238.3zisUALG-lkp@intel.com \
--to=lkp@intel.com \
--cc=helgaas@kernel.org \
--cc=kbuild-all@lists.01.org \
--cc=kw@linux.com \
--cc=linux-media@vger.kernel.org \
--cc=linuxarm@huawei.com \
--cc=llvm@lists.linux.dev \
--cc=lorenzo.pieralisi@arm.com \
--cc=mauro.chehab@huawei.com \
--cc=mchehab@kernel.org \
--cc=robh@kernel.org \
--cc=songxiaowei@hisilicon.com \
--cc=wangbinghui@hisilicon.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 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.