mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-01 03:11:59 +00:00
Use a zero sized array for raw field in struct fid
The raw field's size can vary so we use a zero sized array since gcc will not allow a variable sized array inside a union. This has been tested with ext3 and gfs2 and relates to the bug report: http://lkml.org/lkml/2007/10/24/374 and discussion thread: http://lkml.org/lkml/2008/4/7/65 Signed-off-by: Steven Whitehouse <swhiteho@redhat.com> Cc: Christoph Hellwig <hch@infradead.org> Cc: Neil Brown <neilb@suse.de> Cc: Adrian Bunk <bunk@kernel.org> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
This commit is contained in:
parent
ff7d9756b5
commit
9078dc0814
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ struct fid {
|
||||||
u32 parent_ino;
|
u32 parent_ino;
|
||||||
u32 parent_gen;
|
u32 parent_gen;
|
||||||
} i32;
|
} i32;
|
||||||
__u32 raw[6];
|
__u32 raw[0];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue