Commit 4de243c4 authored by Avri Altman's avatar Avri Altman Committed by Martin K. Petersen

scsi: ufs: mcq: Annotate ufshcd_inc_sq_tail() appropriately

Allow Sparse and such to know that the hwq lock should be held here.
Signed-off-by: default avatarAvri Altman <avri.altman@wdc.com>
Link: https://lore.kernel.org/r/20230329101303.18377-2-avri.altman@wdc.comSigned-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent cabb6374
......@@ -364,6 +364,7 @@ static inline bool ufs_is_valid_unit_desc_lun(struct ufs_dev_info *dev_info, u8
}
static inline void ufshcd_inc_sq_tail(struct ufs_hw_queue *q)
__must_hold(&q->sq_lock)
{
u32 mask = q->max_entries - 1;
u32 val;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment