summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/mdadm/files/0001-Disable-gcc8-warnings.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/mdadm/files/0001-Disable-gcc8-warnings.patch')
-rw-r--r--meta/recipes-extended/mdadm/files/0001-Disable-gcc8-warnings.patch74
1 files changed, 37 insertions, 37 deletions
diff --git a/meta/recipes-extended/mdadm/files/0001-Disable-gcc8-warnings.patch b/meta/recipes-extended/mdadm/files/0001-Disable-gcc8-warnings.patch
index 739652cd55..361d53ca6c 100644
--- a/meta/recipes-extended/mdadm/files/0001-Disable-gcc8-warnings.patch
+++ b/meta/recipes-extended/mdadm/files/0001-Disable-gcc8-warnings.patch
@@ -1,4 +1,4 @@
1From b83218de2623c0bbe9af355a81ae8385d7f30cfc Mon Sep 17 00:00:00 2001 1From a6c991750ae6ebd87a0b9b243bec7fd8e5a064c5 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 9 May 2018 12:56:41 -0700 3Date: Wed, 9 May 2018 12:56:41 -0700
4Subject: [PATCH] Disable gcc8 warnings 4Subject: [PATCH] Disable gcc8 warnings
@@ -23,28 +23,15 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
23 mdopen.c | 4 ++++ 23 mdopen.c | 4 ++++
24 super-ddf.c | 4 ++++ 24 super-ddf.c | 4 ++++
25 super-intel.c | 6 ++++++ 25 super-intel.c | 6 ++++++
26 super1.c | 5 +++++
27 super0.c | 2 +- 26 super0.c | 2 +-
28 6 files changed, 22 insertions(+), 1 deletion(-) 27 super1.c | 5 +++++
28 6 files changed, 23 insertions(+), 2 deletions(-)
29 29
30diff --git a/super0.c b/super0.c
31index f5b4507..264b598 100644
32--- a/super0.c
33+++ b/super0.c
34@@ -231,7 +231,7 @@
35 d++) {
36 mdp_disk_t *dp;
37 char *dv;
38- char nb[11];
39+ char nb[12];
40 int wonly, failfast;
41 if (d>=0) dp = &sb->disks[d];
42 else dp = &sb->this_disk;
43diff --git a/Monitor.c b/Monitor.c 30diff --git a/Monitor.c b/Monitor.c
44index 802a9d9..23b246b 100644 31index 036103f..08cbd0a 100644
45--- a/Monitor.c 32--- a/Monitor.c
46+++ b/Monitor.c 33+++ b/Monitor.c
47@@ -441,7 +441,8 @@ static void alert(char *event, char *dev, char *disc, struct alert_info *info) 34@@ -445,7 +445,8 @@ static void alert(char *event, char *dev, char *disc, struct alert_info *info)
48 event, dev); 35 event, dev);
49 } 36 }
50 } 37 }
@@ -54,16 +41,16 @@ index 802a9d9..23b246b 100644
54 static int check_array(struct state *st, struct mdstat_ent *mdstat, 41 static int check_array(struct state *st, struct mdstat_ent *mdstat,
55 int test, struct alert_info *ainfo, 42 int test, struct alert_info *ainfo,
56 int increments, char *prefer) 43 int increments, char *prefer)
57@@ -683,6 +684,7 @@ static int check_array(struct state *st, struct mdstat_ent *mdstat, 44@@ -673,6 +674,7 @@ static int check_array(struct state *st, struct mdstat_ent *mdstat,
58 return 1; 45 st->err++;
59 return 0; 46 goto out;
60 } 47 }
61+#pragma GCC diagnostic pop 48+#pragma GCC diagnostic pop
62 49
63 static int add_new_arrays(struct mdstat_ent *mdstat, struct state **statelist, 50 static int add_new_arrays(struct mdstat_ent *mdstat, struct state **statelist,
64 int test, struct alert_info *info) 51 int test, struct alert_info *info)
65diff --git a/mdopen.c b/mdopen.c 52diff --git a/mdopen.c b/mdopen.c
66index 685ca32..406aba4 100644 53index 98c54e4..4f72b69 100644
67--- a/mdopen.c 54--- a/mdopen.c
68+++ b/mdopen.c 55+++ b/mdopen.c
69@@ -26,6 +26,9 @@ 56@@ -26,6 +26,9 @@
@@ -76,19 +63,19 @@ index 685ca32..406aba4 100644
76 void make_parts(char *dev, int cnt) 63 void make_parts(char *dev, int cnt)
77 { 64 {
78 /* make 'cnt' partition devices for 'dev' 65 /* make 'cnt' partition devices for 'dev'
79@@ -99,6 +102,7 @@ void make_parts(char *dev, int cnt) 66@@ -101,6 +104,7 @@ void make_parts(char *dev, int cnt)
80 } 67 }
81 free(name); 68 free(name);
82 } 69 }
83+#pragma GCC diagnostic pop 70+#pragma GCC diagnostic pop
84 71
85 /* 72 int create_named_array(char *devnm)
86 * We need a new md device to assemble/build/create an array. 73 {
87diff --git a/super-ddf.c b/super-ddf.c 74diff --git a/super-ddf.c b/super-ddf.c
88index 1707ad1..e08d289 100644 75index 618542c..6ed4e7e 100644
89--- a/super-ddf.c 76--- a/super-ddf.c
90+++ b/super-ddf.c 77+++ b/super-ddf.c
91@@ -2846,6 +2846,9 @@ static void _set_config_size(struct phys_disk_entry *pde, const struct dl *dl) 78@@ -2828,6 +2828,9 @@ static void _set_config_size(struct phys_disk_entry *pde, const struct dl *dl)
92 (unsigned long long)cfs, (unsigned long long)(dl->size-cfs)); 79 (unsigned long long)cfs, (unsigned long long)(dl->size-cfs));
93 } 80 }
94 81
@@ -98,7 +85,7 @@ index 1707ad1..e08d289 100644
98 /* Add a device to a container, either while creating it or while 85 /* Add a device to a container, either while creating it or while
99 * expanding a pre-existing container 86 * expanding a pre-existing container
100 */ 87 */
101@@ -2981,6 +2984,7 @@ static int add_to_super_ddf(struct supertype *st, 88@@ -2964,6 +2967,7 @@ static int add_to_super_ddf(struct supertype *st,
102 89
103 return 0; 90 return 0;
104 } 91 }
@@ -107,10 +94,10 @@ index 1707ad1..e08d289 100644
107 static int remove_from_super_ddf(struct supertype *st, mdu_disk_info_t *dk) 94 static int remove_from_super_ddf(struct supertype *st, mdu_disk_info_t *dk)
108 { 95 {
109diff --git a/super-intel.c b/super-intel.c 96diff --git a/super-intel.c b/super-intel.c
110index 00a2925..44fbead 100644 97index 1bc4b80..39d0e92 100644
111--- a/super-intel.c 98--- a/super-intel.c
112+++ b/super-intel.c 99+++ b/super-intel.c
113@@ -298,6 +298,11 @@ struct md_list { 100@@ -333,6 +333,11 @@ struct md_list {
114 }; 101 };
115 102
116 #define pr_vrb(fmt, arg...) (void) (verbose && pr_err(fmt, ##arg)) 103 #define pr_vrb(fmt, arg...) (void) (verbose && pr_err(fmt, ##arg))
@@ -122,16 +109,29 @@ index 00a2925..44fbead 100644
122 109
123 static __u8 migr_type(struct imsm_dev *dev) 110 static __u8 migr_type(struct imsm_dev *dev)
124 { 111 {
125@@ -11618,3 +11623,4 @@ struct superswitch super_imsm = { 112@@ -12208,3 +12213,4 @@ struct superswitch super_imsm = {
113 .clear_bad_block = imsm_clear_badblock,
126 .get_bad_blocks = imsm_get_badblocks, 114 .get_bad_blocks = imsm_get_badblocks,
127 #endif /* MDASSEMBLE */
128 }; 115 };
129+#pragma GCC diagnostic pop 116+#pragma GCC diagnostic pop
117diff --git a/super0.c b/super0.c
118index 42989b9..f5e8031 100644
119--- a/super0.c
120+++ b/super0.c
121@@ -229,7 +229,7 @@ static void examine_super0(struct supertype *st, char *homehost)
122 d++) {
123 mdp_disk_t *dp;
124 char *dv;
125- char nb[11];
126+ char nb[12];
127 int wonly, failfast;
128 if (d>=0) dp = &sb->disks[d];
129 else dp = &sb->this_disk;
130diff --git a/super1.c b/super1.c 130diff --git a/super1.c b/super1.c
131index 87a74cb..71c515f 100644 131index 636a286..f894cbb 100644
132--- a/super1.c 132--- a/super1.c
133+++ b/super1.c 133+++ b/super1.c
134@@ -1091,6 +1091,10 @@ static struct mdinfo *container_content1(struct supertype *st, char *subarray) 134@@ -1176,6 +1176,10 @@ static struct mdinfo *container_content1(struct supertype *st, char *subarray)
135 return info; 135 return info;
136 } 136 }
137 137
@@ -140,9 +140,9 @@ index 87a74cb..71c515f 100644
140+# pragma GCC diagnostic ignored "-Wstringop-truncation" 140+# pragma GCC diagnostic ignored "-Wstringop-truncation"
141+#endif 141+#endif
142 static int update_super1(struct supertype *st, struct mdinfo *info, 142 static int update_super1(struct supertype *st, struct mdinfo *info,
143 char *update, 143 char *update, char *devname, int verbose,
144 char *devname, int verbose, 144 int uuid_set, char *homehost)
145@@ -1473,6 +1477,7 @@ static int init_super1(struct supertype *st, mdu_array_info_t *info, 145@@ -1641,6 +1645,7 @@ static int init_super1(struct supertype *st, mdu_array_info_t *info,
146 146
147 return 1; 147 return 1;
148 } 148 }