* drivers/pci/controller/pcie-rockchip-ep.c:302:13: error: 'mmc' undeclared
@ 2023-03-16 3:14 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-16 3:14 UTC (permalink / raw)
To: Rick Wertenbroek; +Cc: oe-kbuild-all, 0day robot
tree: https://github.com/intel-lab-lkp/linux/commits/Damien-Le-Moal/PCI-endpoint-Automatically-create-a-function-specific-attributes-group/20230308-170657
head: 7b6ed26025e4f5d5c353ad7f4f06e1c58643ceb1
commit: f87a7257008e97aba171ff131f59060d9b7f7e87 PCI: rockchip: Add parameter check for RK3399 PCIe endpoint core set_msi()
date: 8 days ago
config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20230316/202303161101.V2flmDMS-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.1.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/intel-lab-lkp/linux/commit/f87a7257008e97aba171ff131f59060d9b7f7e87
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Damien-Le-Moal/PCI-endpoint-Automatically-create-a-function-specific-attributes-group/20230308-170657
git checkout f87a7257008e97aba171ff131f59060d9b7f7e87
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303161101.V2flmDMS-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/pci/controller/pcie-rockchip-ep.c: In function 'rockchip_pcie_ep_set_msi':
>> drivers/pci/controller/pcie-rockchip-ep.c:302:13: error: 'mmc' undeclared (first use in this function)
302 | if (mmc > 0x5) {
| ^~~
drivers/pci/controller/pcie-rockchip-ep.c:302:13: note: each undeclared identifier is reported only once for each function it appears in
drivers/pci/controller/pcie-rockchip-ep.c: In function 'rockchip_pcie_ep_probe':
drivers/pci/controller/pcie-rockchip-ep.c:543:13: warning: unused variable 'cfg' [-Wunused-variable]
543 | u32 cfg;
| ^~~
vim +/mmc +302 drivers/pci/controller/pcie-rockchip-ep.c
289
290 static int rockchip_pcie_ep_set_msi(struct pci_epc *epc, u8 fn, u8 vfn,
291 u8 multi_msg_cap)
292 {
293 struct rockchip_pcie_ep *ep = epc_get_drvdata(epc);
294 struct rockchip_pcie *rockchip = &ep->rockchip;
295 u32 flags;
296
297 if (fn) {
298 dev_err(&epc->dev, "This endpoint controller only supports a single physical function\n");
299 return -EINVAL;
300 }
301
> 302 if (mmc > 0x5) {
303 dev_err(&epc->dev, "Number of MSI IRQs cannot be more than 32\n");
304 return -EINVAL;
305 }
306
307 flags = rockchip_pcie_read(rockchip,
308 ROCKCHIP_PCIE_EP_FUNC_BASE(fn) +
309 ROCKCHIP_PCIE_EP_MSI_CTRL_REG);
310 flags &= ~ROCKCHIP_PCIE_EP_MSI_CTRL_MMC_MASK;
311 flags |=
312 (multi_msg_cap << ROCKCHIP_PCIE_EP_MSI_CTRL_MMC_OFFSET) |
313 (PCI_MSI_FLAGS_64BIT << ROCKCHIP_PCIE_EP_MSI_FLAGS_OFFSET);
314 flags &= ~ROCKCHIP_PCIE_EP_MSI_CTRL_MASK_MSI_CAP;
315 rockchip_pcie_write(rockchip, flags,
316 ROCKCHIP_PCIE_EP_FUNC_BASE(fn) +
317 ROCKCHIP_PCIE_EP_MSI_CTRL_REG);
318 return 0;
319 }
320
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-16 3:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-16 3:14 drivers/pci/controller/pcie-rockchip-ep.c:302:13: error: 'mmc' undeclared kernel test robot
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).