summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-devtools/mmc/mmc-utils/0001-mmc_cmd.c-Use-extra-braces-when-initializing-subobje.patch32
-rw-r--r--meta/recipes-devtools/mmc/mmc-utils_git.bb1
2 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-devtools/mmc/mmc-utils/0001-mmc_cmd.c-Use-extra-braces-when-initializing-subobje.patch b/meta/recipes-devtools/mmc/mmc-utils/0001-mmc_cmd.c-Use-extra-braces-when-initializing-subobje.patch
new file mode 100644
index 0000000000..12707357b2
--- /dev/null
+++ b/meta/recipes-devtools/mmc/mmc-utils/0001-mmc_cmd.c-Use-extra-braces-when-initializing-subobje.patch
@@ -0,0 +1,32 @@
1From 04fbe6ddb5f1e02efbcae3cdf5beb16757a98948 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 10 May 2019 12:58:01 -0700
4Subject: [PATCH] mmc_cmd.c: Use extra braces when initializing subobjects
5
6clang warns with -Werror,-Wmissing-braces, as following error
7| mmc_cmds.c:1886:36: error: suggest braces around initialization of subobject [-Werror,-W
8missing-braces]
9| struct rpmb_frame frame_status = {0};
10| ^
11| {}
12
13Upstream-Status: Pending
14
15Signed-off-by: Khem Raj <raj.khem@gmail.com>
16---
17 mmc_cmds.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/mmc_cmds.c b/mmc_cmds.c
21index 19a9da1..838e8c3 100644
22--- a/mmc_cmds.c
23+++ b/mmc_cmds.c
24@@ -1883,7 +1883,7 @@ static int do_rpmb_op(int fd,
25 u_int16_t rpmb_type;
26 struct mmc_ioc_multi_cmd *mioc;
27 struct mmc_ioc_cmd *ioc;
28- struct rpmb_frame frame_status = {0};
29+ struct rpmb_frame frame_status = {{0}};
30
31 if (!frame_in || !frame_out || !out_cnt)
32 return -EINVAL;
diff --git a/meta/recipes-devtools/mmc/mmc-utils_git.bb b/meta/recipes-devtools/mmc/mmc-utils_git.bb
index f3a7234670..0c401c86fa 100644
--- a/meta/recipes-devtools/mmc/mmc-utils_git.bb
+++ b/meta/recipes-devtools/mmc/mmc-utils_git.bb
@@ -9,6 +9,7 @@ SRCREV = "aef913e31b659462fe6b9320d241676cba97f67b"
9PV = "0.1+git${SRCPV}" 9PV = "0.1+git${SRCPV}"
10 10
11SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils.git;branch=${SRCBRANCH} \ 11SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils.git;branch=${SRCBRANCH} \
12 file://0001-mmc_cmd.c-Use-extra-braces-when-initializing-subobje.patch \
12 " 13 "
13UPSTREAM_CHECK_COMMITS = "1" 14UPSTREAM_CHECK_COMMITS = "1"
14 15