From: Eduardo Habkost <ehabkost@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
qemu-arm@nongnu.org, "Markus Armbruster" <armbru@redhat.com>,
"Andreas Färber" <afaerber@suse.de>
Subject: [Qemu-devel] [PATCH v2 6/6] qdev: Warning about using object_class_property_add() in new code
Date: Thu, 20 Oct 2016 15:47:59 -0200 [thread overview]
Message-ID: <1476985679-4456-7-git-send-email-ehabkost@redhat.com> (raw)
In-Reply-To: <1476985679-4456-1-git-send-email-ehabkost@redhat.com>
The only remaining user of object_class_property_add() is
arm_cpu_post_init(), but removing it may take some work. While we
don't change it, warn people to not use the function in new code.
Cc: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-arm@nongnu.org
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
hw/core/qdev.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hw/core/qdev.c b/hw/core/qdev.c
index f7d9030..2d6ce21 100644
--- a/hw/core/qdev.c
+++ b/hw/core/qdev.c
@@ -813,6 +813,10 @@ static void qdev_property_set_to_default(DeviceState *dev, Property *prop,
* Add a static QOM property to @dev for qdev property @prop.
* On error, store error in @errp. Static properties access data in a struct.
* The type of the QOM property is derived from prop->info.
+ *
+ * Do not use this in new code. Either use qdev_class_set_props(),
+ * or register regular QOM properties using object_property_add() or
+ * object_class_property_add().
*/
void qdev_property_add_static(DeviceState *dev, Property *prop,
Error **errp)
--
2.7.4
WARNING: multiple messages have this Message-ID (diff)
From: Eduardo Habkost <ehabkost@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Markus Armbruster" <armbru@redhat.com>,
"Andreas Färber" <afaerber@suse.de>,
"Daniel P. Berrange" <berrange@redhat.com>,
"Peter Maydell" <peter.maydell@linaro.org>,
qemu-arm@nongnu.org
Subject: [Qemu-devel] [PATCH v2 6/6] qdev: Warning about using object_class_property_add() in new code
Date: Thu, 20 Oct 2016 15:47:59 -0200 [thread overview]
Message-ID: <1476985679-4456-7-git-send-email-ehabkost@redhat.com> (raw)
In-Reply-To: <1476985679-4456-1-git-send-email-ehabkost@redhat.com>
The only remaining user of object_class_property_add() is
arm_cpu_post_init(), but removing it may take some work. While we
don't change it, warn people to not use the function in new code.
Cc: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-arm@nongnu.org
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
hw/core/qdev.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hw/core/qdev.c b/hw/core/qdev.c
index f7d9030..2d6ce21 100644
--- a/hw/core/qdev.c
+++ b/hw/core/qdev.c
@@ -813,6 +813,10 @@ static void qdev_property_set_to_default(DeviceState *dev, Property *prop,
* Add a static QOM property to @dev for qdev property @prop.
* On error, store error in @errp. Static properties access data in a struct.
* The type of the QOM property is derived from prop->info.
+ *
+ * Do not use this in new code. Either use qdev_class_set_props(),
+ * or register regular QOM properties using object_property_add() or
+ * object_class_property_add().
*/
void qdev_property_add_static(DeviceState *dev, Property *prop,
Error **errp)
--
2.7.4
next prev parent reply other threads:[~2016-10-20 17:50 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-20 17:47 [Qemu-devel] [PATCH v2 0/6] qdev class properties + abstract class support on device-list-properties Eduardo Habkost
2016-10-20 17:47 ` [Qemu-devel] [PATCH v2 1/6] qdev: device_class_set_props() function Eduardo Habkost
2016-10-26 13:34 ` Igor Mammedov
2016-10-26 14:31 ` Eduardo Habkost
2016-10-20 17:47 ` [Qemu-devel] [PATCH v2 2/6] qdev: Extract property-default code to qdev_property_set_to_default() Eduardo Habkost
2016-10-24 13:54 ` Igor Mammedov
2016-10-20 17:47 ` [Qemu-devel] [PATCH v2 3/6] qdev: Register static properties as class properties Eduardo Habkost
2016-10-24 13:53 ` Igor Mammedov
2016-10-25 19:07 ` [Qemu-devel] [PATCH] fixup! " Eduardo Habkost
2016-10-26 15:02 ` [Qemu-devel] [PATCH v2 3/6] " Igor Mammedov
2016-10-26 15:59 ` Eduardo Habkost
2016-10-20 17:47 ` [Qemu-devel] [PATCH v2 4/6] qom: object_class_property_iter_init() function Eduardo Habkost
2016-10-20 17:47 ` [Qemu-devel] [PATCH v2 5/6] qmp: Support abstract classes on device-list-properties Eduardo Habkost
2016-10-20 17:47 ` Eduardo Habkost [this message]
2016-10-20 17:47 ` [Qemu-devel] [PATCH v2 6/6] qdev: Warning about using object_class_property_add() in new code Eduardo Habkost
2016-10-20 18:06 ` [Qemu-devel] [PATCH v2 0/6] qdev class properties + abstract class support on device-list-properties no-reply
2016-10-20 18:08 ` Eduardo Habkost
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1476985679-4456-7-git-send-email-ehabkost@redhat.com \
--to=ehabkost@redhat.com \
--cc=afaerber@suse.de \
--cc=armbru@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.