aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-07-05 00:02:53 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-07-05 00:03:59 +0300
commit98f21e694a6b0964d6d08196cb6bfbc1c2ae2ff4 (patch)
treecbdba41381dc6e7a571001928eeb84996020db13 /arch
parenta6557ed0233e2193cef0ab5b4cea7f1d7f19ad5d (diff)
downloadkmi-98f21e694a6b0964d6d08196cb6bfbc1c2ae2ff4.tar.gz
kmi-98f21e694a6b0964d6d08196cb6bfbc1c2ae2ff4.zip
fix some small build issues
+ Compiling for size emits memcpy() calls after they've already been removed by LTO, so add __used attribute to counteract this. Newer versions of GCC seem to prefer `-flto=auto` to just `-flto`, so use that. printf format %d -> %ld
Diffstat (limited to 'arch')
-rw-r--r--arch/riscv64/kernel/arch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv64/kernel/arch.c b/arch/riscv64/kernel/arch.c
index c4009e7..ff2c04c 100644
--- a/arch/riscv64/kernel/arch.c
+++ b/arch/riscv64/kernel/arch.c
@@ -19,7 +19,7 @@ id_t hartid_to_cpuid(id_t hart)
if (cpuid_to_hartid(i) == hart)
return i;
- error("failed to match hart id %d to cpu id\n", hart);
+ error("failed to match hart id %ld to cpu id\n", hart);
/* default to zero, though this should maybe be a panic? */
return 0;
}