From a66b497d688465685ed6269af622b5fb8cf017c9 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 30 Jun 2022 17:43:11 +0200 Subject: kernel: get lint to shut up about undeclared variables --- src/kernel/arch/i386/boot.c | 3 +-- src/kernel/arch/i386/tty/tty.c | 2 +- src/kernel/arch/i386/tty/tty.h | 7 +++++++ src/kernel/arch/i386/tty/vga.c | 2 +- src/kernel/arch/i386/tty/vga.h | 5 ----- 5 files changed, 10 insertions(+), 9 deletions(-) create mode 100644 src/kernel/arch/i386/tty/tty.h delete mode 100644 src/kernel/arch/i386/tty/vga.h (limited to 'src/kernel/arch/i386') diff --git a/src/kernel/arch/i386/boot.c b/src/kernel/arch/i386/boot.c index 4969c1c..754a327 100644 --- a/src/kernel/arch/i386/boot.c +++ b/src/kernel/arch/i386/boot.c @@ -8,12 +8,11 @@ #include #include #include +#include #include #include #include -void tty_init(void); // TODO put this in a header file - static void find_init(struct multiboot_info *multiboot, struct kmain_info *info) { struct multiboot_mod *module = &multiboot->mods[0]; diff --git a/src/kernel/arch/i386/tty/tty.c b/src/kernel/arch/i386/tty/tty.c index aa63507..9451059 100644 --- a/src/kernel/arch/i386/tty/tty.c +++ b/src/kernel/arch/i386/tty/tty.c @@ -1,6 +1,6 @@ #include #include -#include +#include #include void tty_init(void) { diff --git a/src/kernel/arch/i386/tty/tty.h b/src/kernel/arch/i386/tty/tty.h new file mode 100644 index 0000000..b96003d --- /dev/null +++ b/src/kernel/arch/i386/tty/tty.h @@ -0,0 +1,7 @@ +#pragma once +#include + +void vga_write(const char *buf, size_t len); +void vga_clear(void); + +void tty_init(void); diff --git a/src/kernel/arch/i386/tty/vga.c b/src/kernel/arch/i386/tty/vga.c index 24bbf98..9efd326 100644 --- a/src/kernel/arch/i386/tty/vga.c +++ b/src/kernel/arch/i386/tty/vga.c @@ -1,4 +1,4 @@ -#include +#include struct vga_cell { unsigned char c; diff --git a/src/kernel/arch/i386/tty/vga.h b/src/kernel/arch/i386/tty/vga.h deleted file mode 100644 index 69b1ab7..0000000 --- a/src/kernel/arch/i386/tty/vga.h +++ /dev/null @@ -1,5 +0,0 @@ -#pragma once -#include - -void vga_write(const char *buf, size_t len); -void vga_clear(void); -- cgit v1.2.3