Skip to contentSkip to conversation

docs/devel: fix missing antislash

PATCH In review Alexandre Iooss 2 participants 3 messages Aug 9, 2021 – Aug 10, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs/devel: fix missing antislash

---
 docs/devel/qom.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
docs/devel/qom.rst +1 -1
index e5fe3597cd..b9568c0fb8 100644
@@ -309,7 +309,7 @@ This is equivalent to the following:
            OBJECT_GET_CLASS(MyDeviceClass, obj, TYPE_MY_DEVICE)
    #define MY_DEVICE_CLASS(void *klass) \
            OBJECT_CLASS_CHECK(MyDeviceClass, klass, TYPE_MY_DEVICE)
-   #define MY_DEVICE(void *obj)
+   #define MY_DEVICE(void *obj) \
            OBJECT_CHECK(MyDevice, obj, TYPE_MY_DEVICE)
 
    struct MyDeviceClass {
Signature · 1 line
2.31.1
#1 lore raw
Quoted 10 lines · Alexandre Iooss
---
 docs/devel/qom.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
docs/devel/qom.rst +0 -0
index e5fe3597cd..b9568c0fb8 100644

docs/devel/qom.rst This is equivalent to the following: · line 313

Quoted 6 lines
docs/devel/qom.rst +1 -1
@@ -309,7 +309,7 @@ This is equivalent to the following:
            OBJECT_GET_CLASS(MyDeviceClass, obj, TYPE_MY_DEVICE)
    #define MY_DEVICE_CLASS(void *klass) \
            OBJECT_CLASS_CHECK(MyDeviceClass, klass, TYPE_MY_DEVICE)
-   #define MY_DEVICE(void *obj)
+   #define MY_DEVICE(void *obj) \
            OBJECT_CHECK(MyDevice, obj, TYPE_MY_DEVICE)

Oops, nice catch!

However, the code above is already going to be deleted by:
https://lore.kernel.org/qemu-devel/[email protected]

Signature · 1 line
Eduardo
#2 lore raw
Quoted 20 lines · Eduardo Habkost
Quoted 10 lines · Alexandre Iooss
---
  docs/devel/qom.rst | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
docs/devel/qom.rst +0 -0
index e5fe3597cd..b9568c0fb8 100644

docs/devel/qom.rst This is equivalent to the following: · line 313

Quoted 6 lines
docs/devel/qom.rst +1 -1
@@ -309,7 +309,7 @@ This is equivalent to the following:
             OBJECT_GET_CLASS(MyDeviceClass, obj, TYPE_MY_DEVICE)
     #define MY_DEVICE_CLASS(void *klass) \
             OBJECT_CLASS_CHECK(MyDeviceClass, klass, TYPE_MY_DEVICE)
-   #define MY_DEVICE(void *obj)
+   #define MY_DEVICE(void *obj) \
             OBJECT_CHECK(MyDevice, obj, TYPE_MY_DEVICE)

Oops, nice catch!

Quoted 3 lines

However, the code above is already going to be deleted by:
https://lore.kernel.org/qemu-devel/[email protected]

Oh I was not aware of that new patch, it looks great while also solving the anti-slash problem!

Thanks,
-- Alexandre