Commit 03ad369a authored by Frank Lichtenheld's avatar Frank Lichtenheld Committed by Linus Torvalds

uvesafb: fix warnings about unused variables on non-x86

Variables that are only used in #ifdef CONFIG_X86 should also only be
declared there.
Signed-off-by: default avatarFrank Lichtenheld <frank@lichtenheld.de>
Cc: Michal Januszewski <spock@gentoo.org>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 0f8c0234
...@@ -926,8 +926,10 @@ static int uvesafb_setpalette(struct uvesafb_pal_entry *entries, int count, ...@@ -926,8 +926,10 @@ static int uvesafb_setpalette(struct uvesafb_pal_entry *entries, int count,
int start, struct fb_info *info) int start, struct fb_info *info)
{ {
struct uvesafb_ktask *task; struct uvesafb_ktask *task;
#ifdef CONFIG_X86
struct uvesafb_par *par = info->par; struct uvesafb_par *par = info->par;
int i = par->mode_idx; int i = par->mode_idx;
#endif
int err = 0; int err = 0;
/* /*
...@@ -1103,11 +1105,11 @@ static int uvesafb_pan_display(struct fb_var_screeninfo *var, ...@@ -1103,11 +1105,11 @@ static int uvesafb_pan_display(struct fb_var_screeninfo *var,
static int uvesafb_blank(int blank, struct fb_info *info) static int uvesafb_blank(int blank, struct fb_info *info)
{ {
struct uvesafb_par *par = info->par;
struct uvesafb_ktask *task; struct uvesafb_ktask *task;
int err = 1; int err = 1;
#ifdef CONFIG_X86 #ifdef CONFIG_X86
struct uvesafb_par *par = info->par;
if (par->vbe_ib.capabilities & VBE_CAP_VGACOMPAT) { if (par->vbe_ib.capabilities & VBE_CAP_VGACOMPAT) {
int loop = 10000; int loop = 10000;
u8 seq = 0, crtc17 = 0; u8 seq = 0, crtc17 = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment