This is a note to let you know that I've just added the patch titled
riva/fbdev: fix several -Wuninitialized
to the 3.0-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
riva-fbdev-fix-several-wuninitialized.patch
and it can be found in the queue-3.0 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.
>From c718a54649475cc397484f96e70f6d0fdd267165 Mon Sep 17 00:00:00 2001
From: Danny Kukawka <[email protected]>
Date: Mon, 30 Jan 2012 23:00:17 +0100
Subject: riva/fbdev: fix several -Wuninitialized
From: Danny Kukawka <[email protected]>
commit c718a54649475cc397484f96e70f6d0fdd267165 upstream.
Fix several -Wuninitialized compiler warnings by changing the
order of getting modedb in riva_update_default_var() to set
first the fallback and then the prefered timing.
Signed-off-by: Danny Kukawka <[email protected]>
Signed-off-by: Florian Tobias Schandinat <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
drivers/video/riva/fbdev.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
--- a/drivers/video/riva/fbdev.c
+++ b/drivers/video/riva/fbdev.c
@@ -1816,6 +1816,8 @@ static void __devinit riva_update_defaul
specs->modedb, specs->modedb_len,
NULL, 8);
} else if (specs->modedb != NULL) {
+ /* get first mode in database as fallback */
+ modedb = specs->modedb[0];
/* get preferred timing */
if (info->monspecs.misc & FB_MISC_1ST_DETAIL) {
int i;
@@ -1826,9 +1828,6 @@ static void __devinit riva_update_defaul
break;
}
}
- } else {
- /* otherwise, get first mode in database */
- modedb = specs->modedb[0];
}
var->bits_per_pixel = 8;
riva_update_var(var, &modedb);
Patches currently in stable-queue which might be from [email protected]
are
queue-3.0/riva-fbdev-fix-several-wuninitialized.patch
queue-3.0/drivers-block-dac960-fix-dac960_v2_ioctl_opcode_t-wenum-compare-warning.patch
queue-3.0/drivers-block-dac960-fix-wuninitialized-warning.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html