From: kernel test robot <lkp@intel.com>
To: Haibo Chen <haibo.chen@nxp.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Mark Brown <broonie@kernel.org>, Frank Li <Frank.Li@nxp.com>
Subject: [broonie-ci:v6_20251125_haibo_chen_add_support_for_nxp_xspi 2/2] drivers/spi/spi-nxp-xspi.c:997:2: error: call to undeclared function 'PM_RUNTIME_ACQUIRE_AUTOSUSPEND'; ISO C99 and later do not support implicit function declarations
Date: Tue, 2 Dec 2025 15:58:27 +0800 [thread overview]
Message-ID: <202512021519.6wCd1iB6-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/ci.git v6_20251125_haibo_chen_add_support_for_nxp_xspi
head: 4105df382bd80d3ea5431c6065afe270a55a6dda
commit: 4105df382bd80d3ea5431c6065afe270a55a6dda [2/2] spi: add driver for NXP XSPI controller
config: um-allmodconfig (https://download.01.org/0day-ci/archive/20251202/202512021519.6wCd1iB6-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251202/202512021519.6wCd1iB6-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/202512021519.6wCd1iB6-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/spi/spi-nxp-xspi.c:40:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/um/include/asm/hardirq.h:5:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:12:
In file included from arch/um/include/asm/io.h:24:
include/asm-generic/io.h:1209:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
1209 | return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
| ~~~~~~~~~~ ^
>> drivers/spi/spi-nxp-xspi.c:997:2: error: call to undeclared function 'PM_RUNTIME_ACQUIRE_AUTOSUSPEND'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
997 | PM_RUNTIME_ACQUIRE_AUTOSUSPEND(xspi->dev, pm);
| ^
>> drivers/spi/spi-nxp-xspi.c:997:44: error: use of undeclared identifier 'pm'
997 | PM_RUNTIME_ACQUIRE_AUTOSUSPEND(xspi->dev, pm);
| ^
>> drivers/spi/spi-nxp-xspi.c:998:8: error: call to undeclared function 'PM_RUNTIME_ACQUIRE_ERR'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
998 | err = PM_RUNTIME_ACQUIRE_ERR(&pm);
| ^
drivers/spi/spi-nxp-xspi.c:998:32: error: use of undeclared identifier 'pm'
998 | err = PM_RUNTIME_ACQUIRE_ERR(&pm);
| ^
drivers/spi/spi-nxp-xspi.c:1265:2: error: call to undeclared function 'PM_RUNTIME_ACQUIRE_AUTOSUSPEND'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1265 | PM_RUNTIME_ACQUIRE_AUTOSUSPEND(dev, pm);
| ^
drivers/spi/spi-nxp-xspi.c:1265:38: error: use of undeclared identifier 'pm'
1265 | PM_RUNTIME_ACQUIRE_AUTOSUSPEND(dev, pm);
| ^
drivers/spi/spi-nxp-xspi.c:1266:8: error: call to undeclared function 'PM_RUNTIME_ACQUIRE_ERR'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1266 | ret = PM_RUNTIME_ACQUIRE_ERR(&pm);
| ^
drivers/spi/spi-nxp-xspi.c:1266:32: error: use of undeclared identifier 'pm'
1266 | ret = PM_RUNTIME_ACQUIRE_ERR(&pm);
| ^
1 warning and 8 errors generated.
vim +/PM_RUNTIME_ACQUIRE_AUTOSUSPEND +997 drivers/spi/spi-nxp-xspi.c
987
988 static int nxp_xspi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op)
989 {
990 struct nxp_xspi *xspi = spi_controller_get_devdata(mem->spi->controller);
991 void __iomem *base = xspi->iobase;
992 u32 reg;
993 int err;
994
995 guard(mutex)(&xspi->lock);
996
> 997 PM_RUNTIME_ACQUIRE_AUTOSUSPEND(xspi->dev, pm);
> 998 err = PM_RUNTIME_ACQUIRE_ERR(&pm);
999 if (err)
1000 return err;
1001
1002 /* Wait for controller being ready. */
1003 err = readl_poll_timeout(base + XSPI_SR, reg,
1004 !(reg & XSPI_SR_BUSY), 1, POLL_TOUT_US);
1005 if (err) {
1006 dev_err(xspi->dev, "SR keeps in BUSY!");
1007 return err;
1008 }
1009
1010 nxp_xspi_select_mem(xspi, mem->spi, op);
1011
1012 nxp_xspi_prepare_lut(xspi, op);
1013
1014 /*
1015 * For read:
1016 * the address in AHB mapped range will use AHB read.
1017 * the address out of AHB mapped range will use IP read.
1018 * For write:
1019 * all use IP write.
1020 */
1021 if ((op->data.dir == SPI_MEM_DATA_IN) && !needs_ip_only(xspi)
1022 && ((op->addr.val + op->data.nbytes) <= xspi->memmap_phy_size))
1023 err = nxp_xspi_ahb_read(xspi, op);
1024 else
1025 err = nxp_xspi_do_op(xspi, op);
1026
1027 nxp_xspi_sw_reset(xspi);
1028
1029 return err;
1030 }
1031
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-12-02 7:59 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=202512021519.6wCd1iB6-lkp@intel.com \
--to=lkp@intel.com \
--cc=Frank.Li@nxp.com \
--cc=broonie@kernel.org \
--cc=haibo.chen@nxp.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.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