diff options
author | Danny Holman <dholman@gymli.org> | 2023-11-26 18:40:39 -0600 |
---|---|---|
committer | Danny Holman <dholman@gymli.org> | 2023-11-26 18:40:39 -0600 |
commit | 0c34fb36ab9f3df876412382ef62056409e9f98d (patch) | |
tree | 65b201e09d643c62048e485a009a13dd4a0cbb6d | |
parent | 97ad22109065680dc1d4506682d60bb2ed1bf4b3 (diff) |
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 <dholman@gymli.org>
-rw-r--r-- | include/kernel/serial.h | 2 |
1 files changed, 1 insertions, 1 deletions
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]); } |