mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
c80f6e9caa
commit
6f061ea10f
6 changed files with 51 additions and 57 deletions
|
@ -15,9 +15,7 @@
|
|||
#include "libqos/fw_cfg.h"
|
||||
#include "libqtest.h"
|
||||
|
||||
#define NO_QEMU_PROTOS
|
||||
#include "hw/nvram/fw_cfg.h"
|
||||
#undef NO_QEMU_PROTOS
|
||||
#include "hw/nvram/fw_cfg_keys.h"
|
||||
|
||||
typedef struct {
|
||||
const char *args;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue