* [PATCH kexec-tools] ppc64: Fix minor build warnings
@ 2025-12-02 10:22 Shivang Upadhyay
2025-12-03 17:29 ` Simon Horman
0 siblings, 1 reply; 2+ messages in thread
From: Shivang Upadhyay @ 2025-12-02 10:22 UTC (permalink / raw)
To: horms; +Cc: shivangu, kexec, Sourabh Jain
ppc64 target compiles warning free now.
Cc: Sourabh Jain <sourabhjain@linux.ibm.com>
Signed-off-by: Shivang Upadhyay <shivangu@linux.ibm.com>
---
kexec/arch/ppc64/fdt.c | 2 +-
kexec/arch/ppc64/kexec-elf-rel-ppc64.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/kexec/arch/ppc64/fdt.c b/kexec/arch/ppc64/fdt.c
index 879240f..bb57b3e 100644
--- a/kexec/arch/ppc64/fdt.c
+++ b/kexec/arch/ppc64/fdt.c
@@ -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];
diff --git a/kexec/arch/ppc64/kexec-elf-rel-ppc64.c b/kexec/arch/ppc64/kexec-elf-rel-ppc64.c
index 51b1354..4e00848 100644
--- a/kexec/arch/ppc64/kexec-elf-rel-ppc64.c
+++ b/kexec/arch/ppc64/kexec-elf-rel-ppc64.c
@@ -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:
--
2.51.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH kexec-tools] ppc64: Fix minor build warnings
2025-12-02 10:22 [PATCH kexec-tools] ppc64: Fix minor build warnings Shivang Upadhyay
@ 2025-12-03 17:29 ` Simon Horman
0 siblings, 0 replies; 2+ messages in thread
From: Simon Horman @ 2025-12-03 17:29 UTC (permalink / raw)
To: Shivang Upadhyay; +Cc: kexec, Sourabh Jain
On Tue, Dec 02, 2025 at 03:52:36PM +0530, Shivang Upadhyay wrote:
> ppc64 target compiles warning free now.
>
> Cc: Sourabh Jain <sourabhjain@linux.ibm.com>
> Signed-off-by: Shivang Upadhyay <shivangu@linux.ibm.com>
Thanks, applied.
- ppc64: Fix minor build warnings
https://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git/commit/?id=1633ed5ee80e
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-12-03 17:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-02 10:22 [PATCH kexec-tools] ppc64: Fix minor build warnings Shivang Upadhyay
2025-12-03 17:29 ` Simon Horman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox