All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Rob Herring (Arm)" <robh@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Fri, 15 Aug 2025 18:19:23 +0800	[thread overview]
Message-ID: <202508151832.GDjxlsFI-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-08-15 10:21 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=202508151832.GDjxlsFI-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=robh@kernel.org \
    /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 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.