archive mirror
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <>
To: Tony Luck <>,
	Fenghua Yu <>,
	Thomas Gleixner <>,
	Ingo Molnar <>, Borislav Petkov <>,, "H. Peter Anvin" <>,,,
	Joerg Roedel <>,
Cc: Krzysztof Kozlowski <>
Subject: [PATCH 1/2] ia64: Hide the archdata.iommu field behind generic IOMMU_API
Date: Mon, 18 May 2020 14:08:54 +0200	[thread overview]
Message-ID: <> (raw)

There is a generic, kernel wide configuration symbol for enabling the
IOMMU specific bits: CONFIG_IOMMU_API.  Implementations (including
INTEL_IOMMU driver) select it so use it here as well.

This makes the conditional archdata.iommu field consistent with other
platforms and also fixes any compile test builds of other IOMMU drivers,
when INTEL_IOMMU is not selected).

For the case when INTEL_IOMMU and COMPILE_TEST are not selected, this
should create functionally equivalent code/choice.  With COMPILE_TEST
this field could appear if other IOMMU drivers are chosen but

Reported-by: kbuild test robot <>
Signed-off-by: Krzysztof Kozlowski <>


 arch/ia64/include/asm/device.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/ia64/include/asm/device.h b/arch/ia64/include/asm/device.h
index 410a769ece95..3eb397415381 100644
--- a/arch/ia64/include/asm/device.h
+++ b/arch/ia64/include/asm/device.h
@@ -6,7 +6,7 @@
 #define _ASM_IA64_DEVICE_H
 struct dev_archdata {
 	void *iommu; /* hook for IOMMU specific extension */

iommu mailing list

             reply	other threads:[~2020-05-18 12:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-18 12:08 Krzysztof Kozlowski [this message]
2020-05-18 12:08 ` [PATCH 2/2] x86: Hide the archdata.iommu field behind generic IOMMU_API Krzysztof Kozlowski
2020-05-27 14:30   ` Borislav Petkov
2020-05-27 14:45 ` [PATCH 1/2] ia64: " Joerg Roedel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).