[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2450470c-b449-48a7-9fb7-aa363cbe885b@acm.org>
Date: Thu, 16 May 2024 08:03:17 -0600
From: Bart Van Assche <bvanassche@....org>
To: Minwoo Im <minwoo.im@...sung.com>,
"James E . J . Bottomley" <James.Bottomley@...senPartnership.com>,
"Martin K . Petersen" <martin.petersen@...cle.com>,
Alim Akhtar <alim.akhtar@...sung.com>, Avri Altman <avri.altman@....com>
Cc: linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
Joel Granados <j.granados@...sung.com>, gost.dev@...sung.com,
Asutosh Das <quic_asutoshd@...cinc.com>
Subject: Re: [PATCH] ufs: mcq: Fix missing argument 'hba' in MCQ_OPR_OFFSET_n
On 5/15/24 21:14, Minwoo Im wrote:
> /* Operation and runtime registers configuration */
> #define MCQ_CFG_n(r, i) ((r) + MCQ_QCFG_SIZE * (i))
> -#define MCQ_OPR_OFFSET_n(p, i) \
> +#define MCQ_OPR_OFFSET_n(hba, p, i) \
> (hba->mcq_opr[(p)].offset + hba->mcq_opr[(p)].stride * (i))
Since inline functions are preferred over macros, please convert the
MCQ_OPR_OFFSET_n() macro into an inline function.
Thanks,
Bart.
Powered by blists - more mailing lists