From patchwork Tue Oct 17 00:11:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 826585 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="GK5x1Lq5"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yGGKZ154nz9t1G for ; Tue, 17 Oct 2017 11:29:38 +1100 (AEDT) Received: from localhost ([::1]:35794 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4FlI-0002Ga-1n for incoming@patchwork.ozlabs.org; Mon, 16 Oct 2017 20:29:36 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4FVh-0006Th-V4 for qemu-devel@nongnu.org; Mon, 16 Oct 2017 20:13:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4FVh-0004QZ-56 for qemu-devel@nongnu.org; Mon, 16 Oct 2017 20:13:29 -0400 Received: from mail-qk0-x243.google.com ([2607:f8b0:400d:c09::243]:46923) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e4FVh-0004QL-0P; Mon, 16 Oct 2017 20:13:29 -0400 Received: by mail-qk0-x243.google.com with SMTP id k123so29546qke.3; Mon, 16 Oct 2017 17:13:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XNzx5LObWYOMQx0d38am65vxcoQsD71JBoZeNRExPgU=; b=GK5x1Lq5YZPvWR93ouG59TmGhi/ISWFBhD1vbGyS04fyC2EJ75TuXrSjf611bQQzOv E0C91sPXYljknlBYQSELqY4PA0RLwaeOf3CE4ZNPELMo5RzE8a6pYgIbbBo6YuEE34Pg 8/tAnEU4Rpc6SUjMdCp4Fp2fGmZ2cu4qzoiLcnLxh4pgAlcwKK6+AuNkvs92NcmwfDLo GJ+YlDWXSkXxZTI8pD+sOD1kphHVdkKLv3rvuv80wtQ1hmKhiUwaPAYt4BAn2I6XiTk2 N0mxXJWoBNaeUX5vQzOPrjybimWQLFQRfiFBWNWEcJowYnx+ulR1xT9CQ/0hvaseTQMj slnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=XNzx5LObWYOMQx0d38am65vxcoQsD71JBoZeNRExPgU=; b=cM6O8w+BKFQ1bygdmlZ630IDYXvP/s76KT8Ks0XWAV4D4M3dbSTUIlwQQnImcBGyql 99wNTHRh1xeCVIr8FUFc65AIXs63Zi3ApIBQiCYBuuWusPVeIinizf/bYNRa96Z5/x3M UrIkLq1X0fgMyGbtungdh9WLsVcdXBMkIkXg8U//gE5AL749hSfb7Bmteur44loHSwt7 Rj1XBtvjl03nmSJbzAHPICXj3e7UQiYSE4xZoUUaa8hdK/TT5Dw9e+2eZVqQiQtsUWOw OyoYSKEyK3i8vupdSnG/zIS4XrQy0WNPAPcCEzH64siG7eo4m2qztUcK//yy1l1s6+3W k31w== X-Gm-Message-State: AMCzsaVpqHIQtx1xO/Ruo5aiIyyVDsQL+sqEWP9DnbZYx/b2ofyhMRtR 4alIqqEKUlg31AJJPbUYWOg= X-Google-Smtp-Source: ABhQp+SY9P3VIj3AeaIRGXhuLeu5Gy9ilxx7IadyT1Q9pbJQTbAQRAFOAXTeVcWZ22HhvATqD1ooRA== X-Received: by 10.55.177.129 with SMTP id a123mr15245548qkf.162.1508199208608; Mon, 16 Oct 2017 17:13:28 -0700 (PDT) Received: from x1.local ([181.93.89.178]) by smtp.gmail.com with ESMTPSA id r6sm5409043qkh.22.2017.10.16.17.13.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Oct 2017 17:13:28 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: Michael Tokarev Date: Mon, 16 Oct 2017 21:11:50 -0300 Message-Id: <20171017001209.32276-21-f4bug@amsat.org> X-Mailer: git-send-email 2.15.0.rc0 In-Reply-To: <20171017001209.32276-1-f4bug@amsat.org> References: <20171017001209.32276-1-f4bug@amsat.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::243 Subject: [Qemu-devel] [PATCH v2 20/39] amd_iommu: avoid needless includes in header file X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" instead move them to the source file Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth --- hw/i386/amd_iommu.h | 5 ----- hw/i386/amd_iommu.c | 5 ++++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/hw/i386/amd_iommu.h b/hw/i386/amd_iommu.h index d370ae3549..aeef802364 100644 --- a/hw/i386/amd_iommu.h +++ b/hw/i386/amd_iommu.h @@ -23,11 +23,6 @@ #include "hw/hw.h" #include "hw/pci/pci.h" -#include "hw/pci/msi.h" -#include "hw/sysbus.h" -#include "sysemu/dma.h" -#include "hw/i386/pc.h" -#include "hw/pci/pci_bus.h" #include "hw/i386/x86-iommu.h" /* Capability registers */ diff --git a/hw/i386/amd_iommu.c b/hw/i386/amd_iommu.c index ad8155ca4c..eeaf0e0aa8 100644 --- a/hw/i386/amd_iommu.c +++ b/hw/i386/amd_iommu.c @@ -20,7 +20,10 @@ * Cache implementation inspired by hw/i386/intel_iommu.c */ #include "qemu/osdep.h" -#include "hw/i386/amd_iommu.h" +#include "hw/i386/pc.h" +#include "hw/pci/msi.h" +#include "hw/pci/pci_bus.h" +#include "amd_iommu.h" #include "qapi/error.h" #include "qemu/error-report.h" #include "trace.h"