summaryrefslogtreecommitdiffstats
path: root/hw/gpio/aspeed_gpio.c
diff options
context:
space:
mode:
authorPeter Maydell2020-04-03 14:47:12 +0200
committerPeter Maydell2020-04-03 20:24:53 +0200
commitc88311f272f5599abd7ee12a7a724a4f2bd5820c (patch)
treeb210c04fe5e5be4d52292a8549d5a520f0c8afc8 /hw/gpio/aspeed_gpio.c
parenttarget/arm: Remove obsolete TODO note from get_phys_addr_lpae() (diff)
downloadqemu-c88311f272f5599abd7ee12a7a724a4f2bd5820c.tar.gz
qemu-c88311f272f5599abd7ee12a7a724a4f2bd5820c.tar.xz
qemu-c88311f272f5599abd7ee12a7a724a4f2bd5820c.zip
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 <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Cédric Le Goater <clg@kaod.org> Message-id: 20200403124712.24826-1-peter.maydell@linaro.org
Diffstat (limited to 'hw/gpio/aspeed_gpio.c')
-rw-r--r--hw/gpio/aspeed_gpio.c2
1 files changed, 0 insertions, 2 deletions
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 <assert.h>
-
#include "qemu/osdep.h"
#include "qemu/host-utils.h"
#include "qemu/log.h"