summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2023-01-14 07:30:21 +0100
committerFelix Held <felix-coreboot@felixheld.de>2023-05-26 13:45:24 +0000
commit3813ca521a6cd7348ce111c3f46cbee66a1b964d (patch)
tree327922404460cd26388d1f26721670879cb619c9 /src/arch
parent764167b8ca91b136b068f1d3f03adf5f50af615a (diff)
treewide: Remove 'extern' from functions declaration
"extern" is automatically implied with function declaration. Change-Id: Ic40218acab5a009621b6882faacfcac800aaf0b9 Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/71890 Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/riscv/include/arch/pmp.h2
-rw-r--r--src/arch/x86/include/arch/interrupt.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/riscv/include/arch/pmp.h b/src/arch/riscv/include/arch/pmp.h
index 663e50a97f..b25fc965bc 100644
--- a/src/arch/riscv/include/arch/pmp.h
+++ b/src/arch/riscv/include/arch/pmp.h
@@ -9,7 +9,7 @@
* this function needs to be implemented by a specific SoC.
* return number of PMP entries for current hart
*/
-extern int pmp_entries_num(void);
+int pmp_entries_num(void);
/* reset PMP setting */
void reset_pmp(void);
diff --git a/src/arch/x86/include/arch/interrupt.h b/src/arch/x86/include/arch/interrupt.h
index a4a80f1da7..3ed711a74d 100644
--- a/src/arch/x86/include/arch/interrupt.h
+++ b/src/arch/x86/include/arch/interrupt.h
@@ -7,7 +7,7 @@
/* setup interrupt handlers for mainboard */
#if CONFIG(PCI_OPTION_ROM_RUN_REALMODE)
-extern void mainboard_interrupt_handlers(int intXX, int (*intXX_func)(void));
+void mainboard_interrupt_handlers(int intXX, int (*intXX_func)(void));
#elif CONFIG(PCI_OPTION_ROM_RUN_YABEL)
#include <device/oprom/yabel/biosemu.h>
#else