Now all users switched to TYPE_OBJECT_COMPAT, we do not need to export this
function anymore.  Instead, future objects should inherit from
TYPE_OBJECT_COMPAT when compat properties are needed.

Signed-off-by: Peter Xu <[email protected]>
---
 include/qom/object.h | 1 -
 qom/object.c         | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/qom/object.h b/include/qom/object.h
index e5b3116ad5..6c7b8fdab1 100644
--- a/include/qom/object.h
+++ b/include/qom/object.h
@@ -707,7 +707,6 @@ void object_set_machine_compat_props(GPtrArray 
*compat_props);
 void object_set_accelerator_compat_props(GPtrArray *compat_props);
 void object_register_sugar_prop(const char *driver, const char *prop,
                                 const char *value, bool optional);
-void object_apply_compat_props(Object *obj);
 
 /**
  * object_set_props:
diff --git a/qom/object.c b/qom/object.c
index 581c041b08..176b859f36 100644
--- a/qom/object.c
+++ b/qom/object.c
@@ -530,7 +530,7 @@ void object_set_accelerator_compat_props(GPtrArray 
*compat_props)
     object_compat_props[0] = compat_props;
 }
 
-void object_apply_compat_props(Object *obj)
+static void object_apply_compat_props(Object *obj)
 {
     int i;
 
-- 
2.50.1


Reply via email to