Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [djiang:cxl/fwctl 13/25] drivers/cxl/cxlmem.h:798:56: error: use of undeclared identifier 'supported_feats'
@ 2024-09-27  0:17 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-09-27  0:17 UTC (permalink / raw)
  To: Dave Jiang; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/djiang/linux.git cxl/fwctl
head:   b4f2900f53c72de8fc639b62e44763c6a9695d3b
commit: 5a0496c19151d83cd0d926f8a1488eeaab27509b [13/25] cxl: Add Get Supported Features command for kernel usage
config: x86_64-buildonly-randconfig-001-20240927 (https://download.01.org/0day-ci/archive/20240927/202409270801.q5j3vH3U-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240927/202409270801.q5j3vH3U-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/202409270801.q5j3vH3U-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/cxl/port.c:7:
>> drivers/cxl/cxlmem.h:798:56: error: use of undeclared identifier 'supported_feats'
     798 |         struct cxl_feat_entry ents[] __counted_by(le32_to_cpu(supported_feats));
         |                                                               ^
   include/linux/byteorder/generic.h:89:21: note: expanded from macro 'le32_to_cpu'
      89 | #define le32_to_cpu __le32_to_cpu
         |                     ^
   1 error generated.


vim +/supported_feats +798 drivers/cxl/cxlmem.h

   793	
   794	struct cxl_mbox_get_sup_feats_out {
   795		__le16 num_entries;
   796		__le16 supported_feats;
   797		u8 reserved[4];
 > 798		struct cxl_feat_entry ents[] __counted_by(le32_to_cpu(supported_feats));
   799	} __packed;
   800	

-- 
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:[~2024-09-27  0:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-27  0:17 [djiang:cxl/fwctl 13/25] drivers/cxl/cxlmem.h:798:56: error: use of undeclared identifier 'supported_feats' 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