3.3.4 -> 3.4 a) Removed the following upstreamed patch: 1. 0001-Define-_POSIX_C_SOURCE-if-undefined.patch b) Added following patches to fix uclibc,musl and x32 build failures 1. 0001-mdadm.h-bswap-is-already-defined-in-uclibc.patch 2. 0001-util.c-include-poll.h-instead-of-sys-poll.h.patch 3. 0001-Fix-some-type-comparison-problems.patch 4. 0001-Fix-the-path-of-corosync-and-dlm-header-files-check.patch (From OE-Core rev: e1ae012388e4321b95cd79c014af135cf6c419ad) Signed-off-by: Maxin B. John <maxin.john@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
46 lines
1.3 KiB
Diff
46 lines
1.3 KiB
Diff
From c65898b9da82df94e1bae7937e415a7eb80355d5 Mon Sep 17 00:00:00 2001
|
|
From: "Maxin B. John" <maxin.john@intel.com>
|
|
Date: Wed, 10 Feb 2016 17:28:05 +0200
|
|
Subject: [PATCH] mdadm-fix-ptest-build-errors
|
|
|
|
builds fail with ptest enabled:
|
|
|
|
| restripe.c: In function 'test_stripes':
|
|
| restripe.c:845:4: error: ignoring return value of 'read', declared with
|
|
| attribute warn_unused_result [-Werror=unused-result]
|
|
| read(source[i], stripes[i], chunk_size);
|
|
| ^
|
|
| cc1: all warnings being treated as errors
|
|
| Makefile:214: recipe for target 'test_stripe' failed
|
|
|
|
Upstream-Status: Pending
|
|
|
|
Signed-off-by: Maxin B. John <maxin.john@intel.com>
|
|
---
|
|
restripe.c | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/restripe.c b/restripe.c
|
|
index 56dca73..d24b2b4 100644
|
|
--- a/restripe.c
|
|
+++ b/restripe.c
|
|
@@ -842,10 +842,14 @@ int test_stripes(int *source, unsigned long long *offsets,
|
|
|
|
while (length > 0) {
|
|
int disk;
|
|
+ ssize_t ret;
|
|
|
|
for (i = 0 ; i < raid_disks ; i++) {
|
|
lseek64(source[i], offsets[i]+start, 0);
|
|
- read(source[i], stripes[i], chunk_size);
|
|
+ ret = read(source[i], stripes[i], chunk_size);
|
|
+ if (ret == -1) {
|
|
+ printf("Read Failed\n");
|
|
+ }
|
|
}
|
|
for (i = 0 ; i < data_disks ; i++) {
|
|
int disk = geo_map(i, start/chunk_size, raid_disks,
|
|
--
|
|
2.4.0
|
|
|