Commit b1bee10d authored by Olaf Hering's avatar Olaf Hering Committed by Linus Torvalds

[PATCH] signed bug in drivers/video/console/fbcon.c con2fb_map[]

drivers/video/console/fbcon.c:310: warning: comparison is always true due
to limited range of data type

char can be either signed or unsigned, depending on the target system.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent bdf04a0d
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
#endif #endif
struct display fb_display[MAX_NR_CONSOLES]; struct display fb_display[MAX_NR_CONSOLES];
char con2fb_map[MAX_NR_CONSOLES]; signed char con2fb_map[MAX_NR_CONSOLES];
static int logo_height; static int logo_height;
static int logo_lines; static int logo_lines;
static int logo_shown = -1; static int logo_shown = -1;
......
...@@ -36,7 +36,7 @@ struct display { ...@@ -36,7 +36,7 @@ struct display {
}; };
/* drivers/video/console/fbcon.c */ /* drivers/video/console/fbcon.c */
extern char con2fb_map[MAX_NR_CONSOLES]; extern signed char con2fb_map[MAX_NR_CONSOLES];
extern int set_con2fb_map(int unit, int newidx); extern int set_con2fb_map(int unit, int newidx);
/* /*
......
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