Commit 79eee7c1 authored by Linus Torvalds's avatar Linus Torvalds

Avoid using pointers to anonymous structure initializers. It's a

gcc'ism, and even gcc can apparently get confused by it.
parent 46628744
......@@ -825,6 +825,7 @@ static inline struct hlist_head * d_hash(struct dentry * parent, unsigned long h
struct dentry * d_alloc_anon(struct inode *inode)
{
static const struct qstr anonstring = { "", 0, 0};
struct dentry *tmp;
struct dentry *res;
......@@ -833,7 +834,7 @@ struct dentry * d_alloc_anon(struct inode *inode)
return res;
}
tmp = d_alloc(NULL, &(const struct qstr) {"",0,0});
tmp = d_alloc(NULL, &anonstring);
if (!tmp)
return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment