oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Rick Wertenbroek <rick.wertenbroek@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev, 0day robot <lkp@intel.com>
Subject: drivers/pci/controller/pcie-rockchip-ep.c:302:13: error: 'mmc' undeclared
Date: Thu, 16 Mar 2023 11:14:26 +0800	[thread overview]
Message-ID: <202303161101.V2flmDMS-lkp@intel.com> (raw)

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

                 reply	other threads:[~2023-03-16  3:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202303161101.V2flmDMS-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=rick.wertenbroek@gmail.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 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).