summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/mdadm
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2014-05-02 16:31:17 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-05-06 17:59:15 +0100
commit3a9092e9ca6b81dc4c8f4781787744d182edf03c (patch)
tree14bad19285f5b978d4868601c4d716352495a86c /meta/recipes-extended/mdadm
parent5f897ef09c2f17f6e665d18eb6f77426da30a114 (diff)
downloadpoky-3a9092e9ca6b81dc4c8f4781787744d182edf03c.tar.gz
mdadm: Fix build on gcc 4.9
Fix error: right-hand operand of comma expression has no effect [-Werror=unused-value] (From OE-Core rev: 9e1aac485175d29951f7ad23cd7515c8f7580271) (From OE-Core rev: 58da3355522736b93bb6d164739c795068d2a1e8) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/mdadm')
-rw-r--r--meta/recipes-extended/mdadm/files/gcc-4.9.patch22
-rw-r--r--meta/recipes-extended/mdadm/mdadm_3.3.bb3
2 files changed, 24 insertions, 1 deletions
diff --git a/meta/recipes-extended/mdadm/files/gcc-4.9.patch b/meta/recipes-extended/mdadm/files/gcc-4.9.patch
new file mode 100644
index 0000000000..54bf1d79ab
--- /dev/null
+++ b/meta/recipes-extended/mdadm/files/gcc-4.9.patch
@@ -0,0 +1,22 @@
1super-intel.c:5063:2: error: right-hand operand of comma expression has no effect [-Werror=unused-value]
2 snprintf((char *) spare->sig, MAX_SIGNATURE_LENGTH,
3 ^
4cc1: all warnings being treated as errors
5make: *** [super-intel.o] Error 1
6
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8Upstream-Status: Pending
9
10Index: mdadm-3.3/super-intel.c
11===================================================================
12--- mdadm-3.3.orig/super-intel.c 2014-05-02 15:08:21.154319651 -0700
13+++ mdadm-3.3/super-intel.c 2014-05-02 15:09:31.470985794 -0700
14@@ -5060,7 +5060,7 @@
15 spare->cache_size = mpb->cache_size,
16 spare->pwr_cycle_count = __cpu_to_le32(1),
17
18- snprintf((char *) spare->sig, MAX_SIGNATURE_LENGTH,
19+ (void)snprintf((char *) spare->sig, MAX_SIGNATURE_LENGTH,
20 MPB_SIGNATURE MPB_VERSION_RAID0);
21
22 for (d = super->disks; d; d = d->next) {
diff --git a/meta/recipes-extended/mdadm/mdadm_3.3.bb b/meta/recipes-extended/mdadm/mdadm_3.3.bb
index 5ef418e170..40d68d6664 100644
--- a/meta/recipes-extended/mdadm/mdadm_3.3.bb
+++ b/meta/recipes-extended/mdadm/mdadm_3.3.bb
@@ -9,7 +9,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
9 9
10 10
11SRC_URI = "${KERNELORG_MIRROR}/linux/utils/raid/mdadm/${BPN}-${PV}.tar.bz2 \ 11SRC_URI = "${KERNELORG_MIRROR}/linux/utils/raid/mdadm/${BPN}-${PV}.tar.bz2 \
12 file://mdadm-3.2.2_fix_for_x32.patch \ 12 file://mdadm-3.2.2_fix_for_x32.patch \
13 file://gcc-4.9.patch \
13 " 14 "
14 15
15SRC_URI[md5sum] = "8ac04259cdd74b4566c3b6dea9414b57" 16SRC_URI[md5sum] = "8ac04259cdd74b4566c3b6dea9414b57"