linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: build warning after merge of the iommu tree
@ 2018-11-08  1:39 Stephen Rothwell
  2018-11-08  9:30 ` Joerg Roedel
  0 siblings, 1 reply; 9+ messages in thread
From: Stephen Rothwell @ 2018-11-08  1:39 UTC (permalink / raw)
  To: Joerg Roedel
  Cc: Linux-Next Mailing List, Linux Kernel Mailing List, Jacob Pan,
	Ashok Raj

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

Hi Joerg,

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

In file included from include/linux/bitmap.h:10,
                 from drivers/iommu/intel-iommu.c:24:
drivers/iommu/intel-iommu.c: In function 'iommu_calculate_agaw':
include/linux/kernel.h:845:29: warning: comparison of distinct pointer types lacks a cast
   (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
                             ^~
include/linux/kernel.h:859:4: note: in expansion of macro '__typecheck'
   (__typecheck(x, y) && __no_side_effects(x, y))
    ^~~~~~~~~~~
include/linux/kernel.h:869:24: note: in expansion of macro '__safe_cmp'
  __builtin_choose_expr(__safe_cmp(x, y), \
                        ^~~~~~~~~~
include/linux/kernel.h:878:19: note: in expansion of macro '__careful_cmp'
 #define min(x, y) __careful_cmp(x, y, <)
                   ^~~~~~~~~~~~~
drivers/iommu/intel-iommu.c:668:9: note: in expansion of macro 'min'
  mgaw = min(cap_mgaw(iommu->cap), DEFAULT_DOMAIN_ADDRESS_WIDTH);
         ^~~

Introduced by commit

  248808a0fad0 ("iommu/vt-d: Respect max guest address width in agaw")

-- 
Cheers,
Stephen Rothwell

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

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

* Re: linux-next: build warning after merge of the iommu tree
  2018-11-08  1:39 Stephen Rothwell
@ 2018-11-08  9:30 ` Joerg Roedel
  0 siblings, 0 replies; 9+ messages in thread
From: Joerg Roedel @ 2018-11-08  9:30 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Linux-Next Mailing List, Linux Kernel Mailing List, Jacob Pan,
	Ashok Raj

Hi Stephen,

On Thu, Nov 08, 2018 at 12:39:38PM +1100, Stephen Rothwell wrote:
> Introduced by commit
> 
>   248808a0fad0 ("iommu/vt-d: Respect max guest address width in agaw")

Thanks for the report! That commit was revoked by the submitter and is
now removed from the tree. The warning should disappear in the next
merge.

Regards,

	Joerg

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

* linux-next: build warning after merge of the iommu tree
@ 2019-02-27  2:20 Stephen Rothwell
  2019-02-27 18:48 ` sathyanarayanan kuppuswamy
  0 siblings, 1 reply; 9+ messages in thread
From: Stephen Rothwell @ 2019-02-27  2:20 UTC (permalink / raw)
  To: Joerg Roedel
  Cc: Linux Next Mailing List, Linux Kernel Mailing List,
	Kuppuswamy Sathyanarayanan

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

Hi Joerg,

After merging the iommu tree, today's linux-next build (arm
multi_v7_defconfig) produced this warning:

In file included from drivers/pci/pci.c:32:
include/linux/pci-ats.h:70:12: warning: 'pci_prg_resp_pasid_required' defined but not used [-Wunused-function]
 static int pci_prg_resp_pasid_required(struct pci_dev *pdev)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~

Introduced by commit

  e5567f5f6762 ("PCI/ATS: Add pci_prg_resp_pasid_required() interface.")

The non CONFIG_PCI_PASID version needs an "inline".

-- 
Cheers,
Stephen Rothwell

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

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

* Re: linux-next: build warning after merge of the iommu tree
  2019-02-27  2:20 Stephen Rothwell
@ 2019-02-27 18:48 ` sathyanarayanan kuppuswamy
  0 siblings, 0 replies; 9+ messages in thread
From: sathyanarayanan kuppuswamy @ 2019-02-27 18:48 UTC (permalink / raw)
  To: Stephen Rothwell, Joerg Roedel
  Cc: Linux Next Mailing List, Linux Kernel Mailing List

Hi,

On 2/26/19 6:20 PM, Stephen Rothwell wrote:
> Hi Joerg,
>
> After merging the iommu tree, today's linux-next build (arm
> multi_v7_defconfig) produced this warning:
>
> In file included from drivers/pci/pci.c:32:
> include/linux/pci-ats.h:70:12: warning: 'pci_prg_resp_pasid_required' defined but not used [-Wunused-function]
>   static int pci_prg_resp_pasid_required(struct pci_dev *pdev)
>              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Introduced by commit
>
>    e5567f5f6762 ("PCI/ATS: Add pci_prg_resp_pasid_required() interface.")
>
> The non CONFIG_PCI_PASID version needs an "inline".
I can submit the fix, but do we need a new patch to fix it or the 
original patch can be updated ?
>
-- 
Sathyanarayanan Kuppuswamy
Linux kernel developer


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

* linux-next: build warning after merge of the iommu tree
@ 2021-06-08  3:56 Stephen Rothwell
  0 siblings, 0 replies; 9+ messages in thread
From: Stephen Rothwell @ 2021-06-08  3:56 UTC (permalink / raw)
  To: Joerg Roedel; +Cc: Linux Kernel Mailing List, Linux Next Mailing List

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

Hi all,

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

WARNING: modpost: vmlinux.o(.text.unlikely+0xddf06): Section mismatch in reference from the function detect_ivrs() to the variable .init.data:amd_iommu_force_enable
The function detect_ivrs() references
the variable __initdata amd_iommu_force_enable.
This is often because detect_ivrs lacks a __initdata 
annotation or the annotation of amd_iommu_force_enable is wrong.

Introduced by commit

  b1e650db2cc4 ("iommu/amd: Add amd_iommu=force_enable option")

-- 
Cheers,
Stephen Rothwell

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

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

* linux-next: build warning after merge of the iommu tree
@ 2024-07-09  9:06 Stephen Rothwell
  2024-07-09 10:08 ` Will Deacon
  0 siblings, 1 reply; 9+ messages in thread
From: Stephen Rothwell @ 2024-07-09  9:06 UTC (permalink / raw)
  To: Joerg Roedel
  Cc: Mark-PK Tsai, Will Deacon, Linux Kernel Mailing List,
	Linux Next Mailing List

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

Hi all,

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

Documentation/userspace-api/index.rst:42: WARNING: toctree contains reference to nonexisting document 'userspace-api/iommu'

Introduced by commit

  d926e7c04843 ("docs: iommu: Remove outdated Documentation/userspace-api/iommu.rst")

-- 
Cheers,
Stephen Rothwell

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

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

* Re: linux-next: build warning after merge of the iommu tree
  2024-07-09  9:06 Stephen Rothwell
@ 2024-07-09 10:08 ` Will Deacon
  0 siblings, 0 replies; 9+ messages in thread
From: Will Deacon @ 2024-07-09 10:08 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Joerg Roedel, Mark-PK Tsai, Linux Kernel Mailing List,
	Linux Next Mailing List

On Tue, Jul 09, 2024 at 07:06:13PM +1000, Stephen Rothwell wrote:
> Hi all,

Welcome back!

> After merging the iommu tree, today's linux-next build (htmldocs)
> produced this warning:
> 
> Documentation/userspace-api/index.rst:42: WARNING: toctree contains reference to nonexisting document 'userspace-api/iommu'
> 
> Introduced by commit
> 
>   d926e7c04843 ("docs: iommu: Remove outdated Documentation/userspace-api/iommu.rst")

Cheers, I'll fold the fix into that change.

Will

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

* linux-next: build warning after merge of the iommu tree
@ 2025-07-16 10:42 Stephen Rothwell
  2025-07-17 10:04 ` Will Deacon
  0 siblings, 1 reply; 9+ messages in thread
From: Stephen Rothwell @ 2025-07-16 10:42 UTC (permalink / raw)
  To: Joerg Roedel
  Cc: Dheeraj Kumar Srivastava, Will Deacon, Linux Kernel Mailing List,
	Linux Next Mailing List

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

Hi all,

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

Documentation/ABI/testing/debugfs-amd-iommu:31: ERROR: Unexpected indentation. [docutils]
Documentation/ABI/testing/debugfs-amd-iommu:31: WARNING: Block quote ends without a blank line; unexpected unindent. [docutils]
Documentation/ABI/testing/debugfs-amd-iommu:31: WARNING: Block quote ends without a blank line; unexpected unindent. [docutils]

Introduced by commit

  39215bb3b0d9 ("iommu/amd: Add documentation for AMD IOMMU debugfs support")

-- 
Cheers,
Stephen Rothwell

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

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

* Re: linux-next: build warning after merge of the iommu tree
  2025-07-16 10:42 linux-next: build warning after merge of the iommu tree Stephen Rothwell
@ 2025-07-17 10:04 ` Will Deacon
  0 siblings, 0 replies; 9+ messages in thread
From: Will Deacon @ 2025-07-17 10:04 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Joerg Roedel, Dheeraj Kumar Srivastava, Linux Kernel Mailing List,
	Linux Next Mailing List

On Wed, Jul 16, 2025 at 08:42:07PM +1000, Stephen Rothwell wrote:
> After merging the iommu tree, today's linux-next build (htmldocs)
> produced this warning:
> 
> Documentation/ABI/testing/debugfs-amd-iommu:31: ERROR: Unexpected indentation. [docutils]
> Documentation/ABI/testing/debugfs-amd-iommu:31: WARNING: Block quote ends without a blank line; unexpected unindent. [docutils]
> Documentation/ABI/testing/debugfs-amd-iommu:31: WARNING: Block quote ends without a blank line; unexpected unindent. [docutils]
> 
> Introduced by commit
> 
>   39215bb3b0d9 ("iommu/amd: Add documentation for AMD IOMMU debugfs support")

Thanks, Stephen. That should be fixed now.

Will

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

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

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-16 10:42 linux-next: build warning after merge of the iommu tree Stephen Rothwell
2025-07-17 10:04 ` Will Deacon
  -- strict thread matches above, loose matches on Subject: below --
2024-07-09  9:06 Stephen Rothwell
2024-07-09 10:08 ` Will Deacon
2021-06-08  3:56 Stephen Rothwell
2019-02-27  2:20 Stephen Rothwell
2019-02-27 18:48 ` sathyanarayanan kuppuswamy
2018-11-08  1:39 Stephen Rothwell
2018-11-08  9:30 ` Joerg Roedel

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