[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 28/32] qdev: Move qdev_prop_tpm declaration to tpm_prop.h
From: |
Igor Mammedov |
Subject: |
Re: [PATCH v4 28/32] qdev: Move qdev_prop_tpm declaration to tpm_prop.h |
Date: |
Tue, 15 Dec 2020 15:36:42 +0100 |
On Fri, 11 Dec 2020 17:05:25 -0500
Eduardo Habkost <ehabkost@redhat.com> wrote:
> Move the variable declaration close to the macro that uses it.
>
> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
> ---
> Cc: Stefan Berger <stefanb@linux.vnet.ibm.com>
> Cc: Paolo Bonzini <pbonzini@redhat.com>
> Cc: "Daniel P. Berrangé" <berrange@redhat.com>
> Cc: Eduardo Habkost <ehabkost@redhat.com>
> Cc: qemu-devel@nongnu.org
> ---
> hw/tpm/tpm_prop.h | 2 ++
> include/hw/qdev-properties.h | 1 -
> 2 files changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/hw/tpm/tpm_prop.h b/hw/tpm/tpm_prop.h
> index d19e40c112..bbd4225d66 100644
> --- a/hw/tpm/tpm_prop.h
> +++ b/hw/tpm/tpm_prop.h
> @@ -25,6 +25,8 @@
> #include "sysemu/tpm_backend.h"
> #include "hw/qdev-properties.h"
>
> +extern const PropertyInfo qdev_prop_tpm;
> +
> #define DEFINE_PROP_TPMBE(_n, _s, _f) \
> DEFINE_PROP(_n, _s, _f, qdev_prop_tpm, TPMBackend *)
>
> diff --git a/include/hw/qdev-properties.h b/include/hw/qdev-properties.h
> index aae882317a..68e544708b 100644
> --- a/include/hw/qdev-properties.h
> +++ b/include/hw/qdev-properties.h
> @@ -56,7 +56,6 @@ extern const PropertyInfo qdev_prop_uint64;
> extern const PropertyInfo qdev_prop_int64;
> extern const PropertyInfo qdev_prop_size;
> extern const PropertyInfo qdev_prop_string;
> -extern const PropertyInfo qdev_prop_tpm;
> extern const PropertyInfo qdev_prop_on_off_auto;
> extern const PropertyInfo qdev_prop_size32;
> extern const PropertyInfo qdev_prop_arraylen;
- RE: [PATCH v4 23/32] qdev: Move dev->realized check to qdev_property_set(), (continued)
[PATCH v4 27/32] qdev: Rename qdev_propinfo_* to field_prop_*, Eduardo Habkost, 2020/12/11
[PATCH v4 26/32] qdev: Separate generic and device-specific property registration, Eduardo Habkost, 2020/12/11
[PATCH v4 28/32] qdev: Move qdev_prop_tpm declaration to tpm_prop.h, Eduardo Habkost, 2020/12/11
- Re: [PATCH v4 28/32] qdev: Move qdev_prop_tpm declaration to tpm_prop.h,
Igor Mammedov <=
[PATCH v4 29/32] qdev: Rename qdev_prop_* to prop_info_*, Eduardo Habkost, 2020/12/11
[PATCH v4 31/32] qdev: Avoid unnecessary DeviceState* variable at set_prop_arraylen(), Eduardo Habkost, 2020/12/11
[PATCH v4 32/32] tests: Add unit test for qdev array properties, Eduardo Habkost, 2020/12/11
[PATCH v4 30/32] qdev: Rename qdev_get_prop_ptr() to object_field_prop_ptr(), Eduardo Habkost, 2020/12/11
Re: [PATCH v4 00/32] qdev property code cleanup, Eduardo Habkost, 2020/12/14