From 22abb3ec33b8a877332e60889768b8d3385d5f92 Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Sat, 25 Feb 2023 11:19:35 +0100 Subject: [PATCH] tree: Move 'asmlinkage' before type 'void' Move 'asmlinkage' before the function type for consistency. Change-Id: I293590ef917b78c6ed3d151cd0080e42d0f10651 Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/73259 Reviewed-by: Felix Singer Tested-by: build bot (Jenkins) --- src/cpu/x86/mp_init.c | 2 +- src/soc/intel/quark/bootblock/bootblock.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpu/x86/mp_init.c b/src/cpu/x86/mp_init.c index 507da7d1be..8c48f906e4 100644 --- a/src/cpu/x86/mp_init.c +++ b/src/cpu/x86/mp_init.c @@ -700,7 +700,7 @@ static void smm_enable(void) * means that ENV_SMM is 0, but we are actually executing in the environment * setup by the smm_stub. */ -static void asmlinkage smm_do_relocation(void *arg) +static asmlinkage void smm_do_relocation(void *arg) { const struct smm_module_params *p; int cpu; diff --git a/src/soc/intel/quark/bootblock/bootblock.c b/src/soc/intel/quark/bootblock/bootblock.c index 2e1a0992e5..6b73d03bc0 100644 --- a/src/soc/intel/quark/bootblock/bootblock.c +++ b/src/soc/intel/quark/bootblock/bootblock.c @@ -8,7 +8,7 @@ #include #include -extern void asmlinkage light_sd_led(void); +extern asmlinkage void light_sd_led(void); static const struct reg_script legacy_gpio_init[] = { /* Temporarily enable the legacy GPIO controller */