mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [gustavoars:testing/wfamnae-next20240729-cbc-2 8/9] ./usr/include/scsi/fc/fc_els.h:1130:16: error: implicit declaration of function 'offsetof'
@ 2024-07-31 13:11 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-07-31 13:11 UTC (permalink / raw)
  To: Gustavo A. R. Silva; +Cc: oe-kbuild-all, Gustavo A. R. Silva, LKML

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: x86_64-buildonly-randconfig-004-20240731 (https://download.01.org/0day-ci/archive/20240731/202407312111.pIdI9KGE-lkp@intel.com/config)
compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240731/202407312111.pIdI9KGE-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/202407312111.pIdI9KGE-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from <command-line>:
>> ./usr/include/scsi/fc/fc_els.h:1130:16: error: implicit declaration of function 'offsetof' [-Werror=implicit-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:13:1: note: 'offsetof' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
      12 | #include <asm/byteorder.h>
     +++ |+#include <stddef.h>
      13 | 
>> ./usr/include/scsi/fc/fc_els.h:1130:25: error: expected expression before 'struct'
    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:16: error: expression in static assertion is not an integer
    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 before 'struct'
    1148 | _Static_assert(offsetof(struct fc_els_rdf, desc) == sizeof(struct fc_els_rdf_hdr),
         |                         ^~~~~~
   ./usr/include/scsi/fc/fc_els.h:1148:16: error: expression in static assertion is not an integer
    1148 | _Static_assert(offsetof(struct fc_els_rdf, desc) == sizeof(struct fc_els_rdf_hdr),
         |                ^~~~~~~~
   cc1: some warnings being treated as errors

-- 
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-07-31 13:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-31 13:11 [gustavoars:testing/wfamnae-next20240729-cbc-2 8/9] ./usr/include/scsi/fc/fc_els.h:1130:16: error: implicit declaration of function 'offsetof' 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

all inboxes | Powered by JetHome®