[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 40/41] migration/ram: fix clang warning
From: |
Dr. David Alan Gilbert |
Subject: |
Re: [PATCH 40/41] migration/ram: fix clang warning |
Date: |
Wed, 20 Apr 2022 15:10:46 +0100 |
User-agent: |
Mutt/2.2.1 (2022-02-19) |
* marcandre.lureau@redhat.com (marcandre.lureau@redhat.com) wrote:
> From: Marc-André Lureau <marcandre.lureau@redhat.com>
>
> ../migration/ram.c:1292:31: warning: use of bitwise '&' with boolean operands
> [-Wbitwise-instead-of-logical]
>
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Yeh that's the same as:
https://lists.gnu.org/archive/html/qemu-devel/2022-04/msg00640.html
Dave
> ---
> migration/ram.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/migration/ram.c b/migration/ram.c
> index 3532f64ecb98..0ef4bd63ebd5 100644
> --- a/migration/ram.c
> +++ b/migration/ram.c
> @@ -1289,7 +1289,7 @@ static int save_normal_page(RAMState *rs, RAMBlock
> *block, ram_addr_t offset,
> offset | RAM_SAVE_FLAG_PAGE));
> if (async) {
> qemu_put_buffer_async(rs->f, buf, TARGET_PAGE_SIZE,
> - migrate_release_ram() &
> + migrate_release_ram() &&
> migration_in_postcopy());
> } else {
> qemu_put_buffer(rs->f, buf, TARGET_PAGE_SIZE);
> --
> 2.35.1.693.g805e0a68082a
>
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
- Re: [PATCH 33/41] tests: move libqtest.c under libqos/, (continued)
- [PATCH 37/41] util: use qemu_create() in qemu_write_pidfile(), marcandre . lureau, 2022/04/20
- [PATCH 36/41] util: use qemu_write_full() in qemu_write_pidfile(), marcandre . lureau, 2022/04/20
- [PATCH 38/41] util: replace qemu_get_local_state_pathname(), marcandre . lureau, 2022/04/20
- [PATCH 39/41] qga: remove need for QEMU atomic.h, marcandre . lureau, 2022/04/20
- [PATCH 40/41] migration/ram: fix clang warning, marcandre . lureau, 2022/04/20
- Re: [PATCH 40/41] migration/ram: fix clang warning,
Dr. David Alan Gilbert <=
- [PATCH 41/41] tests/fuzz: fix warning, marcandre . lureau, 2022/04/20
- Re: [PATCH 00/41] Misc cleanups, Thomas Huth, 2022/04/20