From 0c34fb36ab9f3df876412382ef62056409e9f98d Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Sun, 26 Nov 2023 18:40:39 -0600 Subject: arch: i386: serial.c: make serial_writestring static Make the function serial_writestring static. This is an optimization specifically for small functions such as this one. Signed-off-by: Danny Holman --- include/kernel/serial.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/kernel') diff --git a/include/kernel/serial.h b/include/kernel/serial.h index 23f6907..24def78 100644 --- a/include/kernel/serial.h +++ b/include/kernel/serial.h @@ -7,7 +7,7 @@ int serial_init(void); char read_serial(void); void write_serial(char a); -inline void serial_writestring(const char *str) { +static inline void serial_writestring(const char *str) { for (size_t i = 0; i < strlen(str); i++) write_serial(str[i]); } -- cgit v1.2.3