Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:Update
mdadm.5365
0225-raid6check.c-fix-misleading-indentation-er...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0225-raid6check.c-fix-misleading-indentation-error.patch of Package mdadm.5365
From e9eb82adb811af0d07d4d4675151e9a97b2724b9 Mon Sep 17 00:00:00 2001 From: Yilong Ren <yilongx.ren@intel.com> Date: Wed, 26 Oct 2016 16:10:38 +0800 Subject: [PATCH 316/359] raid6check.c: fix "misleading-indentation" error References: bsc#1081910 To fix the following error info: root@vm-lkp-nex04-8G-7 /tmp/mdadm# make test cc -Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -DMAP_DIR=\"/run/mdadm\" -DMAP_FILE=\"map\" -DMDMON_DIR=\"/run/mdadm\" -DFAILED_SLOTS_DIR=\"/run/mdadm/failed-slots\" -DNO_COROSYNC -DNO_DLM -DVERSION=\"3.4-43-g1dcee1c\" -DVERS_DATE="\"06th April 2016\"" -DUSE_PTHREADS -DBINDIR=\"/sbin\" -c -o raid6check.o raid6check.c Raid6check.c: In function 'manual_repair': raid6check.c:267:4: error: this 'else' clause does not guard... [-Werror=misleading-indentation] else ^~~~ raid6check.c:269:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else' printf("Repairing D(%d) and P\n", failed_data); ^~~~~~ Cc1: all warnings being treated as errors <builtin>: recipe for target 'raid6check.o' failed Make: *** [raid6check.o] Error 1 root@vm-lkp-nex04-8G-7 /tmp/mdadm# Cc: NeilBrown <neilb@suse.com> Cc: linux-raid <linux-raid@vger.kernel.org> Cc: LKP <lkp@eclists.intel.com> Reviewed-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Yilong Ren <yilongx.ren@intel.com> Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Coly Li <colyli@suse.de> --- raid6check.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/raid6check.c b/raid6check.c index ad7ffe7..551f835 100644 --- a/raid6check.c +++ b/raid6check.c @@ -266,7 +266,8 @@ int manual_repair(int chunk_size, int syndrome_disks, failed_data = failed_slot2; else failed_data = failed_slot1; - printf("Repairing D(%d) and P\n", failed_data); + + printf("Repairing D(%d) and P\n", failed_data); raid6_datap_recov(syndrome_disks+2, chunk_size, failed_data, (uint8_t**)blocks, 1); } else { -- 2.16.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor