* [PULL 0/8] Trivial branch for 7.2 patches
@ 2022-09-30 20:21 Laurent Vivier
2022-10-03 19:04 ` Stefan Hajnoczi
0 siblings, 1 reply; 6+ messages in thread
From: Laurent Vivier @ 2022-09-30 20:21 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-trivial, Laurent Vivier
The following changes since commit c8de6ec63d766ca1998c5af468483ce912fdc0c2:
Merge tag 'pull-request-2022-09-28' of https://gitlab.com/thuth/qemu into staging (2022-09-28 17:04:11 -0400)
are available in the Git repository at:
https://gitlab.com/laurent_vivier/qemu.git tags/trivial-branch-for-7.2-pull-request
for you to fetch changes up to a40ee29bbf3c169597d85f0871d189398b667d9f:
docs: Update TPM documentation for usage of a TPM 2 (2022-09-29 21:31:56 +0200)
----------------------------------------------------------------
Pull request trivial patches branch 20220930
----------------------------------------------------------------
Bernhard Beschow (1):
hw/virtio/vhost-shadow-virtqueue: Silence GCC error
"maybe-uninitialized"
Markus Armbruster (2):
Drop superfluous conditionals around g_free()
Use g_new() & friends where that makes obvious sense
Matheus Tavares Bernardino (1):
checkpatch: ignore target/hexagon/imported/* files
Philippe Mathieu-Daudé via (1):
block/qcow2-bitmap: Add missing cast to silent GCC error
Stefan Berger (1):
docs: Update TPM documentation for usage of a TPM 2
Tong Zhang (1):
mem/cxl_type3: fix GPF DVSEC
Wang, Lei (1):
.gitignore: add .cache/ to .gitignore
.gitignore | 1 +
block/qcow2-bitmap.c | 2 +-
docs/specs/tpm.rst | 44 ++++++++++++++++--------------
hw/mem/cxl_type3.c | 2 +-
hw/remote/iommu.c | 2 +-
hw/virtio/vhost-shadow-virtqueue.c | 2 +-
hw/virtio/virtio-crypto.c | 2 +-
migration/dirtyrate.c | 4 +--
replay/replay.c | 6 ++--
scripts/checkpatch.pl | 1 +
softmmu/dirtylimit.c | 4 +--
target/i386/kvm/kvm.c | 12 +++-----
target/i386/whpx/whpx-all.c | 14 ++++------
13 files changed, 47 insertions(+), 49 deletions(-)
--
2.37.3
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PULL 0/8] Trivial branch for 7.2 patches
2022-09-30 20:21 Laurent Vivier
@ 2022-10-03 19:04 ` Stefan Hajnoczi
2022-10-03 22:12 ` Laurent Vivier
0 siblings, 1 reply; 6+ messages in thread
From: Stefan Hajnoczi @ 2022-10-03 19:04 UTC (permalink / raw)
To: Laurent Vivier; +Cc: qemu-devel, qemu-trivial, Richard Henderson, Peter Maydell
On Fri, 30 Sept 2022 at 16:22, Laurent Vivier <laurent@vivier.eu> wrote:
> Philippe Mathieu-Daudé via (1):
> block/qcow2-bitmap: Add missing cast to silent GCC error
Hi Laurent,
This commit uses a mailing list email, probably due to DKIM/SPF issues:
Author: Philippe Mathieu-Daudé via <qemu-devel@nongnu.org>
I think the policy is to reject such pull requests and fix the
authorship. Could you update your pull request and resend?
Thanks!
Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PULL 0/8] Trivial branch for 7.2 patches
2022-10-03 19:04 ` Stefan Hajnoczi
@ 2022-10-03 22:12 ` Laurent Vivier
0 siblings, 0 replies; 6+ messages in thread
From: Laurent Vivier @ 2022-10-03 22:12 UTC (permalink / raw)
To: Stefan Hajnoczi
Cc: qemu-devel, qemu-trivial, Richard Henderson, Peter Maydell
Le 03/10/2022 à 21:04, Stefan Hajnoczi a écrit :
> On Fri, 30 Sept 2022 at 16:22, Laurent Vivier <laurent@vivier.eu> wrote:
>> Philippe Mathieu-Daudé via (1):
>> block/qcow2-bitmap: Add missing cast to silent GCC error
>
> Hi Laurent,
> This commit uses a mailing list email, probably due to DKIM/SPF issues:
> Author: Philippe Mathieu-Daudé via <qemu-devel@nongnu.org>
>
> I think the policy is to reject such pull requests and fix the
> authorship. Could you update your pull request and resend?
>
Thank you Stefan.
Normally I have a pre-publish-send-email to check that, but it didn't fail in the expected way...
I re-send the PR.
Laurent
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PULL 0/8] Trivial branch for 7.2 patches
@ 2022-10-03 22:13 Laurent Vivier
2022-10-03 22:13 ` [PULL 1/8] hw/virtio/vhost-shadow-virtqueue: Silence GCC error "maybe-uninitialized" Laurent Vivier
2022-10-05 14:14 ` [PULL 0/8] Trivial branch for 7.2 patches Stefan Hajnoczi
0 siblings, 2 replies; 6+ messages in thread
From: Laurent Vivier @ 2022-10-03 22:13 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-trivial, Laurent Vivier
The following changes since commit c8de6ec63d766ca1998c5af468483ce912fdc0c2:
Merge tag 'pull-request-2022-09-28' of https://gitlab.com/thuth/qemu into staging (2022-09-28 17:04:11 -0400)
are available in the Git repository at:
https://gitlab.com/laurent_vivier/qemu.git tags/trivial-branch-for-7.2-pull-request
for you to fetch changes up to 4a4a74bf439910e957db42405a3abefdf867516a:
docs: Update TPM documentation for usage of a TPM 2 (2022-10-04 00:10:11 +0200)
----------------------------------------------------------------
Pull request trivial patches branch 20220930-v2
----------------------------------------------------------------
Bernhard Beschow (1):
hw/virtio/vhost-shadow-virtqueue: Silence GCC error
"maybe-uninitialized"
Markus Armbruster (2):
Drop superfluous conditionals around g_free()
Use g_new() & friends where that makes obvious sense
Matheus Tavares Bernardino (1):
checkpatch: ignore target/hexagon/imported/* files
Philippe Mathieu-Daudé (1):
block/qcow2-bitmap: Add missing cast to silent GCC error
Stefan Berger (1):
docs: Update TPM documentation for usage of a TPM 2
Tong Zhang (1):
mem/cxl_type3: fix GPF DVSEC
Wang, Lei (1):
.gitignore: add .cache/ to .gitignore
.gitignore | 1 +
block/qcow2-bitmap.c | 2 +-
docs/specs/tpm.rst | 44 ++++++++++++++++--------------
hw/mem/cxl_type3.c | 2 +-
hw/remote/iommu.c | 2 +-
hw/virtio/vhost-shadow-virtqueue.c | 2 +-
hw/virtio/virtio-crypto.c | 2 +-
migration/dirtyrate.c | 4 +--
replay/replay.c | 6 ++--
scripts/checkpatch.pl | 1 +
softmmu/dirtylimit.c | 4 +--
target/i386/kvm/kvm.c | 12 +++-----
target/i386/whpx/whpx-all.c | 14 ++++------
13 files changed, 47 insertions(+), 49 deletions(-)
--
2.37.3
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PULL 1/8] hw/virtio/vhost-shadow-virtqueue: Silence GCC error "maybe-uninitialized"
2022-10-03 22:13 [PULL 0/8] Trivial branch for 7.2 patches Laurent Vivier
@ 2022-10-03 22:13 ` Laurent Vivier
2022-10-05 14:14 ` [PULL 0/8] Trivial branch for 7.2 patches Stefan Hajnoczi
1 sibling, 0 replies; 6+ messages in thread
From: Laurent Vivier @ 2022-10-03 22:13 UTC (permalink / raw)
To: qemu-devel
Cc: qemu-trivial, Bernhard Beschow, Richard Henderson,
Philippe Mathieu-Daudé, Laurent Vivier
From: Bernhard Beschow <shentey@gmail.com>
GCC issues a false positive warning, resulting in build failure with -Werror:
In file included from /usr/include/glib-2.0/glib.h:114,
from src/include/glib-compat.h:32,
from src/include/qemu/osdep.h:144,
from ../src/hw/virtio/vhost-shadow-virtqueue.c:10:
In function ‘g_autoptr_cleanup_generic_gfree’,
inlined from ‘vhost_handle_guest_kick’ at ../src/hw/virtio/vhost-shadow-virtqueue.c:292:42:
/usr/include/glib-2.0/glib/glib-autocleanups.h:28:3: error: ‘elem’ may be used uninitialized [-Werror=maybe-uninitialized]
28 | g_free (*pp);
| ^~~~~~~~~~~~
../src/hw/virtio/vhost-shadow-virtqueue.c: In function ‘vhost_handle_guest_kick’:
../src/hw/virtio/vhost-shadow-virtqueue.c:292:42: note: ‘elem’ was declared here
292 | g_autofree VirtQueueElement *elem;
| ^~~~
cc1: all warnings being treated as errors
There is actually no problem since "elem" is initialized in both branches.
Silence the warning by initializig it with "NULL".
$ gcc --version
gcc (GCC) 12.2.0
Fixes: 9c2ab2f1ec333be8614cc12272d4b91960704dbe ("vhost: stop transfer elem ownership in vhost_handle_guest_kick")
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220910151117.6665-1-shentey@gmail.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
hw/virtio/vhost-shadow-virtqueue.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/virtio/vhost-shadow-virtqueue.c b/hw/virtio/vhost-shadow-virtqueue.c
index e8e5bbc368dd..596d4434d289 100644
--- a/hw/virtio/vhost-shadow-virtqueue.c
+++ b/hw/virtio/vhost-shadow-virtqueue.c
@@ -289,7 +289,7 @@ static void vhost_handle_guest_kick(VhostShadowVirtqueue *svq)
virtio_queue_set_notification(svq->vq, false);
while (true) {
- g_autofree VirtQueueElement *elem;
+ g_autofree VirtQueueElement *elem = NULL;
int r;
if (svq->next_guest_avail_elem) {
--
2.37.3
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PULL 0/8] Trivial branch for 7.2 patches
2022-10-03 22:13 [PULL 0/8] Trivial branch for 7.2 patches Laurent Vivier
2022-10-03 22:13 ` [PULL 1/8] hw/virtio/vhost-shadow-virtqueue: Silence GCC error "maybe-uninitialized" Laurent Vivier
@ 2022-10-05 14:14 ` Stefan Hajnoczi
1 sibling, 0 replies; 6+ messages in thread
From: Stefan Hajnoczi @ 2022-10-05 14:14 UTC (permalink / raw)
To: Laurent Vivier; +Cc: qemu-devel, qemu-trivial, Laurent Vivier
[-- Attachment #1: Type: text/plain, Size: 115 bytes --]
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/7.2 for any user-visible changes.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-10-05 14:57 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-03 22:13 [PULL 0/8] Trivial branch for 7.2 patches Laurent Vivier
2022-10-03 22:13 ` [PULL 1/8] hw/virtio/vhost-shadow-virtqueue: Silence GCC error "maybe-uninitialized" Laurent Vivier
2022-10-05 14:14 ` [PULL 0/8] Trivial branch for 7.2 patches Stefan Hajnoczi
-- strict thread matches above, loose matches on Subject: below --
2022-09-30 20:21 Laurent Vivier
2022-10-03 19:04 ` Stefan Hajnoczi
2022-10-03 22:12 ` Laurent Vivier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).