smb: client, common: fix fortify warnings
[platform/kernel/linux-starfive.git] / fs / smb / client / cifspdu.h
index 83ccc51..c0513fb 100644 (file)
@@ -882,11 +882,13 @@ typedef struct smb_com_open_rsp {
        __u8 OplockLevel;
        __u16 Fid;
        __le32 CreateAction;
-       __le64 CreationTime;
-       __le64 LastAccessTime;
-       __le64 LastWriteTime;
-       __le64 ChangeTime;
-       __le32 FileAttributes;
+       struct_group(common_attributes,
+               __le64 CreationTime;
+               __le64 LastAccessTime;
+               __le64 LastWriteTime;
+               __le64 ChangeTime;
+               __le32 FileAttributes;
+       );
        __le64 AllocationSize;
        __le64 EndOfFile;
        __le16 FileType;
@@ -2264,11 +2266,13 @@ typedef struct {
 /* QueryFileInfo/QueryPathinfo (also for SetPath/SetFile) data buffer formats */
 /******************************************************************************/
 typedef struct { /* data block encoding of response to level 263 QPathInfo */
-       __le64 CreationTime;
-       __le64 LastAccessTime;
-       __le64 LastWriteTime;
-       __le64 ChangeTime;
-       __le32 Attributes;
+       struct_group(common_attributes,
+               __le64 CreationTime;
+               __le64 LastAccessTime;
+               __le64 LastWriteTime;
+               __le64 ChangeTime;
+               __le32 Attributes;
+       );
        __u32 Pad1;
        __le64 AllocationSize;
        __le64 EndOfFile;       /* size ie offset to first free byte in file */