linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] mailbox: correct kerneldoc
@ 2022-05-01 10:34 Krzysztof Kozlowski
  2022-05-01 10:34 ` [PATCH 2/2] mailbox: imx: fix duplicated initializer Krzysztof Kozlowski
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2022-05-01 10:34 UTC (permalink / raw)
  To: Jassi Brar, Viresh Kumar, Tushar Khandelwal, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Manivannan Sadhasivam, Andy Gross,
	Bjorn Andersson, Peng Fan, linux-kernel, linux-arm-kernel,
	linux-arm-msm
  Cc: Krzysztof Kozlowski

Correct kerneldoc warnings like:

  drivers/mailbox/arm_mhu_db.c:47:
    warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
  drivers/mailbox/qcom-ipcc.c:58:
    warning: Function parameter or member 'num_chans' not described in 'qcom_ipcc'

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/mailbox/arm_mhu_db.c | 2 +-
 drivers/mailbox/arm_mhuv2.c  | 3 ++-
 drivers/mailbox/qcom-ipcc.c  | 3 ++-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/mailbox/arm_mhu_db.c b/drivers/mailbox/arm_mhu_db.c
index 8674153cc893..aa0a4d83880f 100644
--- a/drivers/mailbox/arm_mhu_db.c
+++ b/drivers/mailbox/arm_mhu_db.c
@@ -44,7 +44,7 @@ struct arm_mhu {
 };
 
 /**
- * ARM MHU Mailbox allocated channel information
+ * struct mhu_db_channel - ARM MHU Mailbox allocated channel information
  *
  * @mhu: Pointer to parent mailbox device
  * @pchan: Physical channel within which this doorbell resides in
diff --git a/drivers/mailbox/arm_mhuv2.c b/drivers/mailbox/arm_mhuv2.c
index d997f8ebfa98..a47aef8df52f 100644
--- a/drivers/mailbox/arm_mhuv2.c
+++ b/drivers/mailbox/arm_mhuv2.c
@@ -160,7 +160,8 @@ enum mhuv2_frame {
  * struct mhuv2 - MHUv2 mailbox controller data
  *
  * @mbox:	Mailbox controller belonging to the MHU frame.
- * @send/recv:	Base address of the register mapping region.
+ * @send:	Base address of the register mapping region.
+ * @recv:	Base address of the register mapping region.
  * @frame:	Frame type: RECEIVER_FRAME or SENDER_FRAME.
  * @irq:	Interrupt.
  * @windows:	Channel windows implemented by the platform.
diff --git a/drivers/mailbox/qcom-ipcc.c b/drivers/mailbox/qcom-ipcc.c
index c5d963222014..881706da59c0 100644
--- a/drivers/mailbox/qcom-ipcc.c
+++ b/drivers/mailbox/qcom-ipcc.c
@@ -41,9 +41,10 @@ struct qcom_ipcc_chan_info {
  * @dev:		Device associated with this instance
  * @base:		Base address of the IPCC frame associated to APSS
  * @irq_domain:		The irq_domain associated with this instance
- * @chan:		The mailbox channels array
+ * @chans:		The mailbox channels array
  * @mchan:		The per-mailbox channel info array
  * @mbox:		The mailbox controller
+ * @num_chans:		Number of @chans elements
  * @irq:		Summary irq
  */
 struct qcom_ipcc {
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 2/2] mailbox: imx: fix duplicated initializer
  2022-05-01 10:34 [PATCH 1/2] mailbox: correct kerneldoc Krzysztof Kozlowski
@ 2022-05-01 10:34 ` Krzysztof Kozlowski
  2022-05-07  6:52   ` Peng Fan
  2022-05-19  7:57 ` [PATCH 1/2] mailbox: correct kerneldoc Krzysztof Kozlowski
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 10+ messages in thread
From: Krzysztof Kozlowski @ 2022-05-01 10:34 UTC (permalink / raw)
  To: Jassi Brar, Viresh Kumar, Tushar Khandelwal, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Manivannan Sadhasivam, Andy Gross,
	Bjorn Andersson, Peng Fan, linux-kernel, linux-arm-kernel,
	linux-arm-msm
  Cc: Krzysztof Kozlowski

rxdb field is being initialized twice:

  drivers/mailbox/imx-mailbox.c:889:19: error: initialized field overwritten [-Werror=override-init]
    889 |         .rxdb   = imx_mu_generic_rxdb,

Fixes: 315d2e562418 ("mailbox: imx: introduce rxdb callback")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/mailbox/imx-mailbox.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/mailbox/imx-mailbox.c b/drivers/mailbox/imx-mailbox.c
index e88f544a1548..df8a785be324 100644
--- a/drivers/mailbox/imx-mailbox.c
+++ b/drivers/mailbox/imx-mailbox.c
@@ -886,7 +886,6 @@ static const struct imx_mu_dcfg imx_mu_cfg_imx8ulp = {
 	.rx	= imx_mu_generic_rx,
 	.rxdb	= imx_mu_generic_rxdb,
 	.init	= imx_mu_init_generic,
-	.rxdb	= imx_mu_generic_rxdb,
 	.type	= IMX_MU_V2,
 	.xTR	= 0x200,
 	.xRR	= 0x280,
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* RE: [PATCH 2/2] mailbox: imx: fix duplicated initializer
  2022-05-01 10:34 ` [PATCH 2/2] mailbox: imx: fix duplicated initializer Krzysztof Kozlowski
@ 2022-05-07  6:52   ` Peng Fan
  2022-06-20 18:39     ` Krzysztof Kozlowski
  0 siblings, 1 reply; 10+ messages in thread
From: Peng Fan @ 2022-05-07  6:52 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Jassi Brar, Viresh Kumar, Tushar Khandelwal,
	Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	dl-linux-imx, Manivannan Sadhasivam, Andy Gross, Bjorn Andersson,
	linux-kernel, linux-arm-kernel, linux-arm-msm

> Subject: [PATCH 2/2] mailbox: imx: fix duplicated initializer
> 
> rxdb field is being initialized twice:
> 
>   drivers/mailbox/imx-mailbox.c:889:19: error: initialized field overwritten [-
> Werror=override-init]
>     889 |         .rxdb   = imx_mu_generic_rxdb,
> 
> Fixes: 315d2e562418 ("mailbox: imx: introduce rxdb callback")
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Reviewed-by: Peng Fan <peng.fan@nxp.com>

> ---
>  drivers/mailbox/imx-mailbox.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/mailbox/imx-mailbox.c b/drivers/mailbox/imx-mailbox.c
> index e88f544a1548..df8a785be324 100644
> --- a/drivers/mailbox/imx-mailbox.c
> +++ b/drivers/mailbox/imx-mailbox.c
> @@ -886,7 +886,6 @@ static const struct imx_mu_dcfg imx_mu_cfg_imx8ulp =
> {
>  	.rx	= imx_mu_generic_rx,
>  	.rxdb	= imx_mu_generic_rxdb,
>  	.init	= imx_mu_init_generic,
> -	.rxdb	= imx_mu_generic_rxdb,
>  	.type	= IMX_MU_V2,
>  	.xTR	= 0x200,
>  	.xRR	= 0x280,
> --
> 2.32.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/2] mailbox: correct kerneldoc
  2022-05-01 10:34 [PATCH 1/2] mailbox: correct kerneldoc Krzysztof Kozlowski
  2022-05-01 10:34 ` [PATCH 2/2] mailbox: imx: fix duplicated initializer Krzysztof Kozlowski
@ 2022-05-19  7:57 ` Krzysztof Kozlowski
  2022-05-19 11:07 ` Viresh Kumar
  2022-05-19 15:13 ` Sudeep Holla
  3 siblings, 0 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2022-05-19  7:57 UTC (permalink / raw)
  To: Jassi Brar, Viresh Kumar, Tushar Khandelwal, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Manivannan Sadhasivam, Andy Gross,
	Bjorn Andersson, Peng Fan, linux-kernel, linux-arm-kernel,
	linux-arm-msm

On 01/05/2022 12:34, Krzysztof Kozlowski wrote:
> Correct kerneldoc warnings like:
> 
>   drivers/mailbox/arm_mhu_db.c:47:
>     warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
>   drivers/mailbox/qcom-ipcc.c:58:
>     warning: Function parameter or member 'num_chans' not described in 'qcom_ipcc'
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Any comments on these patches? These fix warnings and they wait for
almost three weeks to be applied...

Can we get the warnings fixed?


Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/2] mailbox: correct kerneldoc
  2022-05-01 10:34 [PATCH 1/2] mailbox: correct kerneldoc Krzysztof Kozlowski
  2022-05-01 10:34 ` [PATCH 2/2] mailbox: imx: fix duplicated initializer Krzysztof Kozlowski
  2022-05-19  7:57 ` [PATCH 1/2] mailbox: correct kerneldoc Krzysztof Kozlowski
@ 2022-05-19 11:07 ` Viresh Kumar
  2022-05-19 15:13 ` Sudeep Holla
  3 siblings, 0 replies; 10+ messages in thread
From: Viresh Kumar @ 2022-05-19 11:07 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Jassi Brar, Tushar Khandelwal, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
	Manivannan Sadhasivam, Andy Gross, Bjorn Andersson, Peng Fan,
	linux-kernel, linux-arm-kernel, linux-arm-msm

On 01-05-22, 12:34, Krzysztof Kozlowski wrote:
> Correct kerneldoc warnings like:
> 
>   drivers/mailbox/arm_mhu_db.c:47:
>     warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
>   drivers/mailbox/qcom-ipcc.c:58:
>     warning: Function parameter or member 'num_chans' not described in 'qcom_ipcc'
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  drivers/mailbox/arm_mhu_db.c | 2 +-
>  drivers/mailbox/arm_mhuv2.c  | 3 ++-

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

-- 
viresh

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/2] mailbox: correct kerneldoc
  2022-05-01 10:34 [PATCH 1/2] mailbox: correct kerneldoc Krzysztof Kozlowski
                   ` (2 preceding siblings ...)
  2022-05-19 11:07 ` Viresh Kumar
@ 2022-05-19 15:13 ` Sudeep Holla
  2022-05-19 15:14   ` Krzysztof Kozlowski
  3 siblings, 1 reply; 10+ messages in thread
From: Sudeep Holla @ 2022-05-19 15:13 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Jassi Brar, Viresh Kumar, Tushar Khandelwal, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Manivannan Sadhasivam, Andy Gross,
	Bjorn Andersson, Peng Fan, linux-kernel, linux-arm-kernel,
	linux-arm-msm

On Sun, May 01, 2022 at 12:34:27PM +0200, Krzysztof Kozlowski wrote:
> Correct kerneldoc warnings like:
> 
>   drivers/mailbox/arm_mhu_db.c:47:
>     warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
>   drivers/mailbox/qcom-ipcc.c:58:
>     warning: Function parameter or member 'num_chans' not described in 'qcom_ipcc'
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  drivers/mailbox/arm_mhu_db.c | 2 +-

I thought I had copied it from arm_mhuc.c but apparently not. Anyways,

Acked-by: Sudeep Holla <sudeep.holla@arm.com>

-- 
Regards,
Sudeep

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/2] mailbox: correct kerneldoc
  2022-05-19 15:13 ` Sudeep Holla
@ 2022-05-19 15:14   ` Krzysztof Kozlowski
  2022-05-19 15:19     ` Sudeep Holla
  0 siblings, 1 reply; 10+ messages in thread
From: Krzysztof Kozlowski @ 2022-05-19 15:14 UTC (permalink / raw)
  To: Sudeep Holla
  Cc: Jassi Brar, Viresh Kumar, Tushar Khandelwal, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Manivannan Sadhasivam, Andy Gross,
	Bjorn Andersson, Peng Fan, linux-kernel, linux-arm-kernel,
	linux-arm-msm

On 19/05/2022 17:13, Sudeep Holla wrote:
> On Sun, May 01, 2022 at 12:34:27PM +0200, Krzysztof Kozlowski wrote:
>> Correct kerneldoc warnings like:
>>
>>   drivers/mailbox/arm_mhu_db.c:47:
>>     warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
>>   drivers/mailbox/qcom-ipcc.c:58:
>>     warning: Function parameter or member 'num_chans' not described in 'qcom_ipcc'
>>
>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>> ---
>>  drivers/mailbox/arm_mhu_db.c | 2 +-
> 
> I thought I had copied it from arm_mhuc.c but apparently not. Anyways,
> 
> Acked-by: Sudeep Holla <sudeep.holla@arm.com>
> 


Thanks! Could someone pick these two patches?

Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/2] mailbox: correct kerneldoc
  2022-05-19 15:14   ` Krzysztof Kozlowski
@ 2022-05-19 15:19     ` Sudeep Holla
  0 siblings, 0 replies; 10+ messages in thread
From: Sudeep Holla @ 2022-05-19 15:19 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Jassi Brar, Viresh Kumar, Tushar Khandelwal, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Manivannan Sadhasivam, Andy Gross,
	Bjorn Andersson, Peng Fan, linux-kernel, linux-arm-kernel,
	linux-arm-msm

On Thu, May 19, 2022 at 05:14:33PM +0200, Krzysztof Kozlowski wrote:
> On 19/05/2022 17:13, Sudeep Holla wrote:
> > On Sun, May 01, 2022 at 12:34:27PM +0200, Krzysztof Kozlowski wrote:
> >> Correct kerneldoc warnings like:
> >>
> >>   drivers/mailbox/arm_mhu_db.c:47:
> >>     warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
> >>   drivers/mailbox/qcom-ipcc.c:58:
> >>     warning: Function parameter or member 'num_chans' not described in 'qcom_ipcc'
> >>
> >> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> >> ---
> >>  drivers/mailbox/arm_mhu_db.c | 2 +-
> > 
> > I thought I had copied it from arm_mhuc.c but apparently not. Anyways,
> > 
> > Acked-by: Sudeep Holla <sudeep.holla@arm.com>
> > 
> 
> 
> Thanks! Could someone pick these two patches?
> 

They generally go via Jassi's tree.

Hi Jassi,

There is another PCC driver fix that I had acked few weeks back. Please
pick this as well as that when you start finalising patches for your PR
for v5.19.

-- 
Regards,
Sudeep

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 2/2] mailbox: imx: fix duplicated initializer
  2022-05-07  6:52   ` Peng Fan
@ 2022-06-20 18:39     ` Krzysztof Kozlowski
  2022-06-20 19:48       ` Jassi Brar
  0 siblings, 1 reply; 10+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-20 18:39 UTC (permalink / raw)
  To: Peng Fan, Jassi Brar, Viresh Kumar, Tushar Khandelwal, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	dl-linux-imx, Manivannan Sadhasivam, Andy Gross, Bjorn Andersson,
	linux-kernel, linux-arm-kernel, linux-arm-msm

On 07/05/2022 08:52, Peng Fan wrote:
>> Subject: [PATCH 2/2] mailbox: imx: fix duplicated initializer
>>
>> rxdb field is being initialized twice:
>>
>>   drivers/mailbox/imx-mailbox.c:889:19: error: initialized field overwritten [-
>> Werror=override-init]
>>     889 |         .rxdb   = imx_mu_generic_rxdb,
>>
>> Fixes: 315d2e562418 ("mailbox: imx: introduce rxdb callback")
>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> 
> Reviewed-by: Peng Fan <peng.fan@nxp.com>

Thanks for the review. This was a month ago... Anyone willing to pick it up?


Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 2/2] mailbox: imx: fix duplicated initializer
  2022-06-20 18:39     ` Krzysztof Kozlowski
@ 2022-06-20 19:48       ` Jassi Brar
  0 siblings, 0 replies; 10+ messages in thread
From: Jassi Brar @ 2022-06-20 19:48 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Peng Fan, Viresh Kumar, Tushar Khandelwal, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	dl-linux-imx, Manivannan Sadhasivam, Andy Gross, Bjorn Andersson,
	linux-kernel, linux-arm-kernel, linux-arm-msm

On Mon, Jun 20, 2022 at 1:39 PM Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org> wrote:
>
> On 07/05/2022 08:52, Peng Fan wrote:
> >> Subject: [PATCH 2/2] mailbox: imx: fix duplicated initializer
> >>
> >> rxdb field is being initialized twice:
> >>
> >>   drivers/mailbox/imx-mailbox.c:889:19: error: initialized field overwritten [-
> >> Werror=override-init]
> >>     889 |         .rxdb   = imx_mu_generic_rxdb,
> >>
> >> Fixes: 315d2e562418 ("mailbox: imx: introduce rxdb callback")
> >> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> >
> > Reviewed-by: Peng Fan <peng.fan@nxp.com>
>
> Thanks for the review. This was a month ago... Anyone willing to pick it up?
>
There was a predated fix, which was picked.

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/mailbox?id=262190a8ca2b1e1ec75b8a4f1c7f07e585facd6f

Thanks.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-06-20 19:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-01 10:34 [PATCH 1/2] mailbox: correct kerneldoc Krzysztof Kozlowski
2022-05-01 10:34 ` [PATCH 2/2] mailbox: imx: fix duplicated initializer Krzysztof Kozlowski
2022-05-07  6:52   ` Peng Fan
2022-06-20 18:39     ` Krzysztof Kozlowski
2022-06-20 19:48       ` Jassi Brar
2022-05-19  7:57 ` [PATCH 1/2] mailbox: correct kerneldoc Krzysztof Kozlowski
2022-05-19 11:07 ` Viresh Kumar
2022-05-19 15:13 ` Sudeep Holla
2022-05-19 15:14   ` Krzysztof Kozlowski
2022-05-19 15:19     ` Sudeep Holla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).