1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:38:10 +00:00

Fix all current build warnings in the kernel.

This commit is contained in:
Andreas Kling 2018-11-09 10:03:21 +01:00
parent e71cb1c56b
commit 47b7eeda44
10 changed files with 28 additions and 19 deletions

View file

@ -59,7 +59,7 @@ Vector<KSym, KmallocEternalAllocator>& ksyms()
return *s_ksyms;
}
volatile bool ksyms_ready()
bool ksyms_ready()
{
return s_ksyms_ready;
}
@ -107,7 +107,6 @@ void dump_backtrace(bool use_ksyms)
HANG;
return;
}
extern volatile bool ksyms_ready();
if (use_ksyms && !ksyms_ready()) {
HANG;
return;
@ -141,6 +140,7 @@ void dump_backtrace(bool use_ksyms)
}
#endif
#ifdef STRESS_TEST_SPAWNING
static void spawn_stress() NORETURN;
static void spawn_stress()
{
@ -158,6 +158,7 @@ static void spawn_stress()
asm volatile("hlt");
}
}
#endif
static void init_stage2() NORETURN;
static void init_stage2()
@ -247,6 +248,7 @@ static void init_stage2()
ASSERT_NOT_REACHED();
}
void init() NORETURN;
void init()
{
cli();