On Wed, Mar 29, 2023 at 9:51 AM Gaurav Gupta (gauragup) via lists.openembedded.org <[email protected]> wrote: > > Hello, > > > > On latest “dunfell” branch, there’s a compiler warning/error when building > QEMU. > > > > The patch for CVE-2021-3929 applied on dunfell returns a value for a void > function: > https://github.com/openembedded/openembedded-core/blob/dunfell/meta/recipes-devtools/qemu/qemu/CVE-2021-3929.patch#L58 > > > > This results in the following warning/error: > > > > <ws>/qemu/4.2.0-r0/qemu-4.2.0/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”. > >
yeah perhaps we need to backport https://github.com/qemu/qemu/commit/94cbcf530f9d9789b75ef1ae227ba4a4f702bf7d as well. https://github.com/openembedded/openembedded-core/blob/dunfell/meta/recipes-devtools/qemu/qemu/CVE-2021-3929.patch#L58 > > Thanks, > > Gaurav > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#179293): https://lists.openembedded.org/g/openembedded-core/message/179293 Mute This Topic: https://lists.openembedded.org/mt/97933015/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
