From: Ahmad Fatoum <a.fatoum@barebox.org>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@barebox.org>
Subject: [PATCH master 2/2] RISC-V: stacktrace: add missing header for eprintf
Date: Thu, 14 Aug 2025 22:22:54 +0200 [thread overview]
Message-ID: <20250814202254.344010-2-a.fatoum@barebox.org> (raw)
In-Reply-To: <20250814202254.344010-1-a.fatoum@barebox.org>
eprintf is defined in stdio.h, which was not included.
Signed-off-by: Ahmad Fatoum <a.fatoum@barebox.org>
---
arch/riscv/lib/stacktrace.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/riscv/lib/stacktrace.c b/arch/riscv/lib/stacktrace.c
index 7cf102a06fe0..30daec7caad2 100644
--- a/arch/riscv/lib/stacktrace.c
+++ b/arch/riscv/lib/stacktrace.c
@@ -9,6 +9,7 @@
#include <linux/kernel.h>
#include <printf.h>
+#include <stdio.h>
#include <asm/unwind.h>
#include <asm/ptrace.h>
#include <asm-generic/memory_layout.h>
--
2.39.5
prev parent reply other threads:[~2025-08-14 20:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-14 20:22 [PATCH master 1/2] kbuild: images/Makefile: fix broken if_changed usage Ahmad Fatoum
2025-08-14 20:22 ` Ahmad Fatoum [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250814202254.344010-2-a.fatoum@barebox.org \
--to=a.fatoum@barebox.org \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox