smb: client, common: fix fortify warnings
[platform/kernel/linux-starfive.git] / fs / smb / common / smb2pdu.h
index d58550c..63f969a 100644 (file)
@@ -700,13 +700,16 @@ struct smb2_close_rsp {
        __le16 StructureSize; /* 60 */
        __le16 Flags;
        __le32 Reserved;
-       __le64 CreationTime;
-       __le64 LastAccessTime;
-       __le64 LastWriteTime;
-       __le64 ChangeTime;
-       __le64 AllocationSize;  /* Beginning of FILE_STANDARD_INFO equivalent */
-       __le64 EndOfFile;
-       __le32 Attributes;
+       struct_group(network_open_info,
+               __le64 CreationTime;
+               __le64 LastAccessTime;
+               __le64 LastWriteTime;
+               __le64 ChangeTime;
+               /* Beginning of FILE_STANDARD_INFO equivalent */
+               __le64 AllocationSize;
+               __le64 EndOfFile;
+               __le32 Attributes;
+       );
 } __packed;