dect
/
linux-2.6
Archived
13
0
Fork 0

x86: boot - fix sparse warnings

Impact: make global variables static

Fix these sparse warnings:

 arch/x86/boot/video.c:233:3: warning: symbol 'saved' was not declared. Should it be static?
 arch/x86/boot/video-vga.c:37:13: warning: symbol 'video_vga' was not declared. Should it be static?

Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
Hannes Eder 2008-11-23 19:37:09 +01:00 committed by Ingo Molnar
parent ed313489ba
commit a1a00b5885
2 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ static struct mode_info cga_modes[] = {
{ VIDEO_80x25, 80, 25, 0 }, { VIDEO_80x25, 80, 25, 0 },
}; };
__videocard video_vga; static __videocard video_vga;
/* Set basic 80x25 mode */ /* Set basic 80x25 mode */
static u8 vga_set_basic_mode(void) static u8 vga_set_basic_mode(void)
@ -259,7 +259,7 @@ static int vga_probe(void)
return mode_count[adapter]; return mode_count[adapter];
} }
__videocard video_vga = { static __videocard video_vga = {
.card_name = "VGA", .card_name = "VGA",
.probe = vga_probe, .probe = vga_probe,
.set_mode = vga_set_mode, .set_mode = vga_set_mode,

View File

@ -226,7 +226,7 @@ static unsigned int mode_menu(void)
#ifdef CONFIG_VIDEO_RETAIN #ifdef CONFIG_VIDEO_RETAIN
/* Save screen content to the heap */ /* Save screen content to the heap */
struct saved_screen { static struct saved_screen {
int x, y; int x, y;
int curx, cury; int curx, cury;
u16 *data; u16 *data;