term: Make term_notready() static

This commit is contained in:
mintsuki 2022-10-04 21:00:39 +02:00
parent 6f1e157cec
commit dddcf34a8c
3 changed files with 2 additions and 5 deletions

View File

@ -7,6 +7,7 @@
#include <lib/print.h>
#include <lib/uri.h>
#include <lib/fb.h>
#include <lib/image.h>
#include <mm/pmm.h>
#include <term/term.h>
#include <term/backends/framebuffer.h>

View File

@ -4,7 +4,6 @@
#include <lib/term.h>
#include <lib/real.h>
#include <lib/misc.h>
#include <lib/print.h>
#include <mm/pmm.h>
#include <drivers/vga_textmode.h>
#include <term/backends/framebuffer.h>
@ -59,7 +58,7 @@ static void notready_deinit(struct term_context *ctx, void (*_free)(void *, size
(void)_free;
}
void term_notready(void) {
static void term_notready(void) {
if (term != NULL) {
term->deinit(term, pmm_free);
term = NULL;

View File

@ -3,8 +3,6 @@
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include <lib/image.h>
#include <lib/print.h>
#include <term/term.h>
@ -37,7 +35,6 @@ inline void set_cursor_pos_helper(size_t x, size_t y) {
}
void term_fallback(void);
void _term_write(uint64_t buf, uint64_t count);
#endif