diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-08-04 20:55:47 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-08-04 20:56:05 +0300 |
| commit | 7d327cbc68f30615b2f15ee403a986e068650b27 (patch) | |
| tree | a2eee7b10a5c358fdf260717ee8754ee6e4f0553 /arch/riscv64/kernel/smp.c | |
| parent | e16f5f81dfb2e97a554ec19b941ec05a7942fd2d (diff) | |
| download | kmi-7d327cbc68f30615b2f15ee403a986e068650b27.tar.gz kmi-7d327cbc68f30615b2f15ee403a986e068650b27.zip | |
fix warnings in smp.c
+ Only occur with my version of riscv64-linux-gnu-gcc. Funny, that.
Diffstat (limited to 'arch/riscv64/kernel/smp.c')
| -rw-r--r-- | arch/riscv64/kernel/smp.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/arch/riscv64/kernel/smp.c b/arch/riscv64/kernel/smp.c index 88a796e..cacb3b7 100644 --- a/arch/riscv64/kernel/smp.c +++ b/arch/riscv64/kernel/smp.c @@ -74,9 +74,9 @@ void smp_bringup(struct vmem *b, void *fdt) struct sbiret r = sbi_hart_status(hartid); if (r.error) { - warn("failed getting hart %d status: %ld\n", - hartid, - r.error); + warn("failed getting hart %ld status: %ld\n", + (long)hartid, + (long)r.error); continue; } @@ -97,9 +97,9 @@ void smp_bringup(struct vmem *b, void *fdt) (unsigned long)__pa(riscv_bringup), satp); if (r.error) { - warn("failed bringing up hart %d: %ld\n", - hartid, - r.error); + warn("failed bringing up hart %ld: %ld\n", + (long)hartid, + (long)r.error); continue; } } @@ -114,7 +114,10 @@ void core_bringup(long hartid) { /* assume smp_bringup assigned our cpuid correctly */ id_t cpuid = hartid_to_cpuid(hartid); - info("core %d online\n", cpuid); + info("core %ld online\n", (long)cpuid); + + /* realistically stuff after this point could probably be placed + * somewhere in common/ */ /* add us as a thread to init program that cpu 0 is hopefully running by * now */ |
