diff options
author | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2022-03-01 14:30:08 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-03-09 06:30:34 +0300 |
commit | e9c478014b602fda2a99a6370d9eb2e5d7355246 (patch) | |
tree | cbe92a777ba1a423f965aa05780daa492e14d5af /drivers/pwm/pwm-imx27.c | |
parent | 71bb9ab6e3511b7bb98678a19eb8cf1ccbf3ca2f (diff) | |
download | linux-e9c478014b602fda2a99a6370d9eb2e5d7355246.tar.xz |
scsi: scsi_debug: Silence unexpected unlock warnings
The return statement inside the sdeb_read_lock(), sdeb_read_unlock(),
sdeb_write_lock() and sdeb_write_unlock() confuse sparse, leading to many
warnings about unexpected unlocks in the resp_xxx() functions.
Modify the lock/unlock functions using the __acquire() and __release()
inline annotations for the sdebug_no_rwlock == true case to avoid these
warnings.
Link: https://lore.kernel.org/r/20220301113009.595857-2-damien.lemoal@opensource.wdc.com
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/pwm/pwm-imx27.c')
0 files changed, 0 insertions, 0 deletions