]> git.ipfire.org Git - thirdparty/linux.git/commit
scsi: ufs: mcq: Fix missing argument 'hba' in MCQ_OPR_OFFSET_n
authorMinwoo Im <minwoo.im@samsung.com>
Sun, 19 May 2024 22:14:56 +0000 (07:14 +0900)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 31 May 2024 00:45:39 +0000 (20:45 -0400)
commit2fc39848952dfb91a9233563cc1444669b8e79c3
tree99a004f7550ef3a5e20f4ab3d1ec2d8799c79a45
parent23646f013404a69e2cc5b1be51eef67e720d7021
scsi: ufs: mcq: Fix missing argument 'hba' in MCQ_OPR_OFFSET_n

The MCQ_OPR_OFFSET_n macro takes 'hba' in the caller context without
receiving 'hba' instance as an argument.  To prevent potential bugs in
future use cases, add an argument 'hba'.

Fixes: 2468da61ea09 ("scsi: ufs: core: mcq: Configure operation and runtime interface")
Cc: Asutosh Das <quic_asutoshd@quicinc.com>
Signed-off-by: Minwoo Im <minwoo.im@samsung.com>
Link: https://lore.kernel.org/r/20240519221457.772346-2-minwoo.im@samsung.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufs-mcq.c
include/ufs/ufshcd.h