diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2007-02-22 11:00:41 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-26 15:56:46 -0500 |
commit | 62fa4dc7f782911b7b3867b6360892dcd46d8e69 (patch) | |
tree | 641c7bdafdf081907fa0a6f9a3bf065d22eb1a1a /drivers | |
parent | 25165120f2432ffa36518d53bd3ec66f6e434f63 (diff) |
[PATCH] Fix build-failure in drivers/video/s3fb.c
Toralf Förster pointed out that drivers/video/s3fb.c would fail to compile:
> ...
> CC drivers/video/s3fb.o
> drivers/video/s3fb.c: In function `s3_pci_remove':
> drivers/video/s3fb.c:1003: warning: unused variable `par'
> drivers/video/s3fb.c: In function `s3fb_setup':
> drivers/video/s3fb.c:1141: error: `mtrr' undeclared (first use in this function)
> drivers/video/s3fb.c:1141: error: (Each undeclared identifier is reported only once
> drivers/video/s3fb.c:1141: error: for each function it appears in.)
> make[2]: *** [drivers/video/s3fb.o] Error 1
> make[1]: *** [drivers/video] Error 2
> make: *** [drivers] Error 2
Here is fix, it also fixes broken boot options.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/s3fb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/s3fb.c b/drivers/video/s3fb.c index 3162c37b1447..98919a6975f0 100644 --- a/drivers/video/s3fb.c +++ b/drivers/video/s3fb.c | |||
@@ -1134,11 +1134,11 @@ static int __init s3fb_setup(char *options) | |||
1134 | if (!*opt) | 1134 | if (!*opt) |
1135 | continue; | 1135 | continue; |
1136 | #ifdef CONFIG_MTRR | 1136 | #ifdef CONFIG_MTRR |
1137 | else if (!strcmp(opt, "mtrr:")) | 1137 | else if (!strncmp(opt, "mtrr:", 5)) |
1138 | mtrr = simple_strtoul(opt + 5, NULL, 0); | 1138 | mtrr = simple_strtoul(opt + 5, NULL, 0); |
1139 | #endif | 1139 | #endif |
1140 | else if (!strcmp(opt, "fasttext:")) | 1140 | else if (!strncmp(opt, "fasttext:", 9)) |
1141 | mtrr = simple_strtoul(opt + 9, NULL, 0); | 1141 | fasttext = simple_strtoul(opt + 9, NULL, 0); |
1142 | else | 1142 | else |
1143 | mode = opt; | 1143 | mode = opt; |
1144 | } | 1144 | } |