Blame makedumpfile-1.7.2-0006-1-2-eppic-Fix-incompatible-pointer-type-warnin.patch

2ba6f6
From f8ac9140c2e649229880a1b08e199f8245c9cd20 Mon Sep 17 00:00:00 2001
2ba6f6
From: Petr Tesarik <ptesarik@suse.com>
2ba6f6
Date: Sat, 15 Apr 2023 18:02:12 +0200
2ba6f6
Subject: [PATCH 6/7] [PATCH 1/2] eppic: Fix incompatible pointer type warnings
2ba6f6
2ba6f6
On Linux, eppic defines ull (a bit confusingly) as uint64_t. This
2ba6f6
is an unsigned long on 64-bit platforms with both GCC and LLVM, and
2ba6f6
the compiler complains about passing a pointer to an unsigned long
2ba6f6
where a pointer to an unsigned long long is expected.
2ba6f6
2ba6f6
It is not a real bug, because both types are identical on 64-bit
2ba6f6
platforms, and on 32-bit platforms, uint64_t denotes an unsigned
2ba6f6
long long, but the warning is annoying.
2ba6f6
2ba6f6
Signed-off-by: Petr Tesarik <petr@tesarici.cz>
2ba6f6
---
2ba6f6
 extension_eppic.c | 4 ++--
2ba6f6
 1 file changed, 2 insertions(+), 2 deletions(-)
2ba6f6
2ba6f6
diff --git a/makedumpfile-1.7.2/extension_eppic.c b/makedumpfile-1.7.2/extension_eppic.c
2ba6f6
index 45bc032..8aa9ed2 100644
2ba6f6
--- a/makedumpfile-1.7.2/extension_eppic.c
2ba6f6
+++ b/makedumpfile-1.7.2/extension_eppic.c
2ba6f6
@@ -122,7 +122,7 @@ drilldown(ull offset, type_t *t)
2ba6f6
 {
2ba6f6
 	int type_flag, len = 0, t_len = 0, nidx = 0;
2ba6f6
 	int fctflg = 0, ref = 0, *idxlst = 0;
2ba6f6
-	ull die_off = offset, t_die_off;
2ba6f6
+	unsigned long long die_off = offset, t_die_off;
2ba6f6
 	char *tstr = NULL, *tstr_dup = NULL;
2ba6f6
 
2ba6f6
 	while (GET_DIE_ATTR_TYPE(die_off, &type_flag, &t_die_off)) {
2ba6f6
@@ -221,7 +221,7 @@ apimember(char *mname, ull idx, type_t *tm, member_t *m, ull *last_index)
2ba6f6
 	int index, nfields = -1, size;
2ba6f6
 	int nbits = 0, fbits = 0;
2ba6f6
 	long offset;
2ba6f6
-	ull m_die, die_off = idx;
2ba6f6
+	unsigned long long m_die, die_off = idx;
2ba6f6
 	char *name = NULL;
2ba6f6
 
2ba6f6
 	nfields = GET_DIE_NFIELDS_ALL(die_off);
2ba6f6
-- 
2ba6f6
2.33.1
2ba6f6