diff options
author | Fabrice Fontaine <fontaine.fabrice@gmail.com> | 2018-11-09 18:57:40 +0100 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2018-11-10 09:43:12 +0100 |
commit | 6a5e9a7ac6e20f8cb2251b61b09b54d51bedfa82 (patch) | |
tree | 1e0ed80f02bb034d47dfc5ac1bf6128c5d9503b6 /package/libiscsi/0003-avoid-fallthrough.patch | |
parent | 956f05595f7fc3d286c4470628a1c6448ab437b0 (diff) | |
download | buildroot-6a5e9a7ac6e20f8cb2251b61b09b54d51bedfa82.tar.gz buildroot-6a5e9a7ac6e20f8cb2251b61b09b54d51bedfa82.zip |
libiscsi: fix build failures due to warnings
Retrieve two upstream patches to fix build failures due to warnings
Fixes:
- http://autobuild.buildroot.org/results/7ec1e1cc060bbdaaf758c0d55a053247b731e792
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/libiscsi/0003-avoid-fallthrough.patch')
-rw-r--r-- | package/libiscsi/0003-avoid-fallthrough.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/package/libiscsi/0003-avoid-fallthrough.patch b/package/libiscsi/0003-avoid-fallthrough.patch new file mode 100644 index 0000000000..94f653a99c --- /dev/null +++ b/package/libiscsi/0003-avoid-fallthrough.patch @@ -0,0 +1,24 @@ +From 679d0abe7c142df178a907397551c4d9695cc667 Mon Sep 17 00:00:00 2001 +From: Paolo Bonzini <pbonzini@redhat.com> +Date: Mon, 1 Oct 2018 14:14:24 +0200 +Subject: [PATCH] avoid fallthrough + +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> +[Retrieved from: +https://github.com/sahlberg/libiscsi/commit/679d0abe7c142df178a907397551c4d9695cc667] +--- + lib/scsi-lowlevel.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/lib/scsi-lowlevel.c b/lib/scsi-lowlevel.c +index 5ddd709c..747ce0c4 100644 +--- a/lib/scsi-lowlevel.c ++++ b/lib/scsi-lowlevel.c +@@ -1086,6 +1086,7 @@ scsi_maintenancein_datain_getfullsize(struct scsi_task *task) + (task_get_uint8(task, 1) & 0x80) ? 12 : 0 + + task_get_uint16(task, 2); + } ++ return -1; + default: + return -1; + } |