提交 3e9d4154 编写于 作者: A Andrew Morton 提交者: Trond Myklebust

[PATCH] NFSv4: empty array fix

 Older gcc's don't like this.

 fs/nfs/nfs4proc.c:2194: field `data' has incomplete type
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 b7ef1956
...@@ -2191,7 +2191,7 @@ static void buf_to_pages(const void *buf, size_t buflen, ...@@ -2191,7 +2191,7 @@ static void buf_to_pages(const void *buf, size_t buflen,
struct nfs4_cached_acl { struct nfs4_cached_acl {
int cached; int cached;
size_t len; size_t len;
char data[]; char data[0];
}; };
static void nfs4_set_cached_acl(struct inode *inode, struct nfs4_cached_acl *acl) static void nfs4_set_cached_acl(struct inode *inode, struct nfs4_cached_acl *acl)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册