diff options
author | David Howells <dhowells@redhat.com> | 2018-05-23 11:32:06 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2018-05-23 11:32:06 +0100 |
commit | c875c76a061df306ca82b69ba80b8da3ee758c87 (patch) | |
tree | 634907a1372ba2872d170af8d36f3303b97de5b1 /mm/swapfile.c | |
parent | 564def71765caf65040f926c0783b9c27cc6c087 (diff) | |
download | linux-stable-c875c76a061df306ca82b69ba80b8da3ee758c87.tar.gz linux-stable-c875c76a061df306ca82b69ba80b8da3ee758c87.tar.bz2 linux-stable-c875c76a061df306ca82b69ba80b8da3ee758c87.zip |
afs: Fix a Sparse warning in xdr_decode_AFSFetchStatus()
Sparse doesn't appear able to handle the conditionally-taken locks in
xdr_decode_AFSFetchStatus(), even though the lock and unlock are both
contingent on the same unvarying function argument.
Deal with this by interpolating a wrapper function that takes the lock if
needed and calls xdr_decode_AFSFetchStatus() on two separate branches, one
with the lock held and one without.
This allows Sparse to work out the locking.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'mm/swapfile.c')
0 files changed, 0 insertions, 0 deletions