* [PATCH 1/1] ACPI/IORT: Fix doc warnings in iort.c @ 2020-10-14 9:31 Shiju Jose 2020-10-16 6:59 ` Hanjun Guo ` (2 more replies) 0 siblings, 3 replies; 7+ messages in thread From: Shiju Jose @ 2020-10-14 9:31 UTC (permalink / raw) To: linux-acpi, linux-arm-kernel, linux-kernel, lorenzo.pieralisi, guohanjun, sudeep.holla, rjw, lenb Cc: linuxarm, shiju.jose Fix following warnings caused by mismatch between function parameters and function comments. drivers/acpi/arm64/iort.c:55: warning: Function parameter or member 'iort_node' not described in 'iort_set_fwnode' drivers/acpi/arm64/iort.c:55: warning: Excess function parameter 'node' description in 'iort_set_fwnode' drivers/acpi/arm64/iort.c:682: warning: Function parameter or member 'id' not described in 'iort_get_device_domain' drivers/acpi/arm64/iort.c:682: warning: Function parameter or member 'bus_token' not described in 'iort_get_device_domain' drivers/acpi/arm64/iort.c:682: warning: Excess function parameter 'req_id' description in 'iort_get_device_domain' drivers/acpi/arm64/iort.c:1142: warning: Function parameter or member 'dma_size' not described in 'iort_dma_setup' drivers/acpi/arm64/iort.c:1142: warning: Excess function parameter 'size' description in 'iort_dma_setup' drivers/acpi/arm64/iort.c:1534: warning: Function parameter or member 'ops' not described in 'iort_add_platform_device' Signed-off-by: Shiju Jose <shiju.jose@huawei.com> --- drivers/acpi/arm64/iort.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c index 9929ff50c0c0..770d84071a32 100644 --- a/drivers/acpi/arm64/iort.c +++ b/drivers/acpi/arm64/iort.c @@ -44,7 +44,7 @@ static DEFINE_SPINLOCK(iort_fwnode_lock); * iort_set_fwnode() - Create iort_fwnode and use it to register * iommu data in the iort_fwnode_list * - * @node: IORT table node associated with the IOMMU + * @iort_node: IORT table node associated with the IOMMU * @fwnode: fwnode associated with the IORT node * * Returns: 0 on success @@ -673,7 +673,8 @@ static int iort_dev_find_its_id(struct device *dev, u32 id, /** * iort_get_device_domain() - Find MSI domain related to a device * @dev: The device. - * @req_id: Requester ID for the device. + * @id: Requester ID for the device. + * @bus_token: irq domain bus token. * * Returns: the MSI domain for this device, NULL otherwise */ @@ -1136,7 +1137,7 @@ static int rc_dma_get_range(struct device *dev, u64 *size) * * @dev: device to configure * @dma_addr: device DMA address result pointer - * @size: DMA range size result pointer + * @dma_size: DMA range size result pointer */ void iort_dma_setup(struct device *dev, u64 *dma_addr, u64 *dma_size) { @@ -1526,6 +1527,7 @@ static __init const struct iort_dev_config *iort_get_dev_cfg( /** * iort_add_platform_device() - Allocate a platform device for IORT node * @node: Pointer to device ACPI IORT node + * @ops: Pointer to IORT device config struct * * Returns: 0 on success, <0 failure */ -- 2.17.1 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/1] ACPI/IORT: Fix doc warnings in iort.c 2020-10-14 9:31 [PATCH 1/1] ACPI/IORT: Fix doc warnings in iort.c Shiju Jose @ 2020-10-16 6:59 ` Hanjun Guo 2020-11-19 18:01 ` Lorenzo Pieralisi 2020-11-23 11:27 ` Will Deacon 2 siblings, 0 replies; 7+ messages in thread From: Hanjun Guo @ 2020-10-16 6:59 UTC (permalink / raw) To: Shiju Jose, linux-acpi, linux-arm-kernel, linux-kernel, lorenzo.pieralisi, sudeep.holla, rjw, lenb Cc: linuxarm On 2020/10/14 17:31, Shiju Jose wrote: > Fix following warnings caused by mismatch between > function parameters and function comments. > > drivers/acpi/arm64/iort.c:55: warning: Function parameter or member 'iort_node' not described in 'iort_set_fwnode' > drivers/acpi/arm64/iort.c:55: warning: Excess function parameter 'node' description in 'iort_set_fwnode' > drivers/acpi/arm64/iort.c:682: warning: Function parameter or member 'id' not described in 'iort_get_device_domain' > drivers/acpi/arm64/iort.c:682: warning: Function parameter or member 'bus_token' not described in 'iort_get_device_domain' > drivers/acpi/arm64/iort.c:682: warning: Excess function parameter 'req_id' description in 'iort_get_device_domain' > drivers/acpi/arm64/iort.c:1142: warning: Function parameter or member 'dma_size' not described in 'iort_dma_setup' > drivers/acpi/arm64/iort.c:1142: warning: Excess function parameter 'size' description in 'iort_dma_setup' > drivers/acpi/arm64/iort.c:1534: warning: Function parameter or member 'ops' not described in 'iort_add_platform_device' > > Signed-off-by: Shiju Jose <shiju.jose@huawei.com> Acked-by: Hanjun Guo <guohanjun@huawei.com> ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/1] ACPI/IORT: Fix doc warnings in iort.c 2020-10-14 9:31 [PATCH 1/1] ACPI/IORT: Fix doc warnings in iort.c Shiju Jose 2020-10-16 6:59 ` Hanjun Guo @ 2020-11-19 18:01 ` Lorenzo Pieralisi 2020-11-19 18:03 ` Catalin Marinas 2020-11-23 11:27 ` Will Deacon 2 siblings, 1 reply; 7+ messages in thread From: Lorenzo Pieralisi @ 2020-11-19 18:01 UTC (permalink / raw) To: Shiju Jose Cc: linux-acpi, linux-arm-kernel, linux-kernel, guohanjun, sudeep.holla, rjw, lenb, linuxarm, catalin.marinas [+Catalin - I hope it can go via arm64 tree, trivial doc fixup] On Wed, Oct 14, 2020 at 10:31:39AM +0100, Shiju Jose wrote: > Fix following warnings caused by mismatch between > function parameters and function comments. > > drivers/acpi/arm64/iort.c:55: warning: Function parameter or member 'iort_node' not described in 'iort_set_fwnode' > drivers/acpi/arm64/iort.c:55: warning: Excess function parameter 'node' description in 'iort_set_fwnode' > drivers/acpi/arm64/iort.c:682: warning: Function parameter or member 'id' not described in 'iort_get_device_domain' > drivers/acpi/arm64/iort.c:682: warning: Function parameter or member 'bus_token' not described in 'iort_get_device_domain' > drivers/acpi/arm64/iort.c:682: warning: Excess function parameter 'req_id' description in 'iort_get_device_domain' > drivers/acpi/arm64/iort.c:1142: warning: Function parameter or member 'dma_size' not described in 'iort_dma_setup' > drivers/acpi/arm64/iort.c:1142: warning: Excess function parameter 'size' description in 'iort_dma_setup' > drivers/acpi/arm64/iort.c:1534: warning: Function parameter or member 'ops' not described in 'iort_add_platform_device' > > Signed-off-by: Shiju Jose <shiju.jose@huawei.com> > --- > drivers/acpi/arm64/iort.c | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> > diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c > index 9929ff50c0c0..770d84071a32 100644 > --- a/drivers/acpi/arm64/iort.c > +++ b/drivers/acpi/arm64/iort.c > @@ -44,7 +44,7 @@ static DEFINE_SPINLOCK(iort_fwnode_lock); > * iort_set_fwnode() - Create iort_fwnode and use it to register > * iommu data in the iort_fwnode_list > * > - * @node: IORT table node associated with the IOMMU > + * @iort_node: IORT table node associated with the IOMMU > * @fwnode: fwnode associated with the IORT node > * > * Returns: 0 on success > @@ -673,7 +673,8 @@ static int iort_dev_find_its_id(struct device *dev, u32 id, > /** > * iort_get_device_domain() - Find MSI domain related to a device > * @dev: The device. > - * @req_id: Requester ID for the device. > + * @id: Requester ID for the device. > + * @bus_token: irq domain bus token. > * > * Returns: the MSI domain for this device, NULL otherwise > */ > @@ -1136,7 +1137,7 @@ static int rc_dma_get_range(struct device *dev, u64 *size) > * > * @dev: device to configure > * @dma_addr: device DMA address result pointer > - * @size: DMA range size result pointer > + * @dma_size: DMA range size result pointer > */ > void iort_dma_setup(struct device *dev, u64 *dma_addr, u64 *dma_size) > { > @@ -1526,6 +1527,7 @@ static __init const struct iort_dev_config *iort_get_dev_cfg( > /** > * iort_add_platform_device() - Allocate a platform device for IORT node > * @node: Pointer to device ACPI IORT node > + * @ops: Pointer to IORT device config struct > * > * Returns: 0 on success, <0 failure > */ > -- > 2.17.1 > > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/1] ACPI/IORT: Fix doc warnings in iort.c 2020-11-19 18:01 ` Lorenzo Pieralisi @ 2020-11-19 18:03 ` Catalin Marinas 2020-11-19 18:09 ` Lorenzo Pieralisi 2020-11-20 9:49 ` Will Deacon 0 siblings, 2 replies; 7+ messages in thread From: Catalin Marinas @ 2020-11-19 18:03 UTC (permalink / raw) To: Lorenzo Pieralisi Cc: Shiju Jose, linux-acpi, linux-arm-kernel, linux-kernel, guohanjun, sudeep.holla, rjw, lenb, linuxarm, Will Deacon On Thu, Nov 19, 2020 at 06:01:20PM +0000, Lorenzo Pieralisi wrote: > [+Catalin - I hope it can go via arm64 tree, trivial doc fixup] Or Will if you want it in 5.10, otherwise I can pick it up for 5.11. > On Wed, Oct 14, 2020 at 10:31:39AM +0100, Shiju Jose wrote: > > Fix following warnings caused by mismatch between > > function parameters and function comments. > > > > drivers/acpi/arm64/iort.c:55: warning: Function parameter or member 'iort_node' not described in 'iort_set_fwnode' > > drivers/acpi/arm64/iort.c:55: warning: Excess function parameter 'node' description in 'iort_set_fwnode' > > drivers/acpi/arm64/iort.c:682: warning: Function parameter or member 'id' not described in 'iort_get_device_domain' > > drivers/acpi/arm64/iort.c:682: warning: Function parameter or member 'bus_token' not described in 'iort_get_device_domain' > > drivers/acpi/arm64/iort.c:682: warning: Excess function parameter 'req_id' description in 'iort_get_device_domain' > > drivers/acpi/arm64/iort.c:1142: warning: Function parameter or member 'dma_size' not described in 'iort_dma_setup' > > drivers/acpi/arm64/iort.c:1142: warning: Excess function parameter 'size' description in 'iort_dma_setup' > > drivers/acpi/arm64/iort.c:1534: warning: Function parameter or member 'ops' not described in 'iort_add_platform_device' > > > > Signed-off-by: Shiju Jose <shiju.jose@huawei.com> > > --- > > drivers/acpi/arm64/iort.c | 8 +++++--- > > 1 file changed, 5 insertions(+), 3 deletions(-) > > Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> > > > diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c > > index 9929ff50c0c0..770d84071a32 100644 > > --- a/drivers/acpi/arm64/iort.c > > +++ b/drivers/acpi/arm64/iort.c > > @@ -44,7 +44,7 @@ static DEFINE_SPINLOCK(iort_fwnode_lock); > > * iort_set_fwnode() - Create iort_fwnode and use it to register > > * iommu data in the iort_fwnode_list > > * > > - * @node: IORT table node associated with the IOMMU > > + * @iort_node: IORT table node associated with the IOMMU > > * @fwnode: fwnode associated with the IORT node > > * > > * Returns: 0 on success > > @@ -673,7 +673,8 @@ static int iort_dev_find_its_id(struct device *dev, u32 id, > > /** > > * iort_get_device_domain() - Find MSI domain related to a device > > * @dev: The device. > > - * @req_id: Requester ID for the device. > > + * @id: Requester ID for the device. > > + * @bus_token: irq domain bus token. > > * > > * Returns: the MSI domain for this device, NULL otherwise > > */ > > @@ -1136,7 +1137,7 @@ static int rc_dma_get_range(struct device *dev, u64 *size) > > * > > * @dev: device to configure > > * @dma_addr: device DMA address result pointer > > - * @size: DMA range size result pointer > > + * @dma_size: DMA range size result pointer > > */ > > void iort_dma_setup(struct device *dev, u64 *dma_addr, u64 *dma_size) > > { > > @@ -1526,6 +1527,7 @@ static __init const struct iort_dev_config *iort_get_dev_cfg( > > /** > > * iort_add_platform_device() - Allocate a platform device for IORT node > > * @node: Pointer to device ACPI IORT node > > + * @ops: Pointer to IORT device config struct > > * > > * Returns: 0 on success, <0 failure > > */ > > -- > > 2.17.1 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/1] ACPI/IORT: Fix doc warnings in iort.c 2020-11-19 18:03 ` Catalin Marinas @ 2020-11-19 18:09 ` Lorenzo Pieralisi 2020-11-20 9:49 ` Will Deacon 1 sibling, 0 replies; 7+ messages in thread From: Lorenzo Pieralisi @ 2020-11-19 18:09 UTC (permalink / raw) To: Catalin Marinas Cc: Shiju Jose, linux-acpi, linux-arm-kernel, linux-kernel, guohanjun, sudeep.holla, rjw, lenb, linuxarm, Will Deacon On Thu, Nov 19, 2020 at 06:03:47PM +0000, Catalin Marinas wrote: > On Thu, Nov 19, 2020 at 06:01:20PM +0000, Lorenzo Pieralisi wrote: > > [+Catalin - I hope it can go via arm64 tree, trivial doc fixup] > > Or Will if you want it in 5.10, otherwise I can pick it up for 5.11. Thanks, not really urgent so I am not sure it can make the cut for an -rc5+, either way is fine. Thanks ! Lorenzo > > On Wed, Oct 14, 2020 at 10:31:39AM +0100, Shiju Jose wrote: > > > Fix following warnings caused by mismatch between > > > function parameters and function comments. > > > > > > drivers/acpi/arm64/iort.c:55: warning: Function parameter or member 'iort_node' not described in 'iort_set_fwnode' > > > drivers/acpi/arm64/iort.c:55: warning: Excess function parameter 'node' description in 'iort_set_fwnode' > > > drivers/acpi/arm64/iort.c:682: warning: Function parameter or member 'id' not described in 'iort_get_device_domain' > > > drivers/acpi/arm64/iort.c:682: warning: Function parameter or member 'bus_token' not described in 'iort_get_device_domain' > > > drivers/acpi/arm64/iort.c:682: warning: Excess function parameter 'req_id' description in 'iort_get_device_domain' > > > drivers/acpi/arm64/iort.c:1142: warning: Function parameter or member 'dma_size' not described in 'iort_dma_setup' > > > drivers/acpi/arm64/iort.c:1142: warning: Excess function parameter 'size' description in 'iort_dma_setup' > > > drivers/acpi/arm64/iort.c:1534: warning: Function parameter or member 'ops' not described in 'iort_add_platform_device' > > > > > > Signed-off-by: Shiju Jose <shiju.jose@huawei.com> > > > --- > > > drivers/acpi/arm64/iort.c | 8 +++++--- > > > 1 file changed, 5 insertions(+), 3 deletions(-) > > > > Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> > > > > > diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c > > > index 9929ff50c0c0..770d84071a32 100644 > > > --- a/drivers/acpi/arm64/iort.c > > > +++ b/drivers/acpi/arm64/iort.c > > > @@ -44,7 +44,7 @@ static DEFINE_SPINLOCK(iort_fwnode_lock); > > > * iort_set_fwnode() - Create iort_fwnode and use it to register > > > * iommu data in the iort_fwnode_list > > > * > > > - * @node: IORT table node associated with the IOMMU > > > + * @iort_node: IORT table node associated with the IOMMU > > > * @fwnode: fwnode associated with the IORT node > > > * > > > * Returns: 0 on success > > > @@ -673,7 +673,8 @@ static int iort_dev_find_its_id(struct device *dev, u32 id, > > > /** > > > * iort_get_device_domain() - Find MSI domain related to a device > > > * @dev: The device. > > > - * @req_id: Requester ID for the device. > > > + * @id: Requester ID for the device. > > > + * @bus_token: irq domain bus token. > > > * > > > * Returns: the MSI domain for this device, NULL otherwise > > > */ > > > @@ -1136,7 +1137,7 @@ static int rc_dma_get_range(struct device *dev, u64 *size) > > > * > > > * @dev: device to configure > > > * @dma_addr: device DMA address result pointer > > > - * @size: DMA range size result pointer > > > + * @dma_size: DMA range size result pointer > > > */ > > > void iort_dma_setup(struct device *dev, u64 *dma_addr, u64 *dma_size) > > > { > > > @@ -1526,6 +1527,7 @@ static __init const struct iort_dev_config *iort_get_dev_cfg( > > > /** > > > * iort_add_platform_device() - Allocate a platform device for IORT node > > > * @node: Pointer to device ACPI IORT node > > > + * @ops: Pointer to IORT device config struct > > > * > > > * Returns: 0 on success, <0 failure > > > */ > > > -- > > > 2.17.1 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/1] ACPI/IORT: Fix doc warnings in iort.c 2020-11-19 18:03 ` Catalin Marinas 2020-11-19 18:09 ` Lorenzo Pieralisi @ 2020-11-20 9:49 ` Will Deacon 1 sibling, 0 replies; 7+ messages in thread From: Will Deacon @ 2020-11-20 9:49 UTC (permalink / raw) To: Catalin Marinas, mark.rutland Cc: Lorenzo Pieralisi, Shiju Jose, linux-acpi, linux-arm-kernel, linux-kernel, guohanjun, sudeep.holla, rjw, lenb, linuxarm On Thu, Nov 19, 2020 at 06:03:47PM +0000, Catalin Marinas wrote: > On Thu, Nov 19, 2020 at 06:01:20PM +0000, Lorenzo Pieralisi wrote: > > [+Catalin - I hope it can go via arm64 tree, trivial doc fixup] > > Or Will if you want it in 5.10, otherwise I can pick it up for 5.11. I can pick this up for 5.10, but I won't be sending a pull request until next week, since I'm waiting for Mark's irq tracing fixes to appear and I don't have anything else queued atm. Will ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/1] ACPI/IORT: Fix doc warnings in iort.c 2020-10-14 9:31 [PATCH 1/1] ACPI/IORT: Fix doc warnings in iort.c Shiju Jose 2020-10-16 6:59 ` Hanjun Guo 2020-11-19 18:01 ` Lorenzo Pieralisi @ 2020-11-23 11:27 ` Will Deacon 2 siblings, 0 replies; 7+ messages in thread From: Will Deacon @ 2020-11-23 11:27 UTC (permalink / raw) To: sudeep.holla, lenb, linux-arm-kernel, linux-acpi, Shiju Jose, guohanjun, rjw, lorenzo.pieralisi, linux-kernel Cc: catalin.marinas, kernel-team, Will Deacon, linuxarm On Wed, 14 Oct 2020 10:31:39 +0100, Shiju Jose wrote: > Fix following warnings caused by mismatch between > function parameters and function comments. > > drivers/acpi/arm64/iort.c:55: warning: Function parameter or member 'iort_node' not described in 'iort_set_fwnode' > drivers/acpi/arm64/iort.c:55: warning: Excess function parameter 'node' description in 'iort_set_fwnode' > drivers/acpi/arm64/iort.c:682: warning: Function parameter or member 'id' not described in 'iort_get_device_domain' > drivers/acpi/arm64/iort.c:682: warning: Function parameter or member 'bus_token' not described in 'iort_get_device_domain' > drivers/acpi/arm64/iort.c:682: warning: Excess function parameter 'req_id' description in 'iort_get_device_domain' > drivers/acpi/arm64/iort.c:1142: warning: Function parameter or member 'dma_size' not described in 'iort_dma_setup' > drivers/acpi/arm64/iort.c:1142: warning: Excess function parameter 'size' description in 'iort_dma_setup' > drivers/acpi/arm64/iort.c:1534: warning: Function parameter or member 'ops' not described in 'iort_add_platform_device' Applied to arm64 (for-next/fixes), thanks! [1/1] ACPI/IORT: Fix doc warnings in iort.c https://git.kernel.org/arm64/c/774c4a3b5e5f Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2020-11-23 11:27 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2020-10-14 9:31 [PATCH 1/1] ACPI/IORT: Fix doc warnings in iort.c Shiju Jose 2020-10-16 6:59 ` Hanjun Guo 2020-11-19 18:01 ` Lorenzo Pieralisi 2020-11-19 18:03 ` Catalin Marinas 2020-11-19 18:09 ` Lorenzo Pieralisi 2020-11-20 9:49 ` Will Deacon 2020-11-23 11:27 ` Will Deacon
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).