Commit 445f288d authored by Trond Myklebust's avatar Trond Myklebust Committed by Anna Schumaker

NFSv4: Ensure gcc 4.4.4 can compile initialiser for "invalid_stateid"

gcc 4.4.4 is too old to have full C11 anonymous union support, so
the current initialiser fails to compile.
Reported-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
(compile-)Tested-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent fcfa4470
...@@ -71,8 +71,8 @@ const nfs4_stateid zero_stateid = { ...@@ -71,8 +71,8 @@ const nfs4_stateid zero_stateid = {
}; };
const nfs4_stateid invalid_stateid = { const nfs4_stateid invalid_stateid = {
{ {
.seqid = cpu_to_be32(0xffffffffU), /* Funky initialiser keeps older gcc versions happy */
.other = { 0 }, .data = { 0xff, 0xff, 0xff, 0xff, 0 },
}, },
.type = NFS4_INVALID_STATEID_TYPE, .type = NFS4_INVALID_STATEID_TYPE,
}; };
......
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