* [robh:ethos-v2 3/3] drivers/accel/ethos/ethos_drv.c:210:9: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations
@ 2025-08-15 10:19 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-08-15 10:19 UTC (permalink / raw)
To: Rob Herring (Arm); +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git ethos-v2
head: 2146bfc43e891f1ee2c62e3be5d536b64cb66ae9
commit: 2146bfc43e891f1ee2c62e3be5d536b64cb66ae9 [3/3] accel: Add Arm Ethos-U NPU driver
config: mips-randconfig-r061-20250815 (https://download.01.org/0day-ci/archive/20250815/202508151832.GDjxlsFI-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 3769ce013be2879bf0b329c14a16f5cb766f26ce)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250815/202508151832.GDjxlsFI-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/202508151832.GDjxlsFI-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/accel/ethos/ethos_drv.c:210:9: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
210 | return FIELD_GET(ID_ARCH_MAJOR_MASK, ethosdev->npu_info.id) == 1;
| ^
drivers/accel/ethos/ethos_drv.c:222:7: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
222 | !FIELD_GET(STATUS_RESET_STATUS, reg),
| ^
drivers/accel/ethos/ethos_drv.c:222: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:227:7: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
227 | if (!FIELD_GET(PROT_ACTIVE_CSL, readl_relaxed(ethosdev->regs + NPU_REG_PROT))) {
| ^
drivers/accel/ethos/ethos_drv.c:329:3: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
329 | FIELD_GET(ID_ARCH_MAJOR_MASK, id),
| ^
drivers/accel/ethos/ethos_drv.c:329:3: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
328 | "Ethos NPU, arch v%ld.%ld.%ld, rev r%ldp%ld, cmd stream ver%ld, %d MACs, %dKB SRAM\n",
| ~~~
| %d
329 | 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:330:3: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
328 | "Ethos NPU, arch v%ld.%ld.%ld, rev r%ldp%ld, cmd stream ver%ld, %d MACs, %dKB SRAM\n",
| ~~~
| %d
329 | FIELD_GET(ID_ARCH_MAJOR_MASK, id),
330 | 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:331:3: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
328 | "Ethos NPU, arch v%ld.%ld.%ld, rev r%ldp%ld, cmd stream ver%ld, %d MACs, %dKB SRAM\n",
| ~~~
| %d
329 | FIELD_GET(ID_ARCH_MAJOR_MASK, id),
330 | FIELD_GET(ID_ARCH_MINOR_MASK, id),
331 | 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:332:3: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
328 | "Ethos NPU, arch v%ld.%ld.%ld, rev r%ldp%ld, cmd stream ver%ld, %d MACs, %dKB SRAM\n",
| ~~~
| %d
329 | FIELD_GET(ID_ARCH_MAJOR_MASK, id),
330 | FIELD_GET(ID_ARCH_MINOR_MASK, id),
331 | FIELD_GET(ID_ARCH_PATCH_MASK, id),
332 | 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:333:3: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
328 | "Ethos NPU, arch v%ld.%ld.%ld, rev r%ldp%ld, cmd stream ver%ld, %d MACs, %dKB SRAM\n",
| ~~~
| %d
329 | FIELD_GET(ID_ARCH_MAJOR_MASK, id),
330 | FIELD_GET(ID_ARCH_MINOR_MASK, id),
331 | FIELD_GET(ID_ARCH_PATCH_MASK, id),
332 | FIELD_GET(ID_VER_MAJOR_MASK, id),
333 | 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:334:3: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
328 | "Ethos NPU, arch v%ld.%ld.%ld, rev r%ldp%ld, cmd stream ver%ld, %d MACs, %dKB SRAM\n",
| ~~~
| %d
329 | FIELD_GET(ID_ARCH_MAJOR_MASK, id),
330 | FIELD_GET(ID_ARCH_MINOR_MASK, id),
331 | FIELD_GET(ID_ARCH_PATCH_MASK, id),
332 | FIELD_GET(ID_VER_MAJOR_MASK, id),
333 | FIELD_GET(ID_VER_MINOR_MASK, id),
334 | 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.
vim +/FIELD_GET +210 drivers/accel/ethos/ethos_drv.c
207
208 static bool ethos_is_u65(const struct ethos_device *ethosdev)
209 {
> 210 return FIELD_GET(ID_ARCH_MAJOR_MASK, ethosdev->npu_info.id) == 1;
211 }
212
--
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-15 10:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-15 10:19 [robh:ethos-v2 3/3] drivers/accel/ethos/ethos_drv.c:210:9: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.