mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
Kernel: Fix attribute ordering
Clang requires that attributes declared using the bracketed `[[attr_name]]` syntax come before those with `__attribute__((attr-name))`. This fixes a Clang build error.
This commit is contained in:
parent
eee44c85d4
commit
221bd464a0
Notes:
sideshowbarker
2024-07-18 11:34:35 +09:00
Author: https://github.com/BertalanD Commit: https://github.com/SerenityOS/serenity/commit/221bd464a0a Pull-request: https://github.com/SerenityOS/serenity/pull/8150 Reviewed-by: https://github.com/Hendiadyoin1 Reviewed-by: https://github.com/alimpfard ✅
1 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@ static Processor s_bsp_processor; // global but let's keep it "private"
|
|||
// Once multi-tasking is ready, we spawn a new thread that starts in the
|
||||
// init_stage2() function. Initialization continues there.
|
||||
|
||||
extern "C" UNMAP_AFTER_INIT [[noreturn]] void init()
|
||||
extern "C" [[noreturn]] UNMAP_AFTER_INIT void init()
|
||||
{
|
||||
if ((FlatPtr)&end_of_kernel_image >= 0xc2000000u) {
|
||||
// The kernel has grown too large again!
|
||||
|
@ -193,7 +193,7 @@ extern "C" UNMAP_AFTER_INIT [[noreturn]] void init()
|
|||
//
|
||||
// The purpose of init_ap() is to initialize APs for multi-tasking.
|
||||
//
|
||||
extern "C" UNMAP_AFTER_INIT [[noreturn]] void init_ap(u32 cpu, Processor* processor_info)
|
||||
extern "C" [[noreturn]] UNMAP_AFTER_INIT void init_ap(u32 cpu, Processor* processor_info)
|
||||
{
|
||||
processor_info->early_initialize(cpu);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue