diff options
-rw-r--r-- | meta/recipes-extended/mdadm/files/0001-fix-gcc-8-format-truncation-warning.patch | 39 | ||||
-rw-r--r-- | meta/recipes-extended/mdadm/mdadm_4.1.bb | 1 |
2 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-extended/mdadm/files/0001-fix-gcc-8-format-truncation-warning.patch b/meta/recipes-extended/mdadm/files/0001-fix-gcc-8-format-truncation-warning.patch new file mode 100644 index 0000000000..fa9c8cc835 --- /dev/null +++ b/meta/recipes-extended/mdadm/files/0001-fix-gcc-8-format-truncation-warning.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From 3158d3788c2e0fb75ace2c89840bd8a977fb4cb0 Mon Sep 17 00:00:00 2001 | ||
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
3 | Date: Fri, 14 Dec 2018 15:12:31 +0800 | ||
4 | Subject: [PATCH] fix gcc-8 format-truncation warning | ||
5 | |||
6 | While compiling with `-Werror=format-truncation=', it failed | ||
7 | [snip] | ||
8 | |super0.c:236:32: error: 'snprintf' output may be truncated | ||
9 | before the last format character [-Werror=format-truncation=] | ||
10 | | snprintf(nb, sizeof(nb), "%4d", d); | ||
11 | | ^ | ||
12 | |super0.c:236:3: note: 'snprintf' output between 5 and 12 bytes | ||
13 | into a destination of size 11 | ||
14 | | snprintf(nb, sizeof(nb), "%4d", d); | ||
15 | [snip] | ||
16 | |||
17 | Upstream-Status: Submitted [https://github.com/neilbrown/mdadm/pull/34] | ||
18 | |||
19 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
20 | --- | ||
21 | super0.c | 2 +- | ||
22 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
23 | |||
24 | diff --git a/super0.c b/super0.c | ||
25 | index 756cab5..12c28da 100644 | ||
26 | --- a/super0.c | ||
27 | +++ b/super0.c | ||
28 | @@ -229,7 +229,7 @@ static void examine_super0(struct supertype *st, char *homehost) | ||
29 | d++) { | ||
30 | mdp_disk_t *dp; | ||
31 | char *dv; | ||
32 | - char nb[11]; | ||
33 | + char nb[12]; | ||
34 | int wonly, failfast; | ||
35 | if (d>=0) dp = &sb->disks[d]; | ||
36 | else dp = &sb->this_disk; | ||
37 | -- | ||
38 | 2.7.4 | ||
39 | |||
diff --git a/meta/recipes-extended/mdadm/mdadm_4.1.bb b/meta/recipes-extended/mdadm/mdadm_4.1.bb index 9118baaf1a..7663a6b7ec 100644 --- a/meta/recipes-extended/mdadm/mdadm_4.1.bb +++ b/meta/recipes-extended/mdadm/mdadm_4.1.bb | |||
@@ -16,6 +16,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/raid/mdadm/${BPN}-${PV}.tar.xz \ | |||
16 | file://0001-Fix-the-path-of-corosync-and-dlm-header-files-check.patch \ | 16 | file://0001-Fix-the-path-of-corosync-and-dlm-header-files-check.patch \ |
17 | file://0001-Use-CC-to-check-for-implicit-fallthrough-warning-sup.patch \ | 17 | file://0001-Use-CC-to-check-for-implicit-fallthrough-warning-sup.patch \ |
18 | file://0001-Compute-abs-diff-in-a-standard-compliant-way.patch \ | 18 | file://0001-Compute-abs-diff-in-a-standard-compliant-way.patch \ |
19 | file://0001-fix-gcc-8-format-truncation-warning.patch \ | ||
19 | " | 20 | " |
20 | SRC_URI[md5sum] = "51bf3651bd73a06c413a2f964f299598" | 21 | SRC_URI[md5sum] = "51bf3651bd73a06c413a2f964f299598" |
21 | SRC_URI[sha256sum] = "ab7688842908d3583a704d491956f31324c3a5fc9f6a04653cb75d19f1934f4a" | 22 | SRC_URI[sha256sum] = "ab7688842908d3583a704d491956f31324c3a5fc9f6a04653cb75d19f1934f4a" |