* [PATCH] x86: boot - fix sparse warnings
@ 2008-11-23 18:37 Hannes Eder
2008-11-23 18:59 ` Ingo Molnar
0 siblings, 1 reply; 2+ messages in thread
From: Hannes Eder @ 2008-11-23 18:37 UTC (permalink / raw)
To: Thomas Gleixner, Ingo Molnar, linux-kernel, kernel-janitors
Fix this 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>
---
arch/x86/boot/video-vga.c | 4 ++--
arch/x86/boot/video.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/x86/boot/video-vga.c b/arch/x86/boot/video-vga.c
index b939cb4..5d4742e 100644
--- a/arch/x86/boot/video-vga.c
+++ b/arch/x86/boot/video-vga.c
@@ -34,7 +34,7 @@ static struct mode_info cga_modes[] = {
{ VIDEO_80x25, 80, 25, 0 },
};
-__videocard video_vga;
+static __videocard video_vga;
/* Set basic 80x25 mode */
static u8 vga_set_basic_mode(void)
@@ -259,7 +259,7 @@ static int vga_probe(void)
return mode_count[adapter];
}
-__videocard video_vga = {
+static __videocard video_vga = {
.card_name = "VGA",
.probe = vga_probe,
.set_mode = vga_set_mode,
diff --git a/arch/x86/boot/video.c b/arch/x86/boot/video.c
index 83598b2..3bef2c1 100644
--- a/arch/x86/boot/video.c
+++ b/arch/x86/boot/video.c
@@ -226,7 +226,7 @@ static unsigned int mode_menu(void)
#ifdef CONFIG_VIDEO_RETAIN
/* Save screen content to the heap */
-struct saved_screen {
+static struct saved_screen {
int x, y;
int curx, cury;
u16 *data;
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] x86: boot - fix sparse warnings
2008-11-23 18:37 [PATCH] x86: boot - fix sparse warnings Hannes Eder
@ 2008-11-23 18:59 ` Ingo Molnar
0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2008-11-23 18:59 UTC (permalink / raw)
To: Hannes Eder; +Cc: Thomas Gleixner, linux-kernel, kernel-janitors
* Hannes Eder <hannes@hanneseder.net> wrote:
> Fix this 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>
> ---
> arch/x86/boot/video-vga.c | 4 ++--
> arch/x86/boot/video.c | 2 +-
> 2 files changed, 3 insertions(+), 3 deletions(-)
applied to tip/x86/sparse-fixes, thanks Hannes!
Ingo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-23 18:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-23 18:37 [PATCH] x86: boot - fix sparse warnings Hannes Eder
2008-11-23 18:59 ` Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®