summaryrefslogtreecommitdiffstats
path: root/include/linux/exportfs.h
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2008-04-08 13:12:52 +0100
committerJ. Bruce Fields <bfields@citi.umich.edu>2008-04-23 16:13:42 -0400
commit9078dc08143e23b18ea72e70265f0df920cf2998 (patch)
treec83bfcc5bbfdf9d8bd23647aee77a11ab62f6faa /include/linux/exportfs.h
parentff7d9756b501744540be65e172d27ee321d86103 (diff)
downloadlinux-9078dc08143e23b18ea72e70265f0df920cf2998.tar.gz
linux-9078dc08143e23b18ea72e70265f0df920cf2998.tar.bz2
linux-9078dc08143e23b18ea72e70265f0df920cf2998.zip
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>
Diffstat (limited to 'include/linux/exportfs.h')
-rw-r--r--include/linux/exportfs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/exportfs.h b/include/linux/exportfs.h
index adcbb05b120b..de8387b7ceb6 100644
--- a/include/linux/exportfs.h
+++ b/include/linux/exportfs.h
@@ -43,7 +43,7 @@ struct fid {
u32 parent_ino;
u32 parent_gen;
} i32;
- __u32 raw[6];
+ __u32 raw[0];
};
};