diff options
author | Linus Torvalds <[email protected]> | 2016-05-27 17:20:27 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2016-05-27 17:20:27 -0700 |
commit | e0714ec4f9efe7b86828b0dcc077fd8f5d8e5e91 (patch) | |
tree | 368f2597e554ab9f62c0c11e3a5bb6d191b79c77 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | d102a56edba7a3f236454716fa09920e66772044 (diff) |
nfs: fix anonymous member initializer build failure with older compilers
Older versions of gcc don't understand named initializers inside a
anonymous structure or union member. It can be worked around by adding
the bracin gin the initializer for the anonymous member.
Without this, gcc 4.4.4 will fail the build with
CC fs/nfs/nfs4state.o
fs/nfs/nfs4state.c:69: error: unknown field ‘data’ specified in initializer
fs/nfs/nfs4state.c:69: warning: missing braces around initializer
fs/nfs/nfs4state.c:69: warning: (near initialization for ‘zero_stateid.<anonymous>.data’)
make[2]: *** [fs/nfs/nfs4state.o] Error 1
introduced in commit 93b717fd81bf ("NFSv4: Label stateids with the type")
Reported-and-tested-by: Boris Ostrovsky <[email protected]>
Cc: Anna Schumaker <[email protected]>
Cc: Trond Myklebust <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions