@@ -182,7 +182,7 @@ struct smb2_symlink_err_rsp {
182
182
__le16 PrintNameOffset ;
183
183
__le16 PrintNameLength ;
184
184
__le32 Flags ;
185
- __u8 PathBuffer [0 ];
185
+ __u8 PathBuffer [];
186
186
} __packed ;
187
187
188
188
/* SMB 3.1.1 and later dialects. See MS-SMB2 section 2.2.2.1 */
@@ -210,7 +210,7 @@ struct share_redirect_error_context_rsp {
210
210
__le16 Flags ;
211
211
__le16 TargetType ;
212
212
__le32 IPAddrCount ;
213
- struct move_dst_ipaddr IpAddrMoveList [0 ];
213
+ struct move_dst_ipaddr IpAddrMoveList [];
214
214
/* __u8 ResourceName[] */ /* Name of share as counted Unicode string */
215
215
} __packed ;
216
216
@@ -326,7 +326,7 @@ struct smb2_netname_neg_context {
326
326
__le16 ContextType ; /* 0x100 */
327
327
__le16 DataLength ;
328
328
__le32 Reserved ;
329
- __le16 NetName [0 ]; /* hostname of target converted to UCS-2 */
329
+ __le16 NetName []; /* hostname of target converted to UCS-2 */
330
330
} __packed ;
331
331
332
332
#define POSIX_CTXT_DATA_LEN 16
@@ -421,13 +421,13 @@ struct tree_connect_contexts {
421
421
__le16 ContextType ;
422
422
__le16 DataLength ;
423
423
__le32 Reserved ;
424
- __u8 Data [0 ];
424
+ __u8 Data [];
425
425
} __packed ;
426
426
427
427
/* Remoted identity tree connect context structures - see MS-SMB2 2.2.9.2.1 */
428
428
struct smb3_blob_data {
429
429
__le16 BlobSize ;
430
- __u8 BlobData [0 ];
430
+ __u8 BlobData [];
431
431
} __packed ;
432
432
433
433
/* Valid values for Attr */
@@ -477,14 +477,14 @@ struct remoted_identity_tcon_context {
477
477
__le16 DeviceGroups ; /* offset to SID_ARRAY_DATA struct */
478
478
__le16 UserClaims ; /* offset to BLOB_DATA struct */
479
479
__le16 DeviceClaims ; /* offset to BLOB_DATA struct */
480
- __u8 TicketInfo [0 ]; /* variable length buf - remoted identity data */
480
+ __u8 TicketInfo []; /* variable length buf - remoted identity data */
481
481
} __packed ;
482
482
483
483
struct smb2_tree_connect_req_extension {
484
484
__le32 TreeConnectContextOffset ;
485
485
__le16 TreeConnectContextCount ;
486
486
__u8 Reserved [10 ];
487
- __u8 PathName [0 ]; /* variable sized array */
487
+ __u8 PathName []; /* variable sized array */
488
488
/* followed by array of TreeConnectContexts */
489
489
} __packed ;
490
490
@@ -689,7 +689,7 @@ struct smb2_create_req {
689
689
__le16 NameLength ;
690
690
__le32 CreateContextsOffset ;
691
691
__le32 CreateContextsLength ;
692
- __u8 Buffer [0 ];
692
+ __u8 Buffer [];
693
693
} __packed ;
694
694
695
695
/*
@@ -727,7 +727,7 @@ struct create_context {
727
727
__le16 Reserved ;
728
728
__le16 DataOffset ;
729
729
__le32 DataLength ;
730
- __u8 Buffer [0 ];
730
+ __u8 Buffer [];
731
731
} __packed ;
732
732
733
733
#define SMB2_LEASE_READ_CACHING_HE 0x01
@@ -869,7 +869,7 @@ struct crt_sd_ctxt {
869
869
struct resume_key_req {
870
870
char ResumeKey [COPY_CHUNK_RES_KEY_SIZE ];
871
871
__le32 ContextLength ; /* MBZ */
872
- char Context [0 ]; /* ignored, Windows sets to 4 bytes of zero */
872
+ char Context []; /* ignored, Windows sets to 4 bytes of zero */
873
873
} __packed ;
874
874
875
875
/* this goes in the ioctl buffer when doing a copychunk request */
@@ -931,15 +931,15 @@ struct reparse_data_buffer {
931
931
__le32 ReparseTag ;
932
932
__le16 ReparseDataLength ;
933
933
__u16 Reserved ;
934
- __u8 DataBuffer [0 ]; /* Variable Length */
934
+ __u8 DataBuffer []; /* Variable Length */
935
935
} __packed ;
936
936
937
937
struct reparse_guid_data_buffer {
938
938
__le32 ReparseTag ;
939
939
__le16 ReparseDataLength ;
940
940
__u16 Reserved ;
941
941
__u8 ReparseGuid [16 ];
942
- __u8 DataBuffer [0 ]; /* Variable Length */
942
+ __u8 DataBuffer []; /* Variable Length */
943
943
} __packed ;
944
944
945
945
struct reparse_mount_point_data_buffer {
@@ -950,7 +950,7 @@ struct reparse_mount_point_data_buffer {
950
950
__le16 SubstituteNameLength ;
951
951
__le16 PrintNameOffset ;
952
952
__le16 PrintNameLength ;
953
- __u8 PathBuffer [0 ]; /* Variable Length */
953
+ __u8 PathBuffer []; /* Variable Length */
954
954
} __packed ;
955
955
956
956
#define SYMLINK_FLAG_RELATIVE 0x00000001
@@ -964,7 +964,7 @@ struct reparse_symlink_data_buffer {
964
964
__le16 PrintNameOffset ;
965
965
__le16 PrintNameLength ;
966
966
__le32 Flags ;
967
- __u8 PathBuffer [0 ]; /* Variable Length */
967
+ __u8 PathBuffer []; /* Variable Length */
968
968
} __packed ;
969
969
970
970
/* See MS-FSCC 2.1.2.6 and cifspdu.h for struct reparse_posix_data */
@@ -1066,7 +1066,7 @@ struct smb2_ioctl_req {
1066
1066
__le32 MaxOutputResponse ;
1067
1067
__le32 Flags ;
1068
1068
__u32 Reserved2 ;
1069
- __u8 Buffer [0 ];
1069
+ __u8 Buffer [];
1070
1070
} __packed ;
1071
1071
1072
1072
struct smb2_ioctl_rsp {
@@ -1469,7 +1469,7 @@ struct smb3_fs_vol_info {
1469
1469
__le32 VolumeLabelLength ; /* includes trailing null */
1470
1470
__u8 SupportsObjects ; /* True if eg like NTFS, supports objects */
1471
1471
__u8 Reserved ;
1472
- __u8 VolumeLabel [0 ]; /* variable len */
1472
+ __u8 VolumeLabel []; /* variable len */
1473
1473
} __packed ;
1474
1474
1475
1475
/* partial list of QUERY INFO levels */
@@ -1531,7 +1531,7 @@ struct smb2_file_rename_info { /* encoding of request for level 10 */
1531
1531
__u8 Reserved [7 ];
1532
1532
__u64 RootDirectory ; /* MBZ for network operations (why says spec?) */
1533
1533
__le32 FileNameLength ;
1534
- char FileName [0 ]; /* New name to be assigned */
1534
+ char FileName []; /* New name to be assigned */
1535
1535
} __packed ; /* level 10 Set */
1536
1536
1537
1537
struct smb2_file_link_info { /* encoding of request for level 11 */
@@ -1540,15 +1540,15 @@ struct smb2_file_link_info { /* encoding of request for level 11 */
1540
1540
__u8 Reserved [7 ];
1541
1541
__u64 RootDirectory ; /* MBZ for network operations (why says spec?) */
1542
1542
__le32 FileNameLength ;
1543
- char FileName [0 ]; /* Name to be assigned to new link */
1543
+ char FileName []; /* Name to be assigned to new link */
1544
1544
} __packed ; /* level 11 Set */
1545
1545
1546
1546
struct smb2_file_full_ea_info { /* encoding of response for level 15 */
1547
1547
__le32 next_entry_offset ;
1548
1548
__u8 flags ;
1549
1549
__u8 ea_name_length ;
1550
1550
__le16 ea_value_length ;
1551
- char ea_data [0 ]; /* \0 terminated name plus value */
1551
+ char ea_data []; /* \0 terminated name plus value */
1552
1552
} __packed ; /* level 15 Set */
1553
1553
1554
1554
/*
0 commit comments