From c781202b0c1275507139e7c1206119d05241dc20 Mon Sep 17 00:00:00 2001 From: Jeremy Linton Date: May 13 2022 20:52:43 +0000 Subject: fixup compiler warning Signed-off-by: Jeremy Linton --- diff --git a/0001-hw-i8042-Suppress-compiler-warning.patch b/0001-hw-i8042-Suppress-compiler-warning.patch new file mode 100644 index 0000000..98d671b --- /dev/null +++ b/0001-hw-i8042-Suppress-compiler-warning.patch @@ -0,0 +1,31 @@ +From 8ba28afce5c6e239bfbd922fd99e830cb007753a Mon Sep 17 00:00:00 2001 +From: Jeremy Linton +Date: Fri, 13 May 2022 15:49:25 -0500 +Subject: [PATCH] hw/i8042: Suppress compiler warning + +Recent GGC's can't determine if value is set before calling +routines which make use of it. This is a false positive it +should be set anytime is_write is true. Just init +it to 0 to make the compiler happy. + +Signed-off-by: Jeremy Linton +--- + hw/i8042.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/hw/i8042.c b/hw/i8042.c +index 20be36c..6e4b559 100644 +--- a/hw/i8042.c ++++ b/hw/i8042.c +@@ -295,7 +295,7 @@ static void kbd_reset(void) + static void kbd_io(struct kvm_cpu *vcpu, u64 addr, u8 *data, u32 len, + u8 is_write, void *ptr) + { +- u8 value; ++ u8 value = 0; + + if (is_write) + value = ioport__read8(data); +-- +2.36.1 + diff --git a/kvmtool-4639b72f61a3d4ca48a2af1b0510584d633b8de1.tar.gz b/kvmtool-4639b72f61a3d4ca48a2af1b0510584d633b8de1.tar.gz deleted file mode 100644 index 986718c..0000000 Binary files a/kvmtool-4639b72f61a3d4ca48a2af1b0510584d633b8de1.tar.gz and /dev/null differ diff --git a/kvmtoolrh.spec b/kvmtoolrh.spec index 1f5d56a..060254c 100644 --- a/kvmtoolrh.spec +++ b/kvmtoolrh.spec @@ -10,8 +10,16 @@ URL: https://git.kernel.org/cgit/linux/kernel/git/will/kvmtool.git/tree/README Source0: https://git.kernel.org/cgit/linux/kernel/git/will/%{name}.git/snapshot/%{name}-%{commit0}.tar.gz #Patch0: 0001-kvmtool-makedev-should-be-sourced-from-sysmacros.patch +Patch0: 0001-hw-i8042-Suppress-compiler-warning.patch + +BuildRequires: binutils-devel +BuildRequires: libaio-devel +BuildRequires: zlib-devel +BuildRequires: libvncserver +BuildRequires: SDL-devel +BuildRequires: make +BuildRequires: gcc -BuildRequires: binutils-devel, libaio-devel, zlib-devel, libvncserver SDL-devel #Requires: %description