All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: [fustini:b4/ssqosid-cbqri 12/24] arch/riscv/kernel/qos/qos_resctrl.c:296:9: error: call to undeclared function 'ioread64'; ISO C99 and later do not support implicit function declarations
Date: Thu, 11 Dec 2025 06:30:26 +0800	[thread overview]
Message-ID: <202512110615.SGIChFQT-lkp@intel.com> (raw)

:::::: 
:::::: Manual check reason: "only suspicious fbc files changed"
:::::: 

BCC: lkp@intel.com
CC: llvm@lists.linux.dev
CC: oe-kbuild-all@lists.linux.dev
TO: Drew Fustini <fustini@kernel.org>
CC: Adrien Ricciardi <aricciardi@baylibre.com>

Hi Drew,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/fustini/linux.git b4/ssqosid-cbqri
head:   9cef75501dd0366444c60c3ca47bf75270f2160a
commit: b3bca12466ffbbabc21d40cf1713b1e88dcfef64 [12/24] RISC-V: QoS: add to build when CONFIG_RISCV_ISA_SSQOSID set
:::::: branch date: 3 days ago
:::::: commit date: 3 weeks ago
config: riscv-randconfig-001-20251211 (https://download.01.org/0day-ci/archive/20251211/202512110615.SGIChFQT-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 6ec8c4351cfc1d0627d1633b02ea787bd29c77d8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251211/202512110615.SGIChFQT-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/r/202512110615.SGIChFQT-lkp@intel.com/

All errors (new ones prefixed by >>):

>> arch/riscv/kernel/qos/qos_resctrl.c:296:9: error: call to undeclared function 'ioread64'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     296 |                 reg = ioread64(ctrl->base + reg_offset);
         |                       ^
>> arch/riscv/kernel/qos/qos_resctrl.c:299:3: error: call to undeclared function 'iowrite64'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     299 |                 iowrite64(reg, ctrl->base + reg_offset);
         |                 ^
   arch/riscv/kernel/qos/qos_resctrl.c:311:9: error: call to undeclared function 'ioread64'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     311 |                 reg = ioread64(ctrl->base + reg_offset);
         |                       ^
   arch/riscv/kernel/qos/qos_resctrl.c:313:3: error: call to undeclared function 'iowrite64'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     313 |                 iowrite64(reg, ctrl->base + reg_offset);
         |                 ^
   arch/riscv/kernel/qos/qos_resctrl.c:323:9: error: call to undeclared function 'ioread64'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     323 |                 reg = ioread64(ctrl->base + reg_offset);
         |                       ^
   arch/riscv/kernel/qos/qos_resctrl.c:337:9: error: call to undeclared function 'ioread64'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     337 |                 reg = ioread64(ctrl->base + reg_offset);
         |                       ^
   arch/riscv/kernel/qos/qos_resctrl.c:356:8: error: call to undeclared function 'ioread64'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     356 |         reg = ioread64(ctrl->base + reg_offset);
         |               ^
   arch/riscv/kernel/qos/qos_resctrl.c:386:2: error: call to undeclared function 'iowrite64'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     386 |         iowrite64(reg, ctrl->base + reg_offset);
         |         ^
   arch/riscv/kernel/qos/qos_resctrl.c:411:8: error: call to undeclared function 'ioread64'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     411 |         reg = ioread64(ctrl->base + reg_offset);
         |               ^
   arch/riscv/kernel/qos/qos_resctrl.c:418:2: error: call to undeclared function 'iowrite64'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     418 |         iowrite64(reg, ctrl->base + reg_offset);
         |         ^
   arch/riscv/kernel/qos/qos_resctrl.c:522:9: error: call to undeclared function 'ioread64'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     522 |                 reg = ioread64(ctrl->base + reg_offset);
         |                       ^
   arch/riscv/kernel/qos/qos_resctrl.c:612:9: error: call to undeclared function 'ioread64'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     612 |                 reg = ioread64(ctrl->base + reg_offset);
         |                       ^
   arch/riscv/kernel/qos/qos_resctrl.c:648:8: error: call to undeclared function 'ioread64'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     648 |         reg = ioread64(ctrl->base + reg_offset);
         |               ^
   arch/riscv/kernel/qos/qos_resctrl.c:654:2: error: call to undeclared function 'iowrite64'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     654 |         iowrite64(reg, ctrl->base + reg_offset);
         |         ^
   arch/riscv/kernel/qos/qos_resctrl.c:742:9: error: call to undeclared function 'ioread64'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     742 |                 reg = ioread64(ctrl->base + CBQRI_CC_CAPABILITIES_OFF);
         |                       ^
   arch/riscv/kernel/qos/qos_resctrl.c:826:9: error: call to undeclared function 'ioread64'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     826 |                 reg = ioread64(ctrl->base + CBQRI_BC_CAPABILITIES_OFF);
         |                       ^
   16 errors generated.


vim +/ioread64 +296 arch/riscv/kernel/qos/qos_resctrl.c

291c1b985f85fd Drew Fustini 2023-04-19  288  
291c1b985f85fd Drew Fustini 2023-04-19  289  /* Set capacity block mask (cc_block_mask) */
291c1b985f85fd Drew Fustini 2023-04-19  290  static void cbqri_set_cbm(struct cbqri_controller *ctrl, u64 cbm)
291c1b985f85fd Drew Fustini 2023-04-19  291  {
291c1b985f85fd Drew Fustini 2023-04-19  292  		int reg_offset;
291c1b985f85fd Drew Fustini 2023-04-19  293  		u64 reg;
291c1b985f85fd Drew Fustini 2023-04-19  294  
291c1b985f85fd Drew Fustini 2023-04-19  295  		reg_offset = CBQRI_CC_BLOCK_MASK_OFF;
291c1b985f85fd Drew Fustini 2023-04-19 @296  		reg = ioread64(ctrl->base + reg_offset);
291c1b985f85fd Drew Fustini 2023-04-19  297  
291c1b985f85fd Drew Fustini 2023-04-19  298  		reg = cbm;
291c1b985f85fd Drew Fustini 2023-04-19 @299  		iowrite64(reg, ctrl->base + reg_offset);
291c1b985f85fd Drew Fustini 2023-04-19  300  
291c1b985f85fd Drew Fustini 2023-04-19  301  		reg = ioread64(ctrl->base + reg_offset);
291c1b985f85fd Drew Fustini 2023-04-19  302  }
291c1b985f85fd Drew Fustini 2023-04-19  303  

:::::: The code at line 296 was first introduced by commit
:::::: 291c1b985f85fdb7d7ec4b8ef3996b518145db12 RISC-V: QoS: add resctrl interface for CBQRI controllers

:::::: TO: Drew Fustini <fustini@kernel.org>
:::::: CC: Drew Fustini <fustini@kernel.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

             reply	other threads:[~2025-12-10 22:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-10 22:30 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-12-11  2:05 [fustini:b4/ssqosid-cbqri 12/24] arch/riscv/kernel/qos/qos_resctrl.c:296:9: error: call to undeclared function 'ioread64'; ISO C99 and later do not support implicit function declarations kernel test robot

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=202512110615.SGIChFQT-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild@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 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.