[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PULL 00/14] Block layer patches
From: |
Peter Maydell |
Subject: |
Re: [PULL 00/14] Block layer patches |
Date: |
Mon, 22 Jan 2024 11:44:42 +0000 |
On Mon, 22 Jan 2024 at 11:15, Kevin Wolf <kwolf@redhat.com> wrote:
>
> Am 20.01.2024 um 18:21 hat Peter Maydell geschrieben:
> > Got some compile failures on this one; looks like the compiler
> > on our s390 box didn't like this:
> >
> > https://gitlab.com/qemu-project/qemu/-/jobs/5973441293
> > https://gitlab.com/qemu-project/qemu/-/jobs/5973441291
> > https://gitlab.com/qemu-project/qemu/-/jobs/5973441330
> >
> > In file included from ../include/qemu/host-utils.h:33,
> > from ../include/qemu/bitops.h:16,
> > from ../include/qemu/timer.h:4,
> > from ../include/block/aio.h:24,
> > from ../include/block/aio-wait.h:28,
> > from ../include/block/block-io.h:27,
> > from ../block/blklogwrites.c:15:
> > ../block/blklogwrites.c: In function ‘blk_log_writes_co_do_log’:
> > ../include/qemu/bswap.h:148:36: error: left shift count >= width of
> > type [-Werror=shift-count-overflow]
> > 148 | ((((_x) & 0x00000000000000ffU) << 56) | \
> > | ^~
> > ../block/blklogwrites.c:409:27: note: in expansion of macro ‘const_le64’
> > 409 | .nr_entries = const_le64(0),
> > | ^~~~~~~~~~
> > ../include/qemu/bswap.h:149:36: error: left shift count >= width of
> > type [-Werror=shift-count-overflow]
> > 149 | (((_x) & 0x000000000000ff00U) << 40) | \
> > | ^~
> > ../block/blklogwrites.c:409:27: note: in expansion of macro ‘const_le64’
> > 409 | .nr_entries = const_le64(0),
> > | ^~~~~~~~~~
> > cc1: all warnings being treated as errors
>
> Looks like const_le64() introduced in commit 845d80a8 is buggy. I wonder
> why we even added it when there is no user of it (this blklogwrites one
> is the first one, so it exposes the error).
>
> Of course, 0 is just as good as const_le64(0), so I'll just change it to
> that for now. But I suppose const_le64() should either be fixed (and
> used by something) or removed.
Using ULL as the suffix on the constants in the macro should
be sufficient to fix the problem, I suspect.
-- PMM
- [PULL 06/14] iotests: port 141 to Python for reliable QMP testing, (continued)
- [PULL 06/14] iotests: port 141 to Python for reliable QMP testing, Kevin Wolf, 2024/01/19
- [PULL 09/14] virtio-blk: rename dataplane create/destroy functions, Kevin Wolf, 2024/01/19
- [PULL 07/14] monitor: only run coroutine commands in qemu_aio_context, Kevin Wolf, 2024/01/19
- [PULL 04/14] stream: Allow users to request only format driver names in backing file format, Kevin Wolf, 2024/01/19
- [PULL 14/14] block/blklogwrites: Protect mutable driver state with a mutex., Kevin Wolf, 2024/01/19
- [PULL 12/14] virtio-blk: tolerate failure to set BlockBackend AioContext, Kevin Wolf, 2024/01/19
- [PULL 13/14] virtio-blk: always set ioeventfd during startup, Kevin Wolf, 2024/01/19
- [PULL 11/14] virtio-blk: restart s->rq reqs in vq AioContexts, Kevin Wolf, 2024/01/19
- Re: [PULL 00/14] Block layer patches, Peter Maydell, 2024/01/20