[PATCH] block/io_uring: add missing include file

Jinhao Fan posted 1 patch 1 year, 8 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220721065645.577404-1-fanjinhao21s@ict.ac.cn
Maintainers: Aarushi Mehta <mehta.aaru20@gmail.com>, Julia Suvorova <jusual@redhat.com>, Stefan Hajnoczi <stefanha@redhat.com>, Stefano Garzarella <sgarzare@redhat.com>, Kevin Wolf <kwolf@redhat.com>, Hanna Reitz <hreitz@redhat.com>
block/io_uring.c | 1 +
1 file changed, 1 insertion(+)
[PATCH] block/io_uring: add missing include file
Posted by Jinhao Fan 1 year, 8 months ago
The commit "Use io_uring_register_ring_fd() to skip fd operations" uses
warn_report but did not include the header file "qemu/error-report.h".
This causes "error: implicit declaration of function ‘warn_report’".
Include this header file.

Signed-off-by: Jinhao Fan <fanjinhao21s@ict.ac.cn>
---
 block/io_uring.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/block/io_uring.c b/block/io_uring.c
index f8a19fd97f..a1760152e0 100644
--- a/block/io_uring.c
+++ b/block/io_uring.c
@@ -11,6 +11,7 @@
 #include "qemu/osdep.h"
 #include <liburing.h>
 #include "block/aio.h"
+#include "qemu/error-report.h"
 #include "qemu/queue.h"
 #include "block/block.h"
 #include "block/raw-aio.h"
-- 
2.25.1


Re: [PATCH] block/io_uring: add missing include file
Posted by Stefano Garzarella 1 year, 8 months ago
On Thu, Jul 21, 2022 at 02:56:45PM +0800, Jinhao Fan wrote:
>The commit "Use io_uring_register_ring_fd() to skip fd operations" uses
>warn_report but did not include the header file "qemu/error-report.h".
>This causes "error: implicit declaration of function ‘warn_report’".
>Include this header file.
>

We could add:

Fixes: e2848bc574 ("Use io_uring_register_ring_fd() to skip fd operations")

>Signed-off-by: Jinhao Fan <fanjinhao21s@ict.ac.cn>
>---
> block/io_uring.c | 1 +
> 1 file changed, 1 insertion(+)
>
>diff --git a/block/io_uring.c b/block/io_uring.c
>index f8a19fd97f..a1760152e0 100644
>--- a/block/io_uring.c
>+++ b/block/io_uring.c
>@@ -11,6 +11,7 @@
> #include "qemu/osdep.h"
> #include <liburing.h>
> #include "block/aio.h"
>+#include "qemu/error-report.h"
> #include "qemu/queue.h"
> #include "block/block.h"
> #include "block/raw-aio.h"
>-- 
>2.25.1
>
>

Thanks for the fix:

Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>



Re: [PATCH] block/io_uring: add missing include file
Posted by Kevin Wolf 1 year, 8 months ago
Am 21.07.2022 um 09:09 hat Stefano Garzarella geschrieben:
> On Thu, Jul 21, 2022 at 02:56:45PM +0800, Jinhao Fan wrote:
> > The commit "Use io_uring_register_ring_fd() to skip fd operations" uses
> > warn_report but did not include the header file "qemu/error-report.h".
> > This causes "error: implicit declaration of function ‘warn_report’".
> > Include this header file.
> > 
> 
> We could add:
> 
> Fixes: e2848bc574 ("Use io_uring_register_ring_fd() to skip fd operations")
> 
> > Signed-off-by: Jinhao Fan <fanjinhao21s@ict.ac.cn>
> > ---
> > block/io_uring.c | 1 +
> > 1 file changed, 1 insertion(+)
> > 
> > diff --git a/block/io_uring.c b/block/io_uring.c
> > index f8a19fd97f..a1760152e0 100644
> > --- a/block/io_uring.c
> > +++ b/block/io_uring.c
> > @@ -11,6 +11,7 @@
> > #include "qemu/osdep.h"
> > #include <liburing.h>
> > #include "block/aio.h"
> > +#include "qemu/error-report.h"
> > #include "qemu/queue.h"
> > #include "block/block.h"
> > #include "block/raw-aio.h"
> > -- 
> > 2.25.1
> > 
> > 
> 
> Thanks for the fix:
> 
> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>

Thanks, applied to the block branch.

Kevin