From patchwork Sat Jul 4 14:49:24 2020 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: 11643695 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 42C29913 for ; Sat, 4 Jul 2020 14:51:48 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1F22F214DB for ; Sat, 4 Jul 2020 14:51:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="M86GQvVj" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1F22F214DB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amsat.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jrjUn-00042Z-PR; Sat, 04 Jul 2020 14:50:25 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jrjUm-0003ES-PI for xen-devel@lists.xenproject.org; Sat, 04 Jul 2020 14:50:24 +0000 X-Inumbo-ID: a3f9bdae-be05-11ea-bca7-bc764e2007e4 Received: from mail-wr1-x441.google.com (unknown [2a00:1450:4864:20::441]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id a3f9bdae-be05-11ea-bca7-bc764e2007e4; Sat, 04 Jul 2020 14:50:02 +0000 (UTC) Received: by mail-wr1-x441.google.com with SMTP id z2so13504664wrp.2 for ; Sat, 04 Jul 2020 07:50:02 -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=/SEb7i40/nbfV3CvB7T6xkytpAoG+YE52veZZ5mv5j4=; b=M86GQvVjqh2GOpnc8959nIEqLnIltzOWwA63YgcRTjTllNzsFeKa2AxLUplFe59nVZ EU5gEhxt62SSXh8q7000ETaWmRIbSKTzrgZ47MtBnXMnZm75mqtFngMn13ekv5iU3uR1 jZH+QjvY71cexOwBR/zzvmBgICLG+ZXIDZGxG3evDVbBXwFvFbeNbh4ioXGgUGUaFauF lbh9Jk61RelYOfy760OtZib/qtDn/T5+sGmZ3flNc8ml4r0kTxIqEmHI5Z71CCawDYVS JHWip9FEybZwE41MmK/BYGDg85WJYNaGdThCFnN87eeYykN1tf2mZJKQABQuft2b5FSo Wb9w== 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=/SEb7i40/nbfV3CvB7T6xkytpAoG+YE52veZZ5mv5j4=; b=bCE1XVYMh3IC8dFrgKf3Cj4UFCjctmDCQDfJOOItTltY0F14a3+Y8CK9FrrAhjAnaB 9mJg2Z5ps8fNgYhDySiSB4OfOZjG5zr46zHP7TMC4Mp9vImUlBf4up/CWYKx4swvOIFA tuDL5OP7AA9y//uVI0qcV7+e65+woOkYhuPdMbBF3MDSL6f/qDOYuolrc5PzNeTOCtZX YGWxWauX30VhBFf0qr4FB1c1vZJ8SX/GY/JwCRiFFchv3dZ9LwQmroFP/QPFtfMnZZ21 qxi5ZRrkQHpep9sWKw6YAcpd2sB/G5NLu7IwcwabnL0TbDqGx5T3BUMFsImJbxAufrS6 g7yQ== X-Gm-Message-State: AOAM5333hzYQfqTsKlu9JSlSrja7buGoXQhZYT5Lh/Z0lkVrT9CGIbZ5 rTa5x8kQ9vY5b4Z4pVMfR2Q= X-Google-Smtp-Source: ABdhPJzU2sv77zfdcGa3LX0JoxfFviQ6DXsIevpTW1tzmmUhaY0yZ73I5eZpKHBXzbQobqiSJf7dUQ== X-Received: by 2002:adf:8b50:: with SMTP id v16mr43284603wra.188.1593874202076; Sat, 04 Jul 2020 07:50:02 -0700 (PDT) Received: from localhost.localdomain (1.red-83-51-162.dynamicip.rima-tde.net. [83.51.162.1]) by smtp.gmail.com with ESMTPSA id r10sm17135019wrm.17.2020.07.04.07.50.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jul 2020 07:50:01 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org, BALATON Zoltan Subject: [PATCH 07/26] hw/usb/hcd-dwc2: Restrict some headers to source Date: Sat, 4 Jul 2020 16:49:24 +0200 Message-Id: <20200704144943.18292-8-f4bug@amsat.org> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200704144943.18292-1-f4bug@amsat.org> References: <20200704144943.18292-1-f4bug@amsat.org> MIME-Version: 1.0 X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , "Michael S. Tsirkin" , Mark Cave-Ayland , Jiaxun Yang , Gerd Hoffmann , "Edgar E. Iglesias" , Huacai Chen , Stefano Stabellini , xen-devel@lists.xenproject.org, Yoshinori Sato , Paul Durrant , Magnus Damm , Markus Armbruster , =?utf-8?q?Herv=C3=A9_Poussineau?= , Marcel Apfelbaum , Anthony Perard , Samuel Thibault , Leif Lindholm , Andrzej Zaborowski , Aleksandar Rikalo , Eduardo Habkost , Alistair Francis , "Dr. David Alan Gilbert" , Beniamino Galvani , Niek Linnenbank , qemu-arm@nongnu.org, =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Richard Henderson , Radoslaw Biernacki , Igor Mitsyanko , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , Paul Zimmerman , qemu-ppc@nongnu.org, David Gibson , Paolo Bonzini Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" The header "usb/hcd-dwc2.h" doesn't need to include "qemu/timer.h", "sysemu/dma.h", "hw/irq.h" (the types required are forward declared). Include them in the source file which is the only one requiring the function declarations. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis Reviewed-by: Paul Zimmerman --- hw/usb/hcd-dwc2.h | 3 --- hw/usb/hcd-dwc2.c | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/usb/hcd-dwc2.h b/hw/usb/hcd-dwc2.h index 4ba809a07b..2adf0f53c7 100644 --- a/hw/usb/hcd-dwc2.h +++ b/hw/usb/hcd-dwc2.h @@ -19,11 +19,8 @@ #ifndef HW_USB_DWC2_H #define HW_USB_DWC2_H -#include "qemu/timer.h" -#include "hw/irq.h" #include "hw/sysbus.h" #include "hw/usb.h" -#include "sysemu/dma.h" #define DWC2_MMIO_SIZE 0x11000 diff --git a/hw/usb/hcd-dwc2.c b/hw/usb/hcd-dwc2.c index 590e75b455..ccf05d0823 100644 --- a/hw/usb/hcd-dwc2.c +++ b/hw/usb/hcd-dwc2.c @@ -36,8 +36,11 @@ #include "qapi/error.h" #include "hw/usb/dwc2-regs.h" #include "hw/usb/hcd-dwc2.h" +#include "hw/irq.h" +#include "sysemu/dma.h" #include "migration/vmstate.h" #include "trace.h" +#include "qemu/timer.h" #include "qemu/log.h" #include "hw/qdev-properties.h"