Netdev Archive on lore.kernel.org
help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Dongdong Liu <liudongdong3@huawei.com>,
helgaas@kernel.org, hch@infradead.org, kw@linux.com,
logang@deltatee.com, linux-pci@vger.kernel.org,
rajur@chelsio.com, hverkuil-cisco@xs4all.nl
Cc: clang-built-linux@googlegroups.com, kbuild-all@lists.01.org,
linux-media@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: [PATCH V6 7/8] PCI: Add "pci=disable_10bit_tag=" parameter for peer-to-peer support
Date: Sat, 24 Jul 2021 00:58:39 +0800 [thread overview]
Message-ID: <202107240055.m4UVeYyu-lkp@intel.com> (raw)
In-Reply-To: <1627038402-114183-8-git-send-email-liudongdong3@huawei.com>
[-- Attachment #1: Type: text/plain, Size: 6758 bytes --]
Hi Dongdong,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on pci/next]
[also build test WARNING on linuxtv-media/master linus/master v5.14-rc2 next-20210723]
[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/Dongdong-Liu/PCI-Enable-10-Bit-tag-support-for-PCIe-devices/20210723-190930
base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next
config: x86_64-randconfig-b001-20210723 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 9625ca5b602616b2f5584e8a49ba93c52c141e40)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/0day-ci/linux/commit/2ff0b803971a3df5815c96c5c4874f4eef64fa2f
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Dongdong-Liu/PCI-Enable-10-Bit-tag-support-for-PCIe-devices/20210723-190930
git checkout 2ff0b803971a3df5815c96c5c4874f4eef64fa2f
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/pci/
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/pci.c:6618:34: error: expected identifier
pcie_capability_clear_word(dev, PCI_EXP_DEVCTL2,
^
include/uapi/linux/pci_regs.h:657:26: note: expanded from macro 'PCI_EXP_DEVCTL2'
#define PCI_EXP_DEVCTL2 40 /* Device Control 2 */
^
>> drivers/pci/pci.c:6618:2: warning: declaration specifier missing, defaulting to 'int'
pcie_capability_clear_word(dev, PCI_EXP_DEVCTL2,
^
int
drivers/pci/pci.c:6618:28: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
pcie_capability_clear_word(dev, PCI_EXP_DEVCTL2,
^
drivers/pci/pci.c:6618:2: error: conflicting types for 'pcie_capability_clear_word'
pcie_capability_clear_word(dev, PCI_EXP_DEVCTL2,
^
include/linux/pci.h:1161:19: note: previous definition is here
static inline int pcie_capability_clear_word(struct pci_dev *dev, int pos,
^
drivers/pci/pci.c:6621:2: error: expected parameter declarator
pci_info(dev, "disabled 10-Bit Tag Requester\n");
^
include/linux/pci.h:2472:46: note: expanded from macro 'pci_info'
#define pci_info(pdev, fmt, arg...) dev_info(&(pdev)->dev, fmt, ##arg)
^
drivers/pci/pci.c:6621:2: error: expected ')'
include/linux/pci.h:2472:46: note: expanded from macro 'pci_info'
#define pci_info(pdev, fmt, arg...) dev_info(&(pdev)->dev, fmt, ##arg)
^
drivers/pci/pci.c:6621:2: note: to match this '('
include/linux/pci.h:2472:37: note: expanded from macro 'pci_info'
#define pci_info(pdev, fmt, arg...) dev_info(&(pdev)->dev, fmt, ##arg)
^
include/linux/dev_printk.h:118:11: note: expanded from macro 'dev_info'
_dev_info(dev, dev_fmt(fmt), ##__VA_ARGS__)
^
drivers/pci/pci.c:6621:2: warning: declaration specifier missing, defaulting to 'int'
pci_info(dev, "disabled 10-Bit Tag Requester\n");
^
int
include/linux/pci.h:2472:37: note: expanded from macro 'pci_info'
#define pci_info(pdev, fmt, arg...) dev_info(&(pdev)->dev, fmt, ##arg)
^
include/linux/dev_printk.h:118:2: note: expanded from macro 'dev_info'
_dev_info(dev, dev_fmt(fmt), ##__VA_ARGS__)
^
drivers/pci/pci.c:6621:2: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
include/linux/pci.h:2472:37: note: expanded from macro 'pci_info'
#define pci_info(pdev, fmt, arg...) dev_info(&(pdev)->dev, fmt, ##arg)
^
include/linux/dev_printk.h:118:11: note: expanded from macro 'dev_info'
_dev_info(dev, dev_fmt(fmt), ##__VA_ARGS__)
^
drivers/pci/pci.c:6621:2: error: conflicting types for '_dev_info'
include/linux/pci.h:2472:37: note: expanded from macro 'pci_info'
#define pci_info(pdev, fmt, arg...) dev_info(&(pdev)->dev, fmt, ##arg)
^
include/linux/dev_printk.h:118:2: note: expanded from macro 'dev_info'
_dev_info(dev, dev_fmt(fmt), ##__VA_ARGS__)
^
include/linux/dev_printk.h:56:6: note: previous declaration is here
void _dev_info(const struct device *dev, const char *fmt, ...);
^
drivers/pci/pci.c:6622:1: error: extraneous closing brace ('}')
}
^
2 warnings and 8 errors generated.
vim +/int +6618 drivers/pci/pci.c
6580
6581 if (!disable_10bit_tag_param)
6582 return;
6583
6584 p = disable_10bit_tag_param;
6585 while (*p) {
6586 ret = pci_dev_str_match(dev, p, &p);
6587 if (ret < 0) {
6588 pr_info_once("PCI: Can't parse disable_10bit_tag parameter: %s\n",
6589 disable_10bit_tag_param);
6590
6591 break;
6592 } else if (ret == 1) {
6593 /* Found a match */
6594 break;
6595 }
6596
6597 if (*p != ';' && *p != ',') {
6598 /* End of param or invalid format */
6599 break;
6600 }
6601 p++;
6602 }
6603
6604 if (ret != 1)
6605 return;
6606
6607 #ifdef CONFIG_PCI_IOV
6608 if (dev->is_virtfn) {
6609 iov = dev->physfn->sriov;
6610 iov->ctrl &= ~PCI_SRIOV_CTRL_VF_10BIT_TAG_REQ_EN;
6611 pci_write_config_word(dev, iov->pos + PCI_SRIOV_CTRL,
6612 iov->ctrl);
6613 pci_info(dev, "disabled PF SRIOV 10-Bit Tag Requester\n");
6614 return;
6615 #endif
6616 }
6617
> 6618 pcie_capability_clear_word(dev, PCI_EXP_DEVCTL2,
6619 PCI_EXP_DEVCTL2_10BIT_TAG_REQ_EN);
6620
6621 pci_info(dev, "disabled 10-Bit Tag Requester\n");
6622 }
6623
---
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: 28923 bytes --]
next prev parent reply other threads:[~2021-07-23 16:59 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-23 11:06 [PATCH V6 0/8] PCI: Enable 10-Bit tag support for PCIe devices Dongdong Liu
2021-07-23 11:06 ` [PATCH V6 1/8] PCI: Use cached Device Capabilities Register Dongdong Liu
2021-07-23 11:06 ` [PATCH V6 2/8] PCI: Use cached Device Capabilities 2 Register Dongdong Liu
2021-07-23 11:06 ` [PATCH V6 3/8] PCI: Add 10-Bit Tag register definitions Dongdong Liu
2021-07-23 11:06 ` [PATCH V6 4/8] PCI: Enable 10-Bit tag support for PCIe Endpoint devices Dongdong Liu
2021-07-23 11:06 ` [PATCH V6 5/8] PCI/IOV: Enable 10-Bit tag support for PCIe VF devices Dongdong Liu
2021-07-23 11:06 ` [PATCH V6 6/8] PCI: Enable 10-Bit tag support for PCIe RP devices Dongdong Liu
2021-07-23 11:06 ` [PATCH V6 7/8] PCI: Add "pci=disable_10bit_tag=" parameter for peer-to-peer support Dongdong Liu
2021-07-23 11:32 ` Leon Romanovsky
2021-07-23 16:20 ` Logan Gunthorpe
2021-07-25 6:39 ` Leon Romanovsky
2021-07-26 15:48 ` Logan Gunthorpe
2021-07-27 11:05 ` Leon Romanovsky
2021-07-27 14:30 ` Dongdong Liu
2021-07-27 15:41 ` Leon Romanovsky
2021-07-27 14:00 ` Dongdong Liu
2021-07-23 16:58 ` kernel test robot [this message]
2021-07-24 10:35 ` Dongdong Liu
2021-07-23 11:06 ` [PATCH V6 8/8] PCI/P2PDMA: Add a 10-bit tag check in P2PDMA Dongdong Liu
2021-07-23 16:25 ` Logan Gunthorpe
2021-07-24 10:36 ` Dongdong Liu
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=202107240055.m4UVeYyu-lkp@intel.com \
--to=lkp@intel.com \
--cc=clang-built-linux@googlegroups.com \
--cc=hch@infradead.org \
--cc=helgaas@kernel.org \
--cc=hverkuil-cisco@xs4all.nl \
--cc=kbuild-all@lists.01.org \
--cc=kw@linux.com \
--cc=linux-media@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=liudongdong3@huawei.com \
--cc=logang@deltatee.com \
--cc=netdev@vger.kernel.org \
--cc=rajur@chelsio.com \
--subject='Re: [PATCH V6 7/8] PCI: Add "pci=disable_10bit_tag=" parameter for peer-to-peer support' \
/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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).