usb: Clean up includes

Clean up includes so that osdep.h is included first and headers
which it implies are not included manually.

This commit was created with scripts/clean-includes.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1453832250-766-20-git-send-email-peter.maydell@linaro.org
This commit is contained in:
Peter Maydell 2016-01-26 18:17:12 +00:00
parent e8d4046559
commit e532b2e008
35 changed files with 38 additions and 15 deletions

View File

@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "hw/hw.h" #include "hw/hw.h"
#include "hw/usb.h" #include "hw/usb.h"
#include "hw/qdev.h" #include "hw/qdev.h"

View File

@ -26,6 +26,7 @@
* the db parameter. * the db parameter.
*/ */
#include "qemu/osdep.h"
#include <eventt.h> #include <eventt.h>
#include <vevent.h> #include <vevent.h>
#include <vreader.h> #include <vreader.h>

View File

@ -8,6 +8,7 @@
* See the COPYING file in the top-level directory. * See the COPYING file in the top-level directory.
*/ */
#include "qemu/osdep.h"
#include "sysemu/char.h" #include "sysemu/char.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "qemu/sockets.h" #include "qemu/sockets.h"

View File

@ -19,6 +19,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>. * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "hw/usb.h" #include "hw/usb.h"
#include "qemu/iov.h" #include "qemu/iov.h"

View File

@ -23,6 +23,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "hw/usb.h" #include "hw/usb.h"
#include "qemu/iov.h" #include "qemu/iov.h"

View File

@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "hw/usb.h" #include "hw/usb.h"
#include "hw/usb/desc.h" #include "hw/usb/desc.h"

View File

@ -1,4 +1,4 @@
#include <ctype.h> #include "qemu/osdep.h"
#include "hw/usb.h" #include "hw/usb.h"
#include "hw/usb/desc.h" #include "hw/usb/desc.h"

View File

@ -29,6 +29,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "hw/usb.h" #include "hw/usb.h"
#include "hw/usb/desc.h" #include "hw/usb/desc.h"

View File

@ -18,6 +18,7 @@
* with this program; if not, see <http://www.gnu.org/licenses/>. * with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "hw/usb.h" #include "hw/usb.h"

View File

@ -22,6 +22,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "hw/hw.h" #include "hw/hw.h"
#include "ui/console.h" #include "ui/console.h"
#include "hw/usb.h" #include "hw/usb.h"

View File

@ -21,6 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "trace.h" #include "trace.h"
#include "hw/usb.h" #include "hw/usb.h"

View File

@ -9,11 +9,10 @@
* This code is licensed under the GPL v2 or later. * This code is licensed under the GPL v2 or later.
*/ */
#include "qemu/osdep.h"
#include <wchar.h> #include <wchar.h>
#include <dirent.h> #include <dirent.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/statvfs.h> #include <sys/statvfs.h>
#ifdef __linux__ #ifdef __linux__
#include <sys/inotify.h> #include <sys/inotify.h>

View File

@ -23,6 +23,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "hw/usb.h" #include "hw/usb.h"
#include "hw/usb/desc.h" #include "hw/usb/desc.h"

View File

@ -8,6 +8,7 @@
* This code is licensed under the LGPL. * This code is licensed under the LGPL.
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "hw/usb.h" #include "hw/usb.h"

View File

@ -34,6 +34,7 @@
* Not sure which messages trigger this. * Not sure which messages trigger this.
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "hw/usb.h" #include "hw/usb.h"

View File

@ -7,6 +7,7 @@
* This code is licensed under the LGPL. * This code is licensed under the LGPL.
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "qemu/option.h" #include "qemu/option.h"

View File

@ -9,6 +9,7 @@
* See the COPYING file in the top-level directory. * See the COPYING file in the top-level directory.
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/option.h" #include "qemu/option.h"
#include "qemu/config-file.h" #include "qemu/config-file.h"

View File

@ -25,6 +25,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "hw/hw.h" #include "hw/hw.h"
#include "ui/console.h" #include "ui/console.h"
#include "hw/usb.h" #include "hw/usb.h"

View File

@ -15,6 +15,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>. * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include "qemu/osdep.h"
#include "hw/usb/hcd-ehci.h" #include "hw/usb/hcd-ehci.h"
#include "qemu/range.h" #include "qemu/range.h"

View File

@ -15,6 +15,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>. * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include "qemu/osdep.h"
#include "hw/usb/hcd-ehci.h" #include "hw/usb/hcd-ehci.h"
static const VMStateDescription vmstate_ehci_sysbus = { static const VMStateDescription vmstate_ehci_sysbus = {

View File

@ -27,6 +27,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>. * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include "qemu/osdep.h"
#include "hw/usb/ehci-regs.h" #include "hw/usb/ehci-regs.h"
#include "hw/usb/hcd-ehci.h" #include "hw/usb/hcd-ehci.h"
#include "trace.h" #include "trace.h"

View File

@ -20,6 +20,7 @@
* *
* Only host-mode and non-DMA accesses are currently supported. * Only host-mode and non-DMA accesses are currently supported.
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/timer.h" #include "qemu/timer.h"
#include "hw/usb.h" #include "hw/usb.h"

View File

@ -25,6 +25,7 @@
* o BIOS work to boot from USB storage * o BIOS work to boot from USB storage
*/ */
#include "qemu/osdep.h"
#include "hw/hw.h" #include "hw/hw.h"
#include "qemu/timer.h" #include "qemu/timer.h"
#include "hw/usb.h" #include "hw/usb.h"

View File

@ -25,6 +25,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "hw/hw.h" #include "hw/hw.h"
#include "hw/usb.h" #include "hw/usb.h"
#include "hw/usb/uhci-regs.h" #include "hw/usb/uhci-regs.h"

View File

@ -18,6 +18,7 @@
* You should have received a copy of the GNU Lesser General Public * You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>. * License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include "qemu/osdep.h"
#include "hw/hw.h" #include "hw/hw.h"
#include "qemu/timer.h" #include "qemu/timer.h"
#include "hw/usb.h" #include "hw/usb.h"

View File

@ -30,6 +30,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "hw/usb.h" #include "hw/usb.h"
#include "hw/usb/host.h" #include "hw/usb/host.h"

View File

@ -33,6 +33,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include <poll.h> #include <poll.h>
#include <libusb.h> #include <libusb.h>

View File

@ -30,6 +30,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "ui/console.h" #include "ui/console.h"
#include "hw/usb.h" #include "hw/usb.h"

View File

@ -19,6 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "hw/hw.h" #include "hw/hw.h"
#include "hw/usb.h" #include "hw/usb.h"

View File

@ -12,6 +12,7 @@
* (at your option) any later version. * (at your option) any later version.
*/ */
#include "qemu/osdep.h"
#include "quirks.h" #include "quirks.h"
#include "hw/usb.h" #include "hw/usb.h"

View File

@ -25,6 +25,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/timer.h" #include "qemu/timer.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"

View File

@ -7,12 +7,10 @@
* See the COPYING file in the top-level directory. * See the COPYING file in the top-level directory.
*/ */
#include "qemu/osdep.h"
#include <glib.h> #include <glib.h>
#include <string.h>
#include <stdio.h>
#include "libqtest.h" #include "libqtest.h"
#include "libqos/pci-pc.h" #include "libqos/pci-pc.h"
#include "qemu/osdep.h"
#include "hw/usb/uhci-regs.h" #include "hw/usb/uhci-regs.h"
#include "hw/usb/ehci-regs.h" #include "hw/usb/ehci-regs.h"
#include "libqos/usb.h" #include "libqos/usb.h"

View File

@ -7,10 +7,9 @@
* See the COPYING file in the top-level directory. * See the COPYING file in the top-level directory.
*/ */
#include <glib.h>
#include <string.h>
#include "libqtest.h"
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <glib.h>
#include "libqtest.h"
#include "libqos/usb.h" #include "libqos/usb.h"

View File

@ -7,10 +7,9 @@
* See the COPYING file in the top-level directory. * See the COPYING file in the top-level directory.
*/ */
#include <glib.h>
#include <string.h>
#include "libqtest.h"
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <glib.h>
#include "libqtest.h"
#include "libqos/usb.h" #include "libqos/usb.h"
#include "hw/usb/uhci-regs.h" #include "hw/usb/uhci-regs.h"

View File

@ -7,10 +7,9 @@
* See the COPYING file in the top-level directory. * See the COPYING file in the top-level directory.
*/ */
#include <glib.h>
#include <string.h>
#include "libqtest.h"
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <glib.h>
#include "libqtest.h"
#include "libqos/usb.h" #include "libqos/usb.h"