1From e13769bd60581f9cbb8c8565e0e5345fbfeb1508 Mon Sep 17 00:00:00 2001
2From: Martin Sebor <msebor@redhat.com>
3Date: Thu, 8 Oct 2020 12:46:03 -0600
4Subject: [PATCH 16/20] Avoid GCC 11 -Warray-parameter warnings [BZ #26686].
5
6Building Glibc with the latest GCC 11 also shows a couple of instances
7of the new -Warray-parameter warning in the thread db APIs.
8
9To avoid these, this patch changes the deefinitions of the two functions
10to match their definitions.
11
12(cherry picked from commit 3eff7504cab0c406dbd27a1b07a413dafc39634d)
13Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
14---
15 nptl_db/fetch-value.c | 4 ++--
16 1 file changed, 2 insertions(+), 2 deletions(-)
17
18diff --git a/nptl_db/fetch-value.c b/nptl_db/fetch-value.c
19index 8514898e..cb58de64 100644
20--- a/nptl_db/fetch-value.c
21+++ b/nptl_db/fetch-value.c
22@@ -140,7 +140,7 @@ _td_fetch_value (td_thragent_t *ta,
23
24 td_err_e
25 _td_store_value (td_thragent_t *ta,
26-		 uint32_t desc[2], int descriptor_name, psaddr_t idx,
27+		 db_desc_t desc, int descriptor_name, psaddr_t idx,
28 		 psaddr_t address, psaddr_t widened_value)
29 {
30   ps_err_e err;
31@@ -240,7 +240,7 @@ _td_fetch_value_local (td_thragent_t *ta,
32
33 td_err_e
34 _td_store_value_local (td_thragent_t *ta,
35-		       uint32_t desc[2], int descriptor_name, psaddr_t idx,
36+		       db_desc_t desc, int descriptor_name, psaddr_t idx,
37 		       void *address, psaddr_t widened_value)
38 {
39   td_err_e terr = _td_locate_field (ta, desc, descriptor_name, idx, &address);
40--
412.20.1
42
43