Kernel: Fix building the kernel with LTO

Fixes #8383.
This commit is contained in:
Gunnar Beutner 2021-07-02 15:48:22 +02:00 committed by Andreas Kling
commit 5666809889
Notes: sideshowbarker 2024-07-18 11:07:08 +09:00
2 changed files with 62 additions and 62 deletions

View file

@ -34,7 +34,7 @@ struct TrapFrame {
static_assert(TRAP_FRAME_SIZE == sizeof(TrapFrame));
extern "C" void enter_trap_no_irq(TrapFrame* trap);
extern "C" void enter_trap_no_irq(TrapFrame* trap) __attribute__((used));
extern "C" void enter_trap(TrapFrame*) __attribute__((used));
extern "C" void exit_trap(TrapFrame*) __attribute__((used));