* [robh:ethos-v2 3/11] drivers/accel/ethos/ethos_drv.c:239:9: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations
@ 2025-08-01 14:38 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-08-01 14:38 UTC (permalink / raw)
To: Rob Herring (Arm); +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git ethos-v2
head: e0ae8051a79d08497d42bebe772596a353ba477e
commit: 6f107ed06ad239d382531b1710da4dd354dcb7c3 [3/11] accel: Add Arm Ethos-U NPU driver
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20250801/202508012221.5omgydR4-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250801/202508012221.5omgydR4-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/202508012221.5omgydR4-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/accel/ethos/ethos_drv.c:239:9: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
239 | return FIELD_GET(ID_ARCH_MAJOR_MASK, ethosdev->npu_info.id) == 1;
| ^
drivers/accel/ethos/ethos_drv.c:251:7: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
251 | !FIELD_GET(STATUS_RESET_STATUS, reg),
| ^
drivers/accel/ethos/ethos_drv.c:251:7: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
drivers/accel/ethos/ethos_drv.c:256:7: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
256 | if (!FIELD_GET(PROT_ACTIVE_CSL, readl_relaxed(ethosdev->regs + NPU_REG_PROT))) {
| ^
drivers/accel/ethos/ethos_drv.c:327:3: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
327 | FIELD_GET(ID_ARCH_MAJOR_MASK, id),
| ^
drivers/accel/ethos/ethos_drv.c:327:3: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
326 | "Ethos NPU, arch v%ld.%ld.%ld, rev r%ldp%ld, cmd stream ver%ld, %d MACs, %dKB SRAM\n",
| ~~~
| %d
327 | FIELD_GET(ID_ARCH_MAJOR_MASK, id),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:160:67: note: expanded from macro 'dev_info'
160 | dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ~~~ ^~~~~~~~~~~
include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
110 | _p_func(dev, fmt, ##__VA_ARGS__); \
| ~~~ ^~~~~~~~~~~
drivers/accel/ethos/ethos_drv.c:328:3: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
326 | "Ethos NPU, arch v%ld.%ld.%ld, rev r%ldp%ld, cmd stream ver%ld, %d MACs, %dKB SRAM\n",
| ~~~
| %d
327 | FIELD_GET(ID_ARCH_MAJOR_MASK, id),
328 | FIELD_GET(ID_ARCH_MINOR_MASK, id),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:160:67: note: expanded from macro 'dev_info'
160 | dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ~~~ ^~~~~~~~~~~
include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
110 | _p_func(dev, fmt, ##__VA_ARGS__); \
| ~~~ ^~~~~~~~~~~
drivers/accel/ethos/ethos_drv.c:329:3: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
326 | "Ethos NPU, arch v%ld.%ld.%ld, rev r%ldp%ld, cmd stream ver%ld, %d MACs, %dKB SRAM\n",
| ~~~
| %d
327 | FIELD_GET(ID_ARCH_MAJOR_MASK, id),
328 | FIELD_GET(ID_ARCH_MINOR_MASK, id),
329 | FIELD_GET(ID_ARCH_PATCH_MASK, id),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:160:67: note: expanded from macro 'dev_info'
160 | dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ~~~ ^~~~~~~~~~~
include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
110 | _p_func(dev, fmt, ##__VA_ARGS__); \
| ~~~ ^~~~~~~~~~~
drivers/accel/ethos/ethos_drv.c:330:3: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
326 | "Ethos NPU, arch v%ld.%ld.%ld, rev r%ldp%ld, cmd stream ver%ld, %d MACs, %dKB SRAM\n",
| ~~~
| %d
327 | FIELD_GET(ID_ARCH_MAJOR_MASK, id),
328 | FIELD_GET(ID_ARCH_MINOR_MASK, id),
329 | FIELD_GET(ID_ARCH_PATCH_MASK, id),
330 | FIELD_GET(ID_VER_MAJOR_MASK, id),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:160:67: note: expanded from macro 'dev_info'
160 | dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ~~~ ^~~~~~~~~~~
include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
110 | _p_func(dev, fmt, ##__VA_ARGS__); \
| ~~~ ^~~~~~~~~~~
drivers/accel/ethos/ethos_drv.c:331:3: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
326 | "Ethos NPU, arch v%ld.%ld.%ld, rev r%ldp%ld, cmd stream ver%ld, %d MACs, %dKB SRAM\n",
| ~~~
| %d
327 | FIELD_GET(ID_ARCH_MAJOR_MASK, id),
328 | FIELD_GET(ID_ARCH_MINOR_MASK, id),
329 | FIELD_GET(ID_ARCH_PATCH_MASK, id),
330 | FIELD_GET(ID_VER_MAJOR_MASK, id),
331 | FIELD_GET(ID_VER_MINOR_MASK, id),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:160:67: note: expanded from macro 'dev_info'
160 | dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ~~~ ^~~~~~~~~~~
include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
110 | _p_func(dev, fmt, ##__VA_ARGS__); \
| ~~~ ^~~~~~~~~~~
drivers/accel/ethos/ethos_drv.c:332:3: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
326 | "Ethos NPU, arch v%ld.%ld.%ld, rev r%ldp%ld, cmd stream ver%ld, %d MACs, %dKB SRAM\n",
| ~~~
| %d
327 | FIELD_GET(ID_ARCH_MAJOR_MASK, id),
328 | FIELD_GET(ID_ARCH_MINOR_MASK, id),
329 | FIELD_GET(ID_ARCH_PATCH_MASK, id),
330 | FIELD_GET(ID_VER_MAJOR_MASK, id),
331 | FIELD_GET(ID_VER_MINOR_MASK, id),
332 | FIELD_GET(CONFIG_CMD_STREAM_VER_MASK, config),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:160:67: note: expanded from macro 'dev_info'
160 | dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ~~~ ^~~~~~~~~~~
include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
110 | _p_func(dev, fmt, ##__VA_ARGS__); \
| ~~~ ^~~~~~~~~~~
6 warnings and 5 errors generated.
--
>> drivers/accel/ethos/ethos_gem.c:222:3: error: expected expression
222 | u32 element_size = BIT((fm->precision >> 1) & 0x3);
| ^
>> drivers/accel/ethos/ethos_gem.c:224:60: error: use of undeclared identifier 'element_size'
224 | addr += (c / 16) * fm->stride_c + (16 * x + (c & 0xf)) * element_size;
| ^
drivers/accel/ethos/ethos_gem.c:393:4: error: expected expression
393 | u64 srclen = dma_length(info, &st.dma, &st.dma.src);
| ^
>> drivers/accel/ethos/ethos_gem.c:399:44: error: use of undeclared identifier 'srclen'
399 | st.dma.src.region, st.dma.src.offset, srclen,
| ^
4 errors generated.
vim +/FIELD_GET +239 drivers/accel/ethos/ethos_drv.c
236
237 static bool ethos_is_u65(const struct ethos_device *ethosdev)
238 {
> 239 return FIELD_GET(ID_ARCH_MAJOR_MASK, ethosdev->npu_info.id) == 1;
240 }
241
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-08-01 14:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-01 14:38 [robh:ethos-v2 3/11] drivers/accel/ethos/ethos_drv.c:239:9: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations 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).