diff options
author | Alexander Aring <aahringo@redhat.com> | 2022-04-04 22:06:37 +0200 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2022-04-06 21:02:20 +0200 |
commit | a8449f232ee316208185ef7fbedc4a2c48da2a34 (patch) | |
tree | 1e44b49e50cb40dcdf0c64c28f10f25a8bcfe4d9 /fs/dlm/member.c | |
parent | dlm: move global to static inits (diff) | |
download | linux-a8449f232ee316208185ef7fbedc4a2c48da2a34.tar.xz linux-a8449f232ee316208185ef7fbedc4a2c48da2a34.zip |
dlm: add __CHECKER__ for false positives
This patch will adds #ifndef __CHECKER__ for false positives warnings
about an imbalance lock/unlock srcu handling. Which are shown by running
sparse checks:
fs/dlm/midcomms.c:1065:20: warning: context imbalance in 'dlm_midcomms_get_mhandle' - wrong count at exit
Using __CHECKER__ will tell sparse to ignore these sections.
Those imbalances are false positive because from upper layer it is
always required to call a function in sequence, e.g. if
dlm_midcomms_get_mhandle() is successful there must be a
dlm_midcomms_commit_mhandle() call afterwards.
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/member.c')
0 files changed, 0 insertions, 0 deletions