summaryrefslogtreecommitdiffstats
path: root/tests/fw_cfg-test.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2016-03-10 14:09:58 +0100
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:52:21 -0600
commitbb17ee45134060d87e879a7747a40f7678e0f922 (patch)
tree4d877aa1afa1a65dc2dcef479b6cfd54ce1e62f8 /tests/fw_cfg-test.c
parent8381b9f8c2ee6c360c4e993774462667b3724cc0 (diff)
downloadhqemu-bb17ee45134060d87e879a7747a40f7678e0f922.zip
hqemu-bb17ee45134060d87e879a7747a40f7678e0f922.tar.gz
fw_cfg: Split fw_cfg_keys.h off fw_cfg.h
Much of fw_cfg.h's contents is #ifndef NO_QEMU_PROTOS. This lets a few places include it without satisfying the dependencies of the suppressed code. If you somehow include it with NO_QEMU_PROTOS, any future includes are ignored. Unnecessarily unclean. Move the stuff not under NO_QEMU_PROTOS into its own header fw_cfg_keys.h, and include it as appropriate. Tidy up the moved code to please checkpatch. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/fw_cfg-test.c')
-rw-r--r--tests/fw_cfg-test.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/fw_cfg-test.c b/tests/fw_cfg-test.c
index 398643a..b4392c2 100644
--- a/tests/fw_cfg-test.c
+++ b/tests/fw_cfg-test.c
@@ -14,8 +14,7 @@
#include <glib.h>
#include "libqtest.h"
-#define NO_QEMU_PROTOS
-#include "hw/nvram/fw_cfg.h"
+#include "hw/nvram/fw_cfg_keys.h"
#include "libqos/fw_cfg.h"
static uint64_t ram_size = 128 << 20;
OpenPOWER on IntegriCloud