public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* device_def_domain_type documentation header does not match implementation
@ 2024-05-30 13:57 Diederik de Haas
  2024-05-30 15:49 ` Robin Murphy
  2024-05-31  1:17 ` Baolu Lu
  0 siblings, 2 replies; 5+ messages in thread
From: Diederik de Haas @ 2024-05-30 13:57 UTC (permalink / raw)
  To: David Woodhouse, Lu Baolu, Joerg Roedel, Will Deacon
  Cc: Robin Murphy, iommu, linux-kernel, Diederik de Haas

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

Hi,

While looking into ``drivers/iommu/intel/iommu.c::device_def_domain_type`` 
function I noticed a discrepancy between the documentation header and the 
implementation.

``@startup: true if this is during early boot``
0e31a7266508 ("iommu/vt-d: Remove startup parameter from 
device_def_domain_type()")
removed the ``startup`` function parameter

returns ``IOMMU_DOMAIN_DMA: device requires a dynamic mapping domain``
28b41e2c6aeb ("iommu: Move def_domain type check for untrusted device into 
core") 
moved the possible return of ``IOMMU_DOMAIN_DMA`` to ``drivers/iommu/iommu.c``

But neither updated the documentation header.

Cheers,
  Diederik

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

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

end of thread, other threads:[~2024-05-31  1:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-30 13:57 device_def_domain_type documentation header does not match implementation Diederik de Haas
2024-05-30 15:49 ` Robin Murphy
2024-05-30 16:06   ` Diederik de Haas
2024-05-31  1:19   ` Baolu Lu
2024-05-31  1:17 ` Baolu Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox