Hi Kees, FYI, the error/warning still remains. tree: git://git.samba.org/sfrench/cifs-2.6.git 5.15-backport-8-1-24 head: c931999946e12679e0adc129509a1e23a4a64b5d commit: cd3ad386810097de48e69cdd3c483ca1bf65c7c6 [346/600] smb3: Replace smb2pdu 1-element arrays with flex-arrays config: i386-randconfig-002-20240803 (https://download.01.org/0day-ci/archive/20240803/202408031644.BXjx5MQC-lkp@xxxxxxxxx/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240803/202408031644.BXjx5MQC-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/202408031644.BXjx5MQC-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): In file included from fs/cifs/dir.c:17: fs/cifs/cifspdu.h:512:17: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 512 | DECLARE_FLEX_ARRAY(unsigned char, EncryptionKey); | ^~~~~~~~~~~~~~~~~~ fs/cifs/cifspdu.h:2289:17: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 2289 | DECLARE_FLEX_ARRAY(char, FileName); | ^~~~~~~~~~~~~~~~~~ fs/cifs/cifspdu.h:2328:9: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 2328 | DECLARE_FLEX_ARRAY(char, LinkDest); | ^~~~~~~~~~~~~~~~~~ fs/cifs/cifspdu.h:2377:9: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 2377 | DECLARE_FLEX_ARRAY(__u8, alt_name); | ^~~~~~~~~~~~~~~~~~ fs/cifs/cifspdu.h:2488:17: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 2488 | DECLARE_FLEX_ARRAY(char, FileName); | ^~~~~~~~~~~~~~~~~~ In file included from fs/cifs/cifsglob.h:26, from fs/cifs/dir.c:18: >> fs/cifs/../smbfs_common/smb2pdu.h:817:17: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 817 | DECLARE_FLEX_ARRAY(struct smb2_lock_element, locks); | ^~~~~~~~~~~~~~~~~~ fs/cifs/../smbfs_common/smb2pdu.h:1578:17: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 1578 | DECLARE_FLEX_ARRAY(char, FileName); | ^~~~~~~~~~~~~~~~~~ -- In file included from fs/cifs/cifsglob.h:26, from fs/cifs/asn1.c:6: >> fs/cifs/../smbfs_common/smb2pdu.h:817:17: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 817 | DECLARE_FLEX_ARRAY(struct smb2_lock_element, locks); | ^~~~~~~~~~~~~~~~~~ fs/cifs/../smbfs_common/smb2pdu.h:1578:17: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 1578 | DECLARE_FLEX_ARRAY(char, FileName); | ^~~~~~~~~~~~~~~~~~ In file included from fs/cifs/cifsglob.h:97: fs/cifs/cifspdu.h:512:17: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 512 | DECLARE_FLEX_ARRAY(unsigned char, EncryptionKey); | ^~~~~~~~~~~~~~~~~~ fs/cifs/cifspdu.h:2289:17: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 2289 | DECLARE_FLEX_ARRAY(char, FileName); | ^~~~~~~~~~~~~~~~~~ fs/cifs/cifspdu.h:2328:9: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 2328 | DECLARE_FLEX_ARRAY(char, LinkDest); | ^~~~~~~~~~~~~~~~~~ fs/cifs/cifspdu.h:2377:9: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 2377 | DECLARE_FLEX_ARRAY(__u8, alt_name); | ^~~~~~~~~~~~~~~~~~ fs/cifs/cifspdu.h:2488:17: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 2488 | DECLARE_FLEX_ARRAY(char, FileName); | ^~~~~~~~~~~~~~~~~~ -- In file included from fs/cifs/ioctl.c:16: fs/cifs/cifspdu.h:512:17: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 512 | DECLARE_FLEX_ARRAY(unsigned char, EncryptionKey); | ^~~~~~~~~~~~~~~~~~ fs/cifs/cifspdu.h:2289:17: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 2289 | DECLARE_FLEX_ARRAY(char, FileName); | ^~~~~~~~~~~~~~~~~~ fs/cifs/cifspdu.h:2328:9: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 2328 | DECLARE_FLEX_ARRAY(char, LinkDest); | ^~~~~~~~~~~~~~~~~~ fs/cifs/cifspdu.h:2377:9: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 2377 | DECLARE_FLEX_ARRAY(__u8, alt_name); | ^~~~~~~~~~~~~~~~~~ fs/cifs/cifspdu.h:2488:17: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 2488 | DECLARE_FLEX_ARRAY(char, FileName); | ^~~~~~~~~~~~~~~~~~ In file included from fs/cifs/cifsglob.h:26, from fs/cifs/ioctl.c:17: >> fs/cifs/../smbfs_common/smb2pdu.h:817:17: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 817 | DECLARE_FLEX_ARRAY(struct smb2_lock_element, locks); | ^~~~~~~~~~~~~~~~~~ fs/cifs/../smbfs_common/smb2pdu.h:1578:17: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 1578 | DECLARE_FLEX_ARRAY(char, FileName); | ^~~~~~~~~~~~~~~~~~ fs/cifs/ioctl.c: In function 'cifs_ioctl': fs/cifs/ioctl.c:324:17: warning: variable 'caps' set but not used [-Wunused-but-set-variable] 324 | __u64 caps; | ^~~~ -- In file included from fs/cifs/readdir.c:15: fs/cifs/cifspdu.h:512:17: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 512 | DECLARE_FLEX_ARRAY(unsigned char, EncryptionKey); | ^~~~~~~~~~~~~~~~~~ fs/cifs/cifspdu.h:2289:17: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 2289 | DECLARE_FLEX_ARRAY(char, FileName); | ^~~~~~~~~~~~~~~~~~ fs/cifs/cifspdu.h:2328:9: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 2328 | DECLARE_FLEX_ARRAY(char, LinkDest); | ^~~~~~~~~~~~~~~~~~ fs/cifs/cifspdu.h:2377:9: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 2377 | DECLARE_FLEX_ARRAY(__u8, alt_name); | ^~~~~~~~~~~~~~~~~~ fs/cifs/cifspdu.h:2488:17: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 2488 | DECLARE_FLEX_ARRAY(char, FileName); | ^~~~~~~~~~~~~~~~~~ In file included from fs/cifs/cifsglob.h:26, from fs/cifs/readdir.c:16: >> fs/cifs/../smbfs_common/smb2pdu.h:817:17: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 817 | DECLARE_FLEX_ARRAY(struct smb2_lock_element, locks); | ^~~~~~~~~~~~~~~~~~ fs/cifs/../smbfs_common/smb2pdu.h:1578:17: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 1578 | DECLARE_FLEX_ARRAY(char, FileName); | ^~~~~~~~~~~~~~~~~~ fs/cifs/readdir.c: In function 'cifs_fill_dirent_unix': fs/cifs/readdir.c:554:25: error: 'FILE_UNIX_INFO' has no member named 'FileName' 554 | de->name = &info->FileName[0]; | ^~ -- In file included from fs/cifs/cifssmb.c:26: fs/cifs/cifspdu.h:512:17: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 512 | DECLARE_FLEX_ARRAY(unsigned char, EncryptionKey); | ^~~~~~~~~~~~~~~~~~ fs/cifs/cifspdu.h:2289:17: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 2289 | DECLARE_FLEX_ARRAY(char, FileName); | ^~~~~~~~~~~~~~~~~~ fs/cifs/cifspdu.h:2328:9: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 2328 | DECLARE_FLEX_ARRAY(char, LinkDest); | ^~~~~~~~~~~~~~~~~~ fs/cifs/cifspdu.h:2377:9: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 2377 | DECLARE_FLEX_ARRAY(__u8, alt_name); | ^~~~~~~~~~~~~~~~~~ fs/cifs/cifspdu.h:2488:17: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 2488 | DECLARE_FLEX_ARRAY(char, FileName); | ^~~~~~~~~~~~~~~~~~ In file included from fs/cifs/cifsglob.h:26, from fs/cifs/cifssmb.c:27: >> fs/cifs/../smbfs_common/smb2pdu.h:817:17: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 817 | DECLARE_FLEX_ARRAY(struct smb2_lock_element, locks); | ^~~~~~~~~~~~~~~~~~ fs/cifs/../smbfs_common/smb2pdu.h:1578:17: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY' 1578 | DECLARE_FLEX_ARRAY(char, FileName); | ^~~~~~~~~~~~~~~~~~ fs/cifs/cifssmb.c: In function 'decode_ext_sec_blob': fs/cifs/cifssmb.c:381:33: error: 'union <anonymous>' has no member named 'extended_response' 381 | char *guid = pSMBr->u.extended_response.GUID; | ^ fs/cifs/cifssmb.c:405:33: error: 'union <anonymous>' has no member named 'extended_response' 405 | pSMBr->u.extended_response.SecurityBlob, count, server); | ^ fs/cifs/cifssmb.c: In function 'CIFSSMBNegotiate': fs/cifs/cifssmb.c:516:55: error: 'union <anonymous>' has no member named 'EncryptionKey' 516 | memcpy(ses->server->cryptkey, pSMBr->u.EncryptionKey, | ^ vim +/DECLARE_FLEX_ARRAY +817 fs/cifs/../smbfs_common/smb2pdu.h 802 803 struct smb2_lock_req { 804 struct smb2_hdr hdr; 805 __le16 StructureSize; /* Must be 48 */ 806 __le16 LockCount; 807 /* 808 * The least significant four bits are the index, the other 28 bits are 809 * the lock sequence number (0 to 64). See MS-SMB2 2.2.26 810 */ 811 __le32 LockSequenceNumber; 812 __u64 PersistentFileId; 813 __u64 VolatileFileId; 814 /* Followed by at least one */ 815 union { 816 struct smb2_lock_element lock; > 817 DECLARE_FLEX_ARRAY(struct smb2_lock_element, locks); 818 }; 819 } __packed; 820 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki