From b7b28d26c4f2df06d0ec22db1fcdd9418ad2cc2e Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Wed, 15 Dec 2004 13:49:25 +0000 Subject: [PATCH] Fixed compilation warnings with option VGA_NO_MODE_CHANGE. PR: kern/71130 --- sys/dev/fb/vga.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/dev/fb/vga.c b/sys/dev/fb/vga.c index 53b67b87bd72..55530bb43a4f 100644 --- a/sys/dev/fb/vga.c +++ b/sys/dev/fb/vga.c @@ -467,7 +467,6 @@ static int comp_adpregs(u_char *buf1, u_char *buf2); static int probe_adapters(void); static int set_line_length(video_adapter_t *adp, int pixel); static int set_display_start(video_adapter_t *adp, int x, int y); -static void filll_io(int val, vm_offset_t d, size_t size); #ifndef VGA_NO_MODE_CHANGE #ifdef VGA_WIDTH90 @@ -482,6 +481,7 @@ static void set_normal_mode(video_adapter_t *adp, u_char *buf); #endif #ifndef VGA_NO_MODE_CHANGE +static void filll_io(int val, vm_offset_t d, size_t size); static void planar_fill(video_adapter_t *adp, int val); static void packed_fill(video_adapter_t *adp, int val); static void direct_fill(video_adapter_t *adp, int val); @@ -1326,6 +1326,7 @@ set_display_start(video_adapter_t *adp, int x, int y) return 0; } +#ifndef VGA_NO_MODE_CHANGE #if defined(__i386__) || defined(__amd64__) /* XXX */ static void fill(int val, void *d, size_t size) @@ -1345,6 +1346,7 @@ filll_io(int val, vm_offset_t d, size_t size) d += sizeof(u_int32_t); } } +#endif /* !VGA_NO_MODE_CHANGE */ /* entry points */