diff options
author | ru <ru@FreeBSD.org> | 2004-12-15 13:49:25 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2004-12-15 13:49:25 +0000 |
commit | 223a628acfc20750c6ff547a07146e05a9b72472 (patch) | |
tree | c366cdf21b4fd9ccdaf112f98663ae0045dc100a /sys/dev/fb/vga.c | |
parent | b90cfd5af47bea5271311f58cccb3af50f87cc0e (diff) | |
download | FreeBSD-src-223a628acfc20750c6ff547a07146e05a9b72472.zip FreeBSD-src-223a628acfc20750c6ff547a07146e05a9b72472.tar.gz |
Fixed compilation warnings with option VGA_NO_MODE_CHANGE.
PR: kern/71130
Diffstat (limited to 'sys/dev/fb/vga.c')
-rw-r--r-- | sys/dev/fb/vga.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/fb/vga.c b/sys/dev/fb/vga.c index 53b67b8..55530bb 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 */ |