[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] x86: don't include {amd-, }iommu.h from fixmap.h


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <JBeulich@xxxxxxxx>
  • Date: Fri, 26 Jul 2019 13:34:08 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=suse.com;dmarc=pass action=none header.from=suse.com;dkim=pass header.d=suse.com;arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VwkhiX0IUzy7x5ZWKfmFaodd2z9jzfVP5eHzLfhChuo=; b=UIiqC5z+kJIO1laGVRsEoHa+ypnkeIdiawfRVBpVvrEKZMZlh+IG8yv5pNnnmFwjET4neFUvP+JnUzPLdDfc0RKiBJOPstcnbq2SF+C7gOH7j8e8a/L19UmFiC2kb0Kwr3tMriessSAja0DdeBWquMCx39M95izS4CjMgM3pWjDjf7CIp6WFkanX0pY70uXA4Xz+gaaIZHCBYkicyFinjqmTZcraunPxwAsoX7Lu1V+QLgbmCrOd24zY1x5zg79T2i1l0kZQZU5XhGbbGVlt5lHPeE3z2B1rfsKrFQRs1KzeT9vejk8m1ygdgrcqOIfiZ/kEnzNP02f3GHbDYyRN+w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L4yFHTKZ/B7Vicj0/4bMEVSMeTmLmG/hFpy9ikz5jrUYiqsND/vpcm5we46jpaQqUNYjrkt7E59DK0/0hLLtINqXjvMf3JHn6YxwovaY0/MK18WVaMTCWOv0bafw8FVSeV2ZtSAv+SPJ0uNHrZdHCAbQ0IZvaFMKb3u1q31qQ+spFDZpyJn/xaGDAJFnkqd2DF1TwLiDW12lMlr7EuPqHxksd4okA9f58TekSiVsczFuPZocZPrXiiI9Kg0coXjze4YNqqXTJXINe+B2VvUCSv4AFGABENXsCy//OHlqd665I+/pNoD0Anmnr3R4EdQReIlWK9/x3SR7dAWdc7RUuQ==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=JBeulich@xxxxxxxx;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Fri, 26 Jul 2019 13:45:11 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHVQ7bNqtABAqKiMUiURogAFDADgg==
  • Thread-topic: [PATCH] x86: don't include {amd-,}iommu.h from fixmap.h

The #include was added by 0700c962ac ("Add AMD IOMMU support into
hypervisor") and I then didn't drop it again in d7f913b8de ("AMD IOMMU:
use ioremap()"); similarly for xen/iommu.h in 99321e0e6c ("VT-d: use
ioremap()"). Avoid needlessly re-building unrelated files when only
IOMMU definitions have changed.

Two #include-s of xen/init.h turn out necessary as replacement.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

--- a/xen/drivers/acpi/apei/apei-io.c
+++ b/xen/drivers/acpi/apei/apei-io.c
@@ -21,6 +21,7 @@
  #include <xen/kernel.h>
  #include <xen/errno.h>
  #include <xen/delay.h>
+#include <xen/init.h>
  #include <xen/string.h>
  #include <xen/xmalloc.h>
  #include <xen/types.h>
--- a/xen/drivers/acpi/apei/erst.c
+++ b/xen/drivers/acpi/apei/erst.c
@@ -28,6 +28,7 @@
  #include <xen/kernel.h>
  #include <xen/errno.h>
  #include <xen/delay.h>
+#include <xen/init.h>
  #include <xen/string.h>
  #include <xen/types.h>
  #include <xen/spinlock.h>
--- a/xen/include/asm-x86/fixmap.h
+++ b/xen/include/asm-x86/fixmap.h
@@ -21,9 +21,7 @@
  #include <xen/acpi.h>
  #include <xen/pfn.h>
  #include <xen/kexec.h>
-#include <xen/iommu.h>
  #include <asm/apicdef.h>
-#include <asm/amd-iommu.h>
  #include <asm/msi.h>
  #include <acpi/apei.h>
  
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.