diff mbox series

docs/devel: fix missing antislash

Message ID 20210809173141.1714998-1-erdnaxe@crans.org (mailing list archive)
State New, archived
Headers show
Series docs/devel: fix missing antislash | expand

Commit Message

Alexandre IOOSS Aug. 9, 2021, 5:31 p.m. UTC
Signed-off-by: Alexandre Iooss <erdnaxe@crans.org>
---
 docs/devel/qom.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Eduardo Habkost Aug. 9, 2021, 6:14 p.m. UTC | #1
On Mon, Aug 09, 2021 at 07:31:41PM +0200, Alexandre Iooss wrote:
> Signed-off-by: Alexandre Iooss <erdnaxe@crans.org>
> ---
>  docs/devel/qom.rst | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/docs/devel/qom.rst b/docs/devel/qom.rst
> index e5fe3597cd..b9568c0fb8 100644
> --- a/docs/devel/qom.rst
> +++ b/docs/devel/qom.rst
> @@ -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/20210729175554.686474-9-ehabkost@redhat.com
Alexandre IOOSS Aug. 10, 2021, 10:12 a.m. UTC | #2
On 8/9/21 8:14 PM, Eduardo Habkost wrote:
> On Mon, Aug 09, 2021 at 07:31:41PM +0200, Alexandre Iooss wrote:
>> Signed-off-by: Alexandre Iooss <erdnaxe@crans.org>
>> ---
>>   docs/devel/qom.rst | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/docs/devel/qom.rst b/docs/devel/qom.rst
>> index e5fe3597cd..b9568c0fb8 100644
>> --- a/docs/devel/qom.rst
>> +++ b/docs/devel/qom.rst
>> @@ -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/20210729175554.686474-9-ehabkost@redhat.com
> 

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

Thanks,
-- Alexandre
diff mbox series

Patch

diff --git a/docs/devel/qom.rst b/docs/devel/qom.rst
index e5fe3597cd..b9568c0fb8 100644
--- a/docs/devel/qom.rst
+++ b/docs/devel/qom.rst
@@ -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 {