From: Peter Maydell Date: Fri, 3 Apr 2020 12:47:12 +0000 (+0100) Subject: hw/gpio/aspeed_gpio.c: Don't directly include assert.h X-Git-Tag: pull-nvme-20200902~321^2~6 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c88311f272f5599abd7ee12a7a724a4f2bd5820c;p=qemu-nvme.git hw/gpio/aspeed_gpio.c: Don't directly include assert.h Remove a direct include of assert.h -- this is already provided by qemu/osdep.h, and it breaks our rule that the first include must always be osdep.h. In particular we must get the assert() macro via osdep.h to avoid compile failures on mingw (see the comment in osdep.h where we redefine assert() for that platform). Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Cédric Le Goater Message-id: 20200403124712.24826-1-peter.maydell@linaro.org --- diff --git a/hw/gpio/aspeed_gpio.c b/hw/gpio/aspeed_gpio.c index 41e11ea9b0..e52fcfd9a0 100644 --- a/hw/gpio/aspeed_gpio.c +++ b/hw/gpio/aspeed_gpio.c @@ -6,8 +6,6 @@ * SPDX-License-Identifier: GPL-2.0-or-later */ -#include - #include "qemu/osdep.h" #include "qemu/host-utils.h" #include "qemu/log.h"