* [cxl:preview 20/53] drivers/cxl/core/regs.c:256:18: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BLOCK_OFF_LOW_MASK'
@ 2022-01-22 15:05 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-01-22 15:05 UTC (permalink / raw)
To: Ben Widawsky
Cc: llvm, kbuild-all, Alison Schofield, Vishal Verma, Ira Weiny,
Ben Widawsky, Dan Williams, linux-kernel, Jonathan Cameron
tree: https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git preview
head: e675fabdbbcdb6e32dba688a20fb0bd42e0e2d5d
commit: 0deb1229ea40390e8402361338d680619a750270 [20/53] cxl/acpi: Map component registers for Root Ports
config: mips-randconfig-c004-20220120 (https://download.01.org/0day-ci/archive/20220122/202201222305.il9hV9Zh-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7b3d30728816403d1fd73cc5082e9fb761262bce)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git/commit/?id=0deb1229ea40390e8402361338d680619a750270
git remote add cxl https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git
git fetch --no-tags cxl preview
git checkout 0deb1229ea40390e8402361338d680619a750270
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/cxl/core/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/cxl/core/regs.c:256:18: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BLOCK_OFF_LOW_MASK'
(reg_lo & CXL_DVSEC_REG_LOCATOR_BLOCK_OFF_LOW_MASK);
^
>> drivers/cxl/core/regs.c:257:25: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BIR_MASK'
map->barno = FIELD_GET(CXL_DVSEC_REG_LOCATOR_BIR_MASK, reg_lo);
^
>> drivers/cxl/core/regs.c:257:25: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BIR_MASK'
>> drivers/cxl/core/regs.c:257:25: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BIR_MASK'
>> drivers/cxl/core/regs.c:257:25: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BIR_MASK'
>> drivers/cxl/core/regs.c:257:25: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BIR_MASK'
>> drivers/cxl/core/regs.c:257:25: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BIR_MASK'
>> drivers/cxl/core/regs.c:257:25: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BIR_MASK'
>> drivers/cxl/core/regs.c:257:25: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BIR_MASK'
>> drivers/cxl/core/regs.c:257:25: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BIR_MASK'
>> drivers/cxl/core/regs.c:257:25: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BIR_MASK'
>> drivers/cxl/core/regs.c:257:13: error: assigning to 'u8' (aka 'unsigned char') from incompatible type 'void'
map->barno = FIELD_GET(CXL_DVSEC_REG_LOCATOR_BIR_MASK, reg_lo);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/cxl/core/regs.c:258:28: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BLOCK_ID_MASK'
map->reg_type = FIELD_GET(CXL_DVSEC_REG_LOCATOR_BLOCK_ID_MASK, reg_lo);
^
>> drivers/cxl/core/regs.c:258:28: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BLOCK_ID_MASK'
>> drivers/cxl/core/regs.c:258:28: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BLOCK_ID_MASK'
>> drivers/cxl/core/regs.c:258:28: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BLOCK_ID_MASK'
>> drivers/cxl/core/regs.c:258:28: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BLOCK_ID_MASK'
>> drivers/cxl/core/regs.c:258:28: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BLOCK_ID_MASK'
>> drivers/cxl/core/regs.c:258:28: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BLOCK_ID_MASK'
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
vim +/CXL_DVSEC_REG_LOCATOR_BLOCK_OFF_LOW_MASK +256 drivers/cxl/core/regs.c
251
252 static void cxl_decode_regblock(u32 reg_lo, u32 reg_hi,
253 struct cxl_register_map *map)
254 {
255 map->block_offset = ((u64)reg_hi << 32) |
> 256 (reg_lo & CXL_DVSEC_REG_LOCATOR_BLOCK_OFF_LOW_MASK);
> 257 map->barno = FIELD_GET(CXL_DVSEC_REG_LOCATOR_BIR_MASK, reg_lo);
> 258 map->reg_type = FIELD_GET(CXL_DVSEC_REG_LOCATOR_BLOCK_ID_MASK, reg_lo);
259 }
260
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
^ permalink raw reply [flat|nested] 2+ messages in thread
* [cxl:preview 20/53] drivers/cxl/core/regs.c:256:18: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BLOCK_OFF_LOW_MASK'
@ 2022-01-22 15:05 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-01-22 15:05 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4725 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git preview
head: e675fabdbbcdb6e32dba688a20fb0bd42e0e2d5d
commit: 0deb1229ea40390e8402361338d680619a750270 [20/53] cxl/acpi: Map component registers for Root Ports
config: mips-randconfig-c004-20220120 (https://download.01.org/0day-ci/archive/20220122/202201222305.il9hV9Zh-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7b3d30728816403d1fd73cc5082e9fb761262bce)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git/commit/?id=0deb1229ea40390e8402361338d680619a750270
git remote add cxl https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git
git fetch --no-tags cxl preview
git checkout 0deb1229ea40390e8402361338d680619a750270
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/cxl/core/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/cxl/core/regs.c:256:18: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BLOCK_OFF_LOW_MASK'
(reg_lo & CXL_DVSEC_REG_LOCATOR_BLOCK_OFF_LOW_MASK);
^
>> drivers/cxl/core/regs.c:257:25: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BIR_MASK'
map->barno = FIELD_GET(CXL_DVSEC_REG_LOCATOR_BIR_MASK, reg_lo);
^
>> drivers/cxl/core/regs.c:257:25: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BIR_MASK'
>> drivers/cxl/core/regs.c:257:25: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BIR_MASK'
>> drivers/cxl/core/regs.c:257:25: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BIR_MASK'
>> drivers/cxl/core/regs.c:257:25: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BIR_MASK'
>> drivers/cxl/core/regs.c:257:25: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BIR_MASK'
>> drivers/cxl/core/regs.c:257:25: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BIR_MASK'
>> drivers/cxl/core/regs.c:257:25: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BIR_MASK'
>> drivers/cxl/core/regs.c:257:25: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BIR_MASK'
>> drivers/cxl/core/regs.c:257:25: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BIR_MASK'
>> drivers/cxl/core/regs.c:257:13: error: assigning to 'u8' (aka 'unsigned char') from incompatible type 'void'
map->barno = FIELD_GET(CXL_DVSEC_REG_LOCATOR_BIR_MASK, reg_lo);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/cxl/core/regs.c:258:28: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BLOCK_ID_MASK'
map->reg_type = FIELD_GET(CXL_DVSEC_REG_LOCATOR_BLOCK_ID_MASK, reg_lo);
^
>> drivers/cxl/core/regs.c:258:28: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BLOCK_ID_MASK'
>> drivers/cxl/core/regs.c:258:28: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BLOCK_ID_MASK'
>> drivers/cxl/core/regs.c:258:28: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BLOCK_ID_MASK'
>> drivers/cxl/core/regs.c:258:28: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BLOCK_ID_MASK'
>> drivers/cxl/core/regs.c:258:28: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BLOCK_ID_MASK'
>> drivers/cxl/core/regs.c:258:28: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BLOCK_ID_MASK'
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
vim +/CXL_DVSEC_REG_LOCATOR_BLOCK_OFF_LOW_MASK +256 drivers/cxl/core/regs.c
251
252 static void cxl_decode_regblock(u32 reg_lo, u32 reg_hi,
253 struct cxl_register_map *map)
254 {
255 map->block_offset = ((u64)reg_hi << 32) |
> 256 (reg_lo & CXL_DVSEC_REG_LOCATOR_BLOCK_OFF_LOW_MASK);
> 257 map->barno = FIELD_GET(CXL_DVSEC_REG_LOCATOR_BIR_MASK, reg_lo);
> 258 map->reg_type = FIELD_GET(CXL_DVSEC_REG_LOCATOR_BLOCK_ID_MASK, reg_lo);
259 }
260
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-22 15:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-22 15:05 [cxl:preview 20/53] drivers/cxl/core/regs.c:256:18: error: use of undeclared identifier 'CXL_DVSEC_REG_LOCATOR_BLOCK_OFF_LOW_MASK' kernel test robot
2022-01-22 15:05 ` 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.