fw_cfg: Split fw_cfg_keys.h off fw_cfg.h
commit6f061ea10f28c6cbe3ea588e84ef1f5fd27f0299
authorMarkus Armbruster <armbru@redhat.com>
Thu, 10 Mar 2016 13:09:58 +0000 (10 14:09 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Mar 2016 21:20:16 +0000 (22 22:20 +0100)
tree298955d833b2a9bd876759e391b0443cc26fd484
parentc80f6e9caa7647b576966534aaa0dc8f1b480f2b
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>
include/hw/nvram/fw_cfg.h
include/hw/nvram/fw_cfg_keys.h [new file with mode: 0644]
pc-bios/optionrom/optionrom.h
tests/boot-order-test.c
tests/fw_cfg-test.c
tests/libqos/malloc-pc.c