summary refs log tree commit diff stats
path: root/scripts/performance
diff options
context:
space:
mode:
authorBin Meng <bin.meng@windriver.com>2021-02-10 19:22:21 +0800
committerKlaus Jensen <k.jensen@samsung.com>2021-02-11 14:22:30 +0100
commit2132cfe52bd87f191887c1728190bf56e8d5275f (patch)
treedabf7c28791d3348b4057bdab64150ce5399998e /scripts/performance
parent886188a9c11ff9518c8f20e265e7a98439c14d32 (diff)
downloadfocaccia-qemu-2132cfe52bd87f191887c1728190bf56e8d5275f.tar.gz
focaccia-qemu-2132cfe52bd87f191887c1728190bf56e8d5275f.zip
hw/block/nvme: Fix a build error in nvme_get_feature()
Current QEMU HEAD nvme.c does not compile with the default GCC 5.4
on a Ubuntu 16.04 host:

  hw/block/nvme.c:3242:9: error: ‘result’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
         trace_pci_nvme_getfeat_vwcache(result ? "enabled" : "disabled");
         ^
  hw/block/nvme.c:3150:14: note: ‘result’ was declared here
     uint32_t result;
              ^

Explicitly initialize the result to fix it.

Fixes: aa5e55e3b07e ("hw/block/nvme: open code for volatile write cache")
Fixes: Coverity CID 1446371
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Diffstat (limited to 'scripts/performance')
0 files changed, 0 insertions, 0 deletions