[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] hw/remote/proxy: Remove dubious 'event_notifier-posix.c' inc
From: |
Peter Maydell |
Subject: |
Re: [PATCH] hw/remote/proxy: Remove dubious 'event_notifier-posix.c' include |
Date: |
Tue, 6 Jun 2023 14:59:55 +0100 |
On Tue, 6 Jun 2023 at 14:50, Philippe Mathieu-Daudé <philmd@linaro.org> wrote:
>
> event_notifier-posix.c is registered in meson's util_ss[] source
> set, which is built as libqemuutil.a.p library. Both tools and
> system emulation binaries are linked with qemuutil, so there is
> no point in including this source file.
>
> Introduced in commit bd36adb8df ("multi-process: create IOHUB
> object to handle irq").
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> Note, --enable-multiprocess doesn't seem to be covered in CI.
> ---
> hw/remote/proxy.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/hw/remote/proxy.c b/hw/remote/proxy.c
> index 1c7786b52c..2052d721e5 100644
> --- a/hw/remote/proxy.c
> +++ b/hw/remote/proxy.c
> @@ -22,7 +22,6 @@
> #include "qom/object.h"
> #include "qemu/event_notifier.h"
> #include "sysemu/kvm.h"
> -#include "util/event_notifier-posix.c"
Including one .c file from another is definitely very weird;
if it is by some chance not incorrect then it needs a big
comment describing why it's necessary...
-- PMM