mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
Use DECLARE_*CHECKER* when possible (--force mode)
Separate run of the TypeCheckMacro converter using the --force flag, for the cases where typedefs weren't found in the same header nor in typedefs.h. Generated initially using: $ ./scripts/codeconverter/converter.py --force -i \ --pattern=TypeCheckMacro $(git grep -l '' -- '*.[ch]') Then each case was manually reviewed, and a comment was added indicating what's unusual about those type checking macros/functions. Despite not following the usual pattern, the changes in this patch were found to be safe. Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <20200831210740.126168-15-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
8110fa1d94
commit
fa34a3c58a
12 changed files with 36 additions and 43 deletions
|
@ -40,7 +40,9 @@
|
|||
#include "qom/object.h"
|
||||
|
||||
#define TYPE_SDHCI_BUS "sdhci-bus"
|
||||
#define SDHCI_BUS(obj) OBJECT_CHECK(SDBus, (obj), TYPE_SDHCI_BUS)
|
||||
/* This is reusing the SDBus typedef from SD_BUS */
|
||||
DECLARE_INSTANCE_CHECKER(SDBus, SDHCI_BUS,
|
||||
TYPE_SDHCI_BUS)
|
||||
|
||||
#define MASKED_WRITE(reg, mask, val) (reg = (reg & (mask)) | (val))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue