Skip to contentSkip to conversation

ppc64: Fix minor build warnings

PATCH Applied Shivang Upadhyay 2 participants 2 messages Dec 2, 2025 – Dec 3, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc64: Fix minor build warnings

ppc64 target compiles warning free now.

---
 kexec/arch/ppc64/fdt.c                 | 2 +-
 kexec/arch/ppc64/kexec-elf-rel-ppc64.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
kexec/arch/ppc64/fdt.c +1 -1
index 879240f..bb57b3e 100644
@@ -140,7 +140,7 @@ static int get_threads_per_cpu(char *path)
  *
  * Returns total number of present CPUs on success, -1 on failure.
  */
-static int get_present_cpus()
+static int get_present_cpus(void)
 {
 	char *range;
 	char buf[1024];
kexec/arch/ppc64/kexec-elf-rel-ppc64.c +1 -1
index 51b1354..4e00848 100644
@@ -104,7 +104,7 @@ void machine_apply_elf_rel(struct mem_ehdr *ehdr, struct mem_sym *sym,
 		break;
 
 	case R_PPC64_REL32:
-		*(uint32_t *)location = value - (uint32_t)location;
+		*(uint32_t *)location = value - (uintptr_t)location;
 		break;
 
 	case R_PPC64_TOC:
Signature · 1 line
2.51.0