[gustavoars:testing/wfamnae-next20240729-cbc-2 8/9] ./usr/include/scsi/fc/fc_els.h:1130:53: error: use of undeclared identifier 'desc_tags'

From: kernel test robot
Date: Wed Jul 31 2024 - 10:14:44 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/wfamnae-next20240729-cbc-2
head: 7028047dd569cc1fc6fcda22626a7c85347fadbd
commit: 06621fb3befe6bcfd46d10a14ea18b22b9daa740 [8/9] scsi: fc: Avoid -Wflex-array-member-not-at-end warnings
config: i386-buildonly-randconfig-003-20240731 (https://download.01.org/0day-ci/archive/20240731/202407312216.neWTKzbG-lkp@xxxxxxxxx/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240731/202407312216.neWTKzbG-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202407312216.neWTKzbG-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

In file included from <built-in>:1:
>> ./usr/include/scsi/fc/fc_els.h:1130:16: error: implicit declaration of function 'offsetof' [-Werror,-Wimplicit-function-declaration]
1130 | _Static_assert(offsetof(struct fc_df_desc_fpin_reg, desc_tags) == sizeof(struct fc_df_desc_fpin_reg_hdr),
| ^
>> ./usr/include/scsi/fc/fc_els.h:1130:25: error: expected expression
1130 | _Static_assert(offsetof(struct fc_df_desc_fpin_reg, desc_tags) == sizeof(struct fc_df_desc_fpin_reg_hdr),
| ^
>> ./usr/include/scsi/fc/fc_els.h:1130:53: error: use of undeclared identifier 'desc_tags'
1130 | _Static_assert(offsetof(struct fc_df_desc_fpin_reg, desc_tags) == sizeof(struct fc_df_desc_fpin_reg_hdr),
| ^
./usr/include/scsi/fc/fc_els.h:1148:25: error: expected expression
1148 | _Static_assert(offsetof(struct fc_els_rdf, desc) == sizeof(struct fc_els_rdf_hdr),
| ^
>> ./usr/include/scsi/fc/fc_els.h:1148:44: error: use of undeclared identifier 'desc'
1148 | _Static_assert(offsetof(struct fc_els_rdf, desc) == sizeof(struct fc_els_rdf_hdr),
| ^
5 errors generated.

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