From: kernel test robot <lkp@intel.com>
To: "Alyssa Rosenzweig" <alyssa@rosenzweig.io>,
"Hector Martin" <marcan@marcan.st>,
"Sven Peter" <sven@svenpeter.dev>,
"Bjorn Helgaas" <helgaas@kernel.org>,
"Lorenzo Pieralisi" <lpieralisi@kernel.org>,
"Krzysztof Wilczyński" <kw@linux.com>,
"Manivannan Sadhasivam" <manivannan.sadhasivam@linaro.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Mark Kettenis" <kettenis@openbsd.org>,
"Marc Zyngier" <maz@kernel.org>,
"Stan Skowronek" <stan@corellium.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
linux-pci@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
Alyssa Rosenzweig <alyssa@rosenzweig.io>
Subject: Re: [PATCH 7/7] PCI: apple: Add T602x PCIe support
Date: Thu, 13 Feb 2025 12:16:58 +0800 [thread overview]
Message-ID: <202502131258.hhEIy45J-lkp@intel.com> (raw)
In-Reply-To: <20250211-pcie-t6-v1-7-b60e6d2501bb@rosenzweig.io>
Hi Alyssa,
kernel test robot noticed the following build errors:
[auto build test ERROR on 2014c95afecee3e76ca4a56956a936e23283f05b]
url: https://github.com/intel-lab-lkp/linux/commits/Alyssa-Rosenzweig/dt-bindings-pci-apple-pcie-Add-t6020-support/20250212-035900
base: 2014c95afecee3e76ca4a56956a936e23283f05b
patch link: https://lore.kernel.org/r/20250211-pcie-t6-v1-7-b60e6d2501bb%40rosenzweig.io
patch subject: [PATCH 7/7] PCI: apple: Add T602x PCIe support
config: s390-randconfig-002-20250213 (https://download.01.org/0day-ci/archive/20250213/202502131258.hhEIy45J-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project 6807164500e9920638e2ab0cdb4bf8321d24f8eb)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250213/202502131258.hhEIy45J-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202502131258.hhEIy45J-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/pci/controller/pcie-apple.c:467:19: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
467 | writel_relaxed(FIELD_PREP(PORT_MSIMAP_TARGET, i) |
| ^
1 error generated.
vim +/FIELD_PREP +467 drivers/pci/controller/pcie-apple.c
429
430 static int apple_pcie_port_setup_irq(struct apple_pcie_port *port)
431 {
432 struct fwnode_handle *fwnode = &port->np->fwnode;
433 struct apple_pcie *pcie = port->pcie;
434 unsigned int irq;
435
436 /* FIXME: consider moving each interrupt under each port */
437 irq = irq_of_parse_and_map(to_of_node(dev_fwnode(port->pcie->dev)),
438 port->idx);
439 if (!irq)
440 return -ENXIO;
441
442 port->domain = irq_domain_create_linear(fwnode, 32,
443 &apple_port_irq_domain_ops,
444 port);
445 if (!port->domain)
446 return -ENOMEM;
447
448 /* Disable all interrupts */
449 writel_relaxed(~0, port->base + PORT_INTMSK);
450 writel_relaxed(~0, port->base + PORT_INTSTAT);
451 writel_relaxed(~0, port->base + PORT_LINKCMDSTS);
452
453 irq_set_chained_handler_and_data(irq, apple_port_irq_handler, port);
454
455 /* Configure MSI base address */
456 BUILD_BUG_ON(upper_32_bits(DOORBELL_ADDR));
457 writel_relaxed(lower_32_bits(DOORBELL_ADDR),
458 port->base + pcie->hw->port_msiaddr);
459 if (pcie->hw->port_msiaddr_hi)
460 writel_relaxed(0, port->base + pcie->hw->port_msiaddr_hi);
461
462 /* Enable MSIs, shared between all ports */
463 if (pcie->hw->port_msimap) {
464 int i;
465
466 for (i = 0; i < pcie->nvecs; i++) {
> 467 writel_relaxed(FIELD_PREP(PORT_MSIMAP_TARGET, i) |
468 PORT_MSIMAP_ENABLE,
469 port->base + pcie->hw->port_msimap + 4 * i);
470 }
471
472 writel_relaxed(PORT_MSICFG_EN, port->base + PORT_MSICFG);
473 } else {
474 writel_relaxed(0, port->base + PORT_MSIBASE);
475 writel_relaxed((ilog2(pcie->nvecs) << PORT_MSICFG_L2MSINUM_SHIFT) |
476 PORT_MSICFG_EN, port->base + PORT_MSICFG);
477 }
478
479 return 0;
480 }
481
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-02-13 4:17 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-11 19:54 [PATCH 0/7] PCI: apple: support t6020 Alyssa Rosenzweig
2025-02-11 19:54 ` [PATCH 1/7] dt-bindings: pci: apple,pcie: Add t6020 support Alyssa Rosenzweig
2025-02-13 9:09 ` Krzysztof Kozlowski
2025-02-11 19:54 ` [PATCH 2/7] PCI: apple: Fix missing OF node reference in apple_pcie_setup_port Alyssa Rosenzweig
2025-02-11 19:54 ` [PATCH 3/7] PCI: apple: Set only available ports up Alyssa Rosenzweig
2025-02-11 20:33 ` Bjorn Helgaas
2025-02-11 19:54 ` [PATCH 4/7] PCI: apple: Move port PHY registers to their own reg items Alyssa Rosenzweig
2025-02-11 19:54 ` [PATCH 5/7] PCI: apple: Drop poll for CORE_RC_PHYIF_STAT_REFCLK Alyssa Rosenzweig
2025-02-11 19:54 ` [PATCH 6/7] PCI: apple: Use gpiod_set_value_cansleep in probe flow Alyssa Rosenzweig
2025-02-11 19:54 ` [PATCH 7/7] PCI: apple: Add T602x PCIe support Alyssa Rosenzweig
2025-02-12 9:55 ` Marc Zyngier
2025-02-13 19:51 ` Sven Peter
2025-02-14 11:13 ` Marc Zyngier
2025-02-13 4:16 ` kernel test robot [this message]
2025-02-13 17:56 ` Rob Herring
2025-02-13 18:01 ` Marc Zyngier
2025-02-21 15:47 ` Rob Herring
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=202502131258.hhEIy45J-lkp@intel.com \
--to=lkp@intel.com \
--cc=alyssa@rosenzweig.io \
--cc=asahi@lists.linux.dev \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=helgaas@kernel.org \
--cc=kettenis@openbsd.org \
--cc=krzk@kernel.org \
--cc=kw@linux.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=lpieralisi@kernel.org \
--cc=manivannan.sadhasivam@linaro.org \
--cc=marcan@marcan.st \
--cc=maz@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=robh@kernel.org \
--cc=stan@corellium.com \
--cc=sven@svenpeter.dev \
/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