aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2016-02-08 19:11:45 +0000
committerPeter Maydell <peter.maydell@linaro.org>2016-02-16 14:29:26 +0000
commit74c0e4744103652764cdf564849239b8dd426f15 (patch)
treecaaef8e97b73f26b779b8a397c2d40de79522918
parent888ea96aae29ce6a28afb86c2eee30068dc14d46 (diff)
hw/block/nand.c: Include osdep.h first
Include osdep.h as the first header in nand.c; this has to be done manually because coccinelle gets confused by the way that this C file includes itself. We fix some odd spacing in #includes while we are in the area. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Eric Blake <eblake@redhat.com>
-rw-r--r--hw/block/nand.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/block/nand.c b/hw/block/nand.c
index 478e1a6b3f..f51e13fcac 100644
--- a/hw/block/nand.c
+++ b/hw/block/nand.c
@@ -18,8 +18,9 @@
#ifndef NAND_IO
-# include "hw/hw.h"
-# include "hw/block/flash.h"
+#include "qemu/osdep.h"
+#include "hw/hw.h"
+#include "hw/block/flash.h"
#include "sysemu/block-backend.h"
#include "hw/qdev.h"
#include "qemu/error-report.h"