* [PATCH v2] PCI: rockchip: Add missing fields descriptions for struct rockchip_pcie_ep
@ 2024-12-16 13:34 Damien Le Moal
2024-12-17 4:49 ` Manivannan Sadhasivam
2024-12-22 21:12 ` Krzysztof Wilczyński
0 siblings, 2 replies; 3+ messages in thread
From: Damien Le Moal @ 2024-12-16 13:34 UTC (permalink / raw)
To: linux-pci, Manivannan Sadhasivam, Krzysztof Wilczyński,
Kishon Vijay Abraham I, Bjorn Helgaas
Cc: Niklas Cassel
When compiling the rockchip endpoint driver with -W=1, gcc output the
following warnings:
drivers/pci/controller/pcie-rockchip-ep.c:59: warning: Function parameter or struct member 'perst_irq' not described in 'rockchip_pcie_ep'
drivers/pci/controller/pcie-rockchip-ep.c:59: warning: Function parameter or struct member 'perst_asserted' not described in 'rockchip_pcie_ep'
drivers/pci/controller/pcie-rockchip-ep.c:59: warning: Function parameter or struct member 'link_up' not described in 'rockchip_pcie_ep'
drivers/pci/controller/pcie-rockchip-ep.c:59: warning: Function parameter or struct member 'link_training' not described in 'rockchip_pcie_ep'
Avoid these warnings by adding the missing field descriptions in
struct rockchip_pcie_ep kdoc comment.
Reported-by: Bjorn Helgaas <helgaas@kernel.org>
Fixes: a7137cbf6bd5 ("PCI: rockchip-ep: Handle PERST# signal in EP mode")
Fixes: bd6e61df4b2e ("PCI: rockchip-ep: Improve link training")
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
---
Changes from v1:
- Addressed Manivannan's comments
drivers/pci/controller/pcie-rockchip-ep.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/pci/controller/pcie-rockchip-ep.c b/drivers/pci/controller/pcie-rockchip-ep.c
index 1064b7b06cef..4f978a17fdbb 100644
--- a/drivers/pci/controller/pcie-rockchip-ep.c
+++ b/drivers/pci/controller/pcie-rockchip-ep.c
@@ -40,6 +40,10 @@
* @irq_pci_fn: the latest PCI function that has updated the mapping of
* the MSI/INTX IRQ dedicated outbound region.
* @irq_pending: bitmask of asserted INTX IRQs.
+ * @perst_irq: IRQ used for the PERST# signal.
+ * @perst_asserted: True if the PERST# signal was asserted.
+ * @link_up: True if the PCI link is up.
+ * @link_training: Work item to execute PCI link training.
*/
struct rockchip_pcie_ep {
struct rockchip_pcie rockchip;
--
2.47.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] PCI: rockchip: Add missing fields descriptions for struct rockchip_pcie_ep
2024-12-16 13:34 [PATCH v2] PCI: rockchip: Add missing fields descriptions for struct rockchip_pcie_ep Damien Le Moal
@ 2024-12-17 4:49 ` Manivannan Sadhasivam
2024-12-22 21:12 ` Krzysztof Wilczyński
1 sibling, 0 replies; 3+ messages in thread
From: Manivannan Sadhasivam @ 2024-12-17 4:49 UTC (permalink / raw)
To: Damien Le Moal
Cc: linux-pci, Krzysztof Wilczyński, Kishon Vijay Abraham I,
Bjorn Helgaas, Niklas Cassel
On Mon, Dec 16, 2024 at 10:34:04PM +0900, Damien Le Moal wrote:
> When compiling the rockchip endpoint driver with -W=1, gcc output the
> following warnings:
>
> drivers/pci/controller/pcie-rockchip-ep.c:59: warning: Function parameter or struct member 'perst_irq' not described in 'rockchip_pcie_ep'
> drivers/pci/controller/pcie-rockchip-ep.c:59: warning: Function parameter or struct member 'perst_asserted' not described in 'rockchip_pcie_ep'
> drivers/pci/controller/pcie-rockchip-ep.c:59: warning: Function parameter or struct member 'link_up' not described in 'rockchip_pcie_ep'
> drivers/pci/controller/pcie-rockchip-ep.c:59: warning: Function parameter or struct member 'link_training' not described in 'rockchip_pcie_ep'
>
> Avoid these warnings by adding the missing field descriptions in
> struct rockchip_pcie_ep kdoc comment.
>
> Reported-by: Bjorn Helgaas <helgaas@kernel.org>
> Fixes: a7137cbf6bd5 ("PCI: rockchip-ep: Handle PERST# signal in EP mode")
> Fixes: bd6e61df4b2e ("PCI: rockchip-ep: Improve link training")
> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
- Mani
> ---
> Changes from v1:
> - Addressed Manivannan's comments
>
> drivers/pci/controller/pcie-rockchip-ep.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/pci/controller/pcie-rockchip-ep.c b/drivers/pci/controller/pcie-rockchip-ep.c
> index 1064b7b06cef..4f978a17fdbb 100644
> --- a/drivers/pci/controller/pcie-rockchip-ep.c
> +++ b/drivers/pci/controller/pcie-rockchip-ep.c
> @@ -40,6 +40,10 @@
> * @irq_pci_fn: the latest PCI function that has updated the mapping of
> * the MSI/INTX IRQ dedicated outbound region.
> * @irq_pending: bitmask of asserted INTX IRQs.
> + * @perst_irq: IRQ used for the PERST# signal.
> + * @perst_asserted: True if the PERST# signal was asserted.
> + * @link_up: True if the PCI link is up.
> + * @link_training: Work item to execute PCI link training.
> */
> struct rockchip_pcie_ep {
> struct rockchip_pcie rockchip;
> --
> 2.47.1
>
--
மணிவண்ணன் சதாசிவம்
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] PCI: rockchip: Add missing fields descriptions for struct rockchip_pcie_ep
2024-12-16 13:34 [PATCH v2] PCI: rockchip: Add missing fields descriptions for struct rockchip_pcie_ep Damien Le Moal
2024-12-17 4:49 ` Manivannan Sadhasivam
@ 2024-12-22 21:12 ` Krzysztof Wilczyński
1 sibling, 0 replies; 3+ messages in thread
From: Krzysztof Wilczyński @ 2024-12-22 21:12 UTC (permalink / raw)
To: Damien Le Moal
Cc: linux-pci, Manivannan Sadhasivam, Kishon Vijay Abraham I,
Bjorn Helgaas, Niklas Cassel
Hello,
> When compiling the rockchip endpoint driver with -W=1, gcc output the
> following warnings:
>
> drivers/pci/controller/pcie-rockchip-ep.c:59: warning: Function parameter or struct member 'perst_irq' not described in 'rockchip_pcie_ep'
> drivers/pci/controller/pcie-rockchip-ep.c:59: warning: Function parameter or struct member 'perst_asserted' not described in 'rockchip_pcie_ep'
> drivers/pci/controller/pcie-rockchip-ep.c:59: warning: Function parameter or struct member 'link_up' not described in 'rockchip_pcie_ep'
> drivers/pci/controller/pcie-rockchip-ep.c:59: warning: Function parameter or struct member 'link_training' not described in 'rockchip_pcie_ep'
>
> Avoid these warnings by adding the missing field descriptions in
> struct rockchip_pcie_ep kdoc comment.
Applied to controller/rockchip, thank you!
[01/01] PCI: rockchip: Add missing fields descriptions for struct rockchip_pcie_ep
https://git.kernel.org/pci/pci/c/220bd83f9da1
Krzysztof
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-12-22 21:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-16 13:34 [PATCH v2] PCI: rockchip: Add missing fields descriptions for struct rockchip_pcie_ep Damien Le Moal
2024-12-17 4:49 ` Manivannan Sadhasivam
2024-12-22 21:12 ` Krzysztof Wilczyński
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox