]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
qemu: fix build error introduced by CVE-2021-3929 fix
authorGaurav Gupta <gauragup@cisco.com>
Thu, 30 Mar 2023 19:51:43 +0000 (12:51 -0700)
committerSteve Sakoman <steve@sakoman.com>
Mon, 10 Apr 2023 16:25:36 +0000 (06:25 -1000)
commit4ad98f0b27615ad59ae61110657cf69004c61ef4
treeba7276d08118b4a2522c8fa2b47a8adce002d63f
parent0c68435a7c0ff1c417119dbd408e75443c09afcb
qemu: fix build error introduced by CVE-2021-3929 fix

The patch for CVE-2021-3929 applied on dunfell returns a value for a
void function. This results in the following compiler warning/error:

hw/block/nvme.c:77:6: error: void function
'nvme_addr_read' should not return a value [-Wreturn-type]

return NVME_DATA_TRAS_ERROR;
^      ~~~~~~~~~~~~~~~~~~~~

In newer versions of qemu, the functions is changed to have a return
value, but that is not present in the version of qemu used in “dunfell”.

Backport some of the patches to correct this.

Signed-off-by: Gaurav Gupta <gauragup@cisco.com>
Signed-off-by: Gaurav Gupta <gauragup@cisco.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-devtools/qemu/qemu.inc
meta/recipes-devtools/qemu/qemu/CVE-2021-3929.patch
meta/recipes-devtools/qemu/qemu/hw-block-nvme-handle-dma-errors.patch [new file with mode: 0644]
meta/recipes-devtools/qemu/qemu/hw-block-nvme-refactor-nvme_addr_read.patch [new file with mode: 0644]