mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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: Boris Ostrovsky <[email protected]> Signed-off-by: Trond Myklebust <[email protected]> (compile-)Tested-by: Boris Ostrovsky <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
This commit is contained in:
parent
fcfa447062
commit
445f288d70
1 changed files with 2 additions and 2 deletions
|
|
@ -71,8 +71,8 @@ const nfs4_stateid zero_stateid = {
|
|||
};
|
||||
const nfs4_stateid invalid_stateid = {
|
||||
{
|
||||
.seqid = cpu_to_be32(0xffffffffU),
|
||||
.other = { 0 },
|
||||
/* Funky initialiser keeps older gcc versions happy */
|
||||
.data = { 0xff, 0xff, 0xff, 0xff, 0 },
|
||||
},
|
||||
.type = NFS4_INVALID_STATEID_TYPE,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue