linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: build warning after merge of the iommufd tree
@ 2022-11-08  5:51 Stephen Rothwell
  0 siblings, 0 replies; 16+ messages in thread
From: Stephen Rothwell @ 2022-11-08  5:51 UTC (permalink / raw)
  To: Jason Gunthorpe
  Cc: Jason Gunthorpe, Nicolin Chen, Linux Kernel Mailing List,
	Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 323 bytes --]

Hi all,

After merging the iommufd tree, today's linux-next build (htmldocs)
produced this warning:

include/uapi/linux/iommufd.h:277: warning: Cannot understand  * @size: sizeof(struct iommu_option)

Introduced by commit

  5a013b3b3b2f ("iommufd: IOCTLs for the io_pagetable")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* linux-next: build warning after merge of the iommufd tree
@ 2023-03-31  4:31 Stephen Rothwell
  2023-03-31  5:09 ` Nicolin Chen
  0 siblings, 1 reply; 16+ messages in thread
From: Stephen Rothwell @ 2023-03-31  4:31 UTC (permalink / raw)
  To: Jason Gunthorpe
  Cc: Jason Gunthorpe, Nicolin Chen, Yi Liu, Linux Kernel Mailing List,
	Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 456 bytes --]

Hi all,

After merging the iommufd tree, today's linux-next build (htmldocs)
produced this warning:

drivers/iommu/iommufd/device.c:674: warning: Excess function parameter 'ioas_id' description in 'iommufd_access_create'

Introduced by commits

  7540af571dc7 ("iommufd: Create access in vfio_iommufd_emulated_bind()")
  8003e9a6c169 ("vfio-iommufd: Make vfio_iommufd_emulated_bind() return iommufd_access ID")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* linux-next: build warning after merge of the iommufd tree
@ 2023-03-31  4:41 Stephen Rothwell
  2023-03-31 17:45 ` Jason Gunthorpe
  0 siblings, 1 reply; 16+ messages in thread
From: Stephen Rothwell @ 2023-03-31  4:41 UTC (permalink / raw)
  To: Jason Gunthorpe
  Cc: Jason Gunthorpe, Linux Kernel Mailing List,
	Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 375 bytes --]

Hi all,

After merging the iommufd tree, today's linux-next build (htmldocs)
produced this warning:

Documentation/userspace-api/iommufd:184: drivers/iommu/iommufd/device.c:613: WARNING: Definition list ends without a blank line; unexpected unindent.

Introduced by commit

  e8b57a50334c ("iommufd: Add iommufd_device_replace()")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: linux-next: build warning after merge of the iommufd tree
  2023-03-31  4:31 Stephen Rothwell
@ 2023-03-31  5:09 ` Nicolin Chen
  2023-03-31 17:44   ` Jason Gunthorpe
  0 siblings, 1 reply; 16+ messages in thread
From: Nicolin Chen @ 2023-03-31  5:09 UTC (permalink / raw)
  To: Jason Gunthorpe, Stephen Rothwell
  Cc: Jason Gunthorpe, Yi Liu, Linux Kernel Mailing List,
	Linux Next Mailing List

Thanks for reporting.

On Fri, Mar 31, 2023 at 03:31:46PM +1100, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the iommufd tree, today's linux-next build (htmldocs)
> produced this warning:
> 
> drivers/iommu/iommufd/device.c:674: warning: Excess function parameter 'ioas_id' description in 'iommufd_access_create'
> 
> Introduced by commits
> 
>   7540af571dc7 ("iommufd: Create access in vfio_iommufd_emulated_bind()")

Should have dropped that line from kdoc in this commit.

diff --git a/drivers/iommu/iommufd/device.c b/drivers/iommu/iommufd/device.c
index fca09bb4e839..d791ab5830b4 100644
--- a/drivers/iommu/iommufd/device.c
+++ b/drivers/iommu/iommufd/device.c
@@ -795,7 +795,6 @@ void iommufd_access_destroy_object(struct iommufd_object *obj)
 /**
  * iommufd_access_create - Create an iommufd_access
  * @ictx: iommufd file descriptor
- * @ioas_id: ID for a IOMMUFD_OBJ_IOAS
  * @ops: Driver's ops to associate with the access
  * @data: Opaque data to pass into ops functions
  *

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

* Re: linux-next: build warning after merge of the iommufd tree
  2023-03-31  5:09 ` Nicolin Chen
@ 2023-03-31 17:44   ` Jason Gunthorpe
  0 siblings, 0 replies; 16+ messages in thread
From: Jason Gunthorpe @ 2023-03-31 17:44 UTC (permalink / raw)
  To: Nicolin Chen
  Cc: Stephen Rothwell, Yi Liu, Linux Kernel Mailing List,
	Linux Next Mailing List

On Thu, Mar 30, 2023 at 10:09:38PM -0700, Nicolin Chen wrote:
> Thanks for reporting.
> 
> On Fri, Mar 31, 2023 at 03:31:46PM +1100, Stephen Rothwell wrote:
> > Hi all,
> > 
> > After merging the iommufd tree, today's linux-next build (htmldocs)
> > produced this warning:
> > 
> > drivers/iommu/iommufd/device.c:674: warning: Excess function parameter 'ioas_id' description in 'iommufd_access_create'
> > 
> > Introduced by commits
> > 
> >   7540af571dc7 ("iommufd: Create access in vfio_iommufd_emulated_bind()")
> 
> Should have dropped that line from kdoc in this commit.
> 
> diff --git a/drivers/iommu/iommufd/device.c b/drivers/iommu/iommufd/device.c
> index fca09bb4e839..d791ab5830b4 100644
> --- a/drivers/iommu/iommufd/device.c
> +++ b/drivers/iommu/iommufd/device.c
> @@ -795,7 +795,6 @@ void iommufd_access_destroy_object(struct iommufd_object *obj)
>  /**
>   * iommufd_access_create - Create an iommufd_access
>   * @ictx: iommufd file descriptor
> - * @ioas_id: ID for a IOMMUFD_OBJ_IOAS
>   * @ops: Driver's ops to associate with the access
>   * @data: Opaque data to pass into ops functions
>   *

Got it thanks

Jason

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

* Re: linux-next: build warning after merge of the iommufd tree
  2023-03-31  4:41 linux-next: build warning after merge of the iommufd tree Stephen Rothwell
@ 2023-03-31 17:45 ` Jason Gunthorpe
  0 siblings, 0 replies; 16+ messages in thread
From: Jason Gunthorpe @ 2023-03-31 17:45 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: Linux Kernel Mailing List, Linux Next Mailing List

On Fri, Mar 31, 2023 at 03:41:02PM +1100, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the iommufd tree, today's linux-next build (htmldocs)
> produced this warning:
> 
> Documentation/userspace-api/iommufd:184: drivers/iommu/iommufd/device.c:613: WARNING: Definition list ends without a blank line; unexpected unindent.
> 
> Introduced by commit
> 
>   e8b57a50334c ("iommufd: Add iommufd_device_replace()")

Got it, thanks

Jason 



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

* linux-next: build warning after merge of the iommufd tree
@ 2025-03-18 10:33 Stephen Rothwell
  2025-03-28  6:57 ` Stephen Rothwell
  0 siblings, 1 reply; 16+ messages in thread
From: Stephen Rothwell @ 2025-03-18 10:33 UTC (permalink / raw)
  To: Jason Gunthorpe
  Cc: Nicolin Chen, Linux Kernel Mailing List, Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 783 bytes --]

Hi all,

After merging the iommufd tree, today's linux-next build (htmldocs)
produced this warning:

Documentation/userspace-api/iommufd:323: include/uapi/linux/iommufd.h:1033: CRITICAL: Unexpected section title or transition.

------------------------------------------------------------------------- [docutils]
WARNING: kernel-doc 'scripts/kernel-doc -rst -enable-lineno include/uapi/linux/iommufd.h' processing failed with: Documentation/userspace-api/iommufd:323: include/uapi/linux/iommufd.h:1033: (SEVERE/4) Unexpected section title or transition.

-------------------------------------------------------------------------

Introduced by commit

  50c842dd6cd3 ("iommufd: Add IOMMUFD_OBJ_VEVENTQ and IOMMUFD_CMD_VEVENTQ_ALLOC")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* linux-next: build warning after merge of the iommufd tree
@ 2025-03-21  8:36 Stephen Rothwell
  2025-03-21 11:39 ` Jason Gunthorpe
  0 siblings, 1 reply; 16+ messages in thread
From: Stephen Rothwell @ 2025-03-21  8:36 UTC (permalink / raw)
  To: Jason Gunthorpe; +Cc: Linux Kernel Mailing List, Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 297 bytes --]

Hi all,

After merging the iommufd tree, today's linux-next build (x86_64
allmodconfig) produced this warning:

vmlinux.o: warning: objtool: iommu_dma_get_msi_page() falls through to next function __iommu_dma_unmap()

I have no idea where that came from.

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: linux-next: build warning after merge of the iommufd tree
  2025-03-21  8:36 Stephen Rothwell
@ 2025-03-21 11:39 ` Jason Gunthorpe
  2025-03-26  2:43   ` Valdis Klētnieks
  0 siblings, 1 reply; 16+ messages in thread
From: Jason Gunthorpe @ 2025-03-21 11:39 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: Linux Kernel Mailing List, Linux Next Mailing List

On Fri, Mar 21, 2025 at 07:36:00PM +1100, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the iommufd tree, today's linux-next build (x86_64
> allmodconfig) produced this warning:
> 
> vmlinux.o: warning: objtool: iommu_dma_get_msi_page() falls through to next function __iommu_dma_unmap()
> 
> I have no idea where that came from.

Me too, I've been ignoring weird objtool things because I don't know
what to do with them :\

Jason

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

* Re: linux-next: build warning after merge of the iommufd tree
  2025-03-21 11:39 ` Jason Gunthorpe
@ 2025-03-26  2:43   ` Valdis Klētnieks
  0 siblings, 0 replies; 16+ messages in thread
From: Valdis Klētnieks @ 2025-03-26  2:43 UTC (permalink / raw)
  To: Jason Gunthorpe
  Cc: Stephen Rothwell, Linux Kernel Mailing List,
	Linux Next Mailing List

On Fri, 21 Mar 2025 08:39:32 -0300, Jason Gunthorpe said:
> On Fri, Mar 21, 2025 at 07:36:00PM +1100, Stephen Rothwell wrote:

> > vmlinux.o: warning: objtool: iommu_dma_get_msi_page() falls through to next function __iommu_dma_unmap()
> > 
> > I have no idea where that came from.
>
> Me too, I've been ignoring weird objtool things because I don't know
> what to do with them :\

It's particularly annoying if you turned on the recently added CONFIG_OBJTOOL_WERROR=y

\0\0\0\0\0\0\0\0

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

* Re: linux-next: build warning after merge of the iommufd tree
  2025-03-18 10:33 Stephen Rothwell
@ 2025-03-28  6:57 ` Stephen Rothwell
  2025-03-28 11:49   ` Bagas Sanjaya
  0 siblings, 1 reply; 16+ messages in thread
From: Stephen Rothwell @ 2025-03-28  6:57 UTC (permalink / raw)
  To: Jason Gunthorpe
  Cc: Nicolin Chen, Linux Kernel Mailing List, Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 920 bytes --]

Hi all,

On Tue, 18 Mar 2025 21:33:59 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> After merging the iommufd tree, today's linux-next build (htmldocs)
> produced this warning:
> 
> Documentation/userspace-api/iommufd:323: include/uapi/linux/iommufd.h:1033: CRITICAL: Unexpected section title or transition.
> 
> ------------------------------------------------------------------------- [docutils]
> WARNING: kernel-doc 'scripts/kernel-doc -rst -enable-lineno include/uapi/linux/iommufd.h' processing failed with: Documentation/userspace-api/iommufd:323: include/uapi/linux/iommufd.h:1033: (SEVERE/4) Unexpected section title or transition.
> 
> -------------------------------------------------------------------------
> 
> Introduced by commit
> 
>   50c842dd6cd3 ("iommufd: Add IOMMUFD_OBJ_VEVENTQ and IOMMUFD_CMD_VEVENTQ_ALLOC")

Any progress on this?

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: linux-next: build warning after merge of the iommufd tree
  2025-03-28  6:57 ` Stephen Rothwell
@ 2025-03-28 11:49   ` Bagas Sanjaya
  0 siblings, 0 replies; 16+ messages in thread
From: Bagas Sanjaya @ 2025-03-28 11:49 UTC (permalink / raw)
  To: Stephen Rothwell, Jason Gunthorpe
  Cc: Nicolin Chen, Linux Kernel Mailing List, Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 1183 bytes --]

On Fri, Mar 28, 2025 at 05:57:45PM +1100, Stephen Rothwell wrote:
> Hi all,
> 
> On Tue, 18 Mar 2025 21:33:59 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> >
> > After merging the iommufd tree, today's linux-next build (htmldocs)
> > produced this warning:
> > 
> > Documentation/userspace-api/iommufd:323: include/uapi/linux/iommufd.h:1033: CRITICAL: Unexpected section title or transition.
> > 
> > ------------------------------------------------------------------------- [docutils]
> > WARNING: kernel-doc 'scripts/kernel-doc -rst -enable-lineno include/uapi/linux/iommufd.h' processing failed with: Documentation/userspace-api/iommufd:323: include/uapi/linux/iommufd.h:1033: (SEVERE/4) Unexpected section title or transition.
> > 
> > -------------------------------------------------------------------------
> > 
> > Introduced by commit
> > 
> >   50c842dd6cd3 ("iommufd: Add IOMMUFD_OBJ_VEVENTQ and IOMMUFD_CMD_VEVENTQ_ALLOC")
> 
> Any progress on this?

Should've been fixed by [1].

Thanks.

[1]: https://lore.kernel.org/linux-doc/20250328114654.55840-1-bagasdotme@gmail.com/

-- 
An old man doll... just what I always wanted! - Clara

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

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

* linux-next: build warning after merge of the iommufd tree
@ 2025-07-11  8:25 Stephen Rothwell
  2025-07-11 13:38 ` Jason Gunthorpe
  0 siblings, 1 reply; 16+ messages in thread
From: Stephen Rothwell @ 2025-07-11  8:25 UTC (permalink / raw)
  To: Jason Gunthorpe
  Cc: Jason Gunthorpe, Nicolin Chen, Linux Kernel Mailing List,
	Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 358 bytes --]

Hi all,

After merging the iommufd tree, today's linux-next build (htmldocs)
produced this warning:

Documentation/userspace-api/iommufd:335: include/uapi/linux/iommufd.h:1272: ERROR: Unexpected indentation. [docutils]

Introduced by commit

  c4e9e9b4227e ("iommufd/viommu: Add IOMMUFD_CMD_HW_QUEUE_ALLOC ioctl")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* linux-next: build warning after merge of the iommufd tree
@ 2025-07-11  8:35 Stephen Rothwell
  2025-07-11 14:04 ` Jason Gunthorpe
  0 siblings, 1 reply; 16+ messages in thread
From: Stephen Rothwell @ 2025-07-11  8:35 UTC (permalink / raw)
  To: Jason Gunthorpe
  Cc: Jason Gunthorpe, Nicolin Chen, Linux Kernel Mailing List,
	Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 409 bytes --]

Hi all,

After merging the iommufd tree, today's linux-next build (htmldocs)
produced this warning:

include/uapi/linux/iommufd.h:607: warning: cannot understand function prototype: 'struct iommu_hw_info_tegra241_cmdqv '

Introduced by commit

  b135de24cfc0 ("iommu/tegra241-cmdqv: Add user-space use support")

You forgot the "struct" in the kerneldoc comment.

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: linux-next: build warning after merge of the iommufd tree
  2025-07-11  8:25 Stephen Rothwell
@ 2025-07-11 13:38 ` Jason Gunthorpe
  0 siblings, 0 replies; 16+ messages in thread
From: Jason Gunthorpe @ 2025-07-11 13:38 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Nicolin Chen, Linux Kernel Mailing List, Linux Next Mailing List

On Fri, Jul 11, 2025 at 06:25:01PM +1000, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the iommufd tree, today's linux-next build (htmldocs)
> produced this warning:
> 
> Documentation/userspace-api/iommufd:335: include/uapi/linux/iommufd.h:1272: ERROR: Unexpected indentation. [docutils]
> 
> Introduced by commit
> 
>   c4e9e9b4227e ("iommufd/viommu: Add IOMMUFD_CMD_HW_QUEUE_ALLOC ioctl")

I fixed this with:

--- a/include/uapi/linux/iommufd.h
+++ b/include/uapi/linux/iommufd.h
@@ -1175,7 +1175,8 @@ enum iommu_hw_queue_type {
  * and @length.
  *
  * A vIOMMU can allocate multiple queues, but it must use a different @index per
- * type to separate each allocation, e.g.
+ * type to separate each allocation, e.g::
+ *
  *     Type1 HW queue0, Type1 HW queue1, Type2 HW queue0, ...
  */
 struct iommu_hw_queue_alloc {

Thanks,
Jason 

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

* Re: linux-next: build warning after merge of the iommufd tree
  2025-07-11  8:35 Stephen Rothwell
@ 2025-07-11 14:04 ` Jason Gunthorpe
  0 siblings, 0 replies; 16+ messages in thread
From: Jason Gunthorpe @ 2025-07-11 14:04 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Nicolin Chen, Linux Kernel Mailing List, Linux Next Mailing List

On Fri, Jul 11, 2025 at 06:35:26PM +1000, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the iommufd tree, today's linux-next build (htmldocs)
> produced this warning:
> 
> include/uapi/linux/iommufd.h:607: warning: cannot understand function prototype: 'struct iommu_hw_info_tegra241_cmdqv '
> 
> Introduced by commit
> 
>   b135de24cfc0 ("iommu/tegra241-cmdqv: Add user-space use support")
> 
> You forgot the "struct" in the kerneldoc comment.

I fixed it with this:

--- a/include/uapi/linux/iommufd.h
+++ b/include/uapi/linux/iommufd.h
@@ -592,8 +592,9 @@ struct iommu_hw_info_arm_smmuv3 {
 };
 
 /**
- * iommu_hw_info_tegra241_cmdqv - NVIDIA Tegra241 CMDQV Hardware Information
- *                                (IOMMU_HW_INFO_TYPE_TEGRA241_CMDQV)
+ * struct iommu_hw_info_tegra241_cmdqv - NVIDIA Tegra241 CMDQV Hardware
+ *         Information (IOMMU_HW_INFO_TYPE_TEGRA241_CMDQV)
+ *
  * @flags: Must be 0
  * @version: Version number for the CMDQ-V HW for PARAM bits[03:00]
  * @log2vcmdqs: Log2 of the total number of VCMDQs for PARAM bits[07:04]


Thanks,
Jason



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

end of thread, other threads:[~2025-07-11 14:04 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-31  4:41 linux-next: build warning after merge of the iommufd tree Stephen Rothwell
2023-03-31 17:45 ` Jason Gunthorpe
  -- strict thread matches above, loose matches on Subject: below --
2025-07-11  8:35 Stephen Rothwell
2025-07-11 14:04 ` Jason Gunthorpe
2025-07-11  8:25 Stephen Rothwell
2025-07-11 13:38 ` Jason Gunthorpe
2025-03-21  8:36 Stephen Rothwell
2025-03-21 11:39 ` Jason Gunthorpe
2025-03-26  2:43   ` Valdis Klētnieks
2025-03-18 10:33 Stephen Rothwell
2025-03-28  6:57 ` Stephen Rothwell
2025-03-28 11:49   ` Bagas Sanjaya
2023-03-31  4:31 Stephen Rothwell
2023-03-31  5:09 ` Nicolin Chen
2023-03-31 17:44   ` Jason Gunthorpe
2022-11-08  5:51 Stephen Rothwell

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).