From a19e6c6b30f60d719acb018016f942df5072e914 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 3 Feb 2004 18:39:11 -0800 Subject: [PATCH] [PATCH] gcc-3.5: fbcon.c drivers/video/console/fbcon.c: In function `fbcon_set_font': drivers/video/console/fbcon.c:2000: error: invalid lvalue in decrement --- drivers/video/console/fbcon.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c index cc6b7dc2dd7ae..3826ea1a4e7e3 100644 --- a/drivers/video/console/fbcon.c +++ b/drivers/video/console/fbcon.c @@ -1996,8 +1996,10 @@ static inline int fbcon_set_font(struct vc_data *vc, struct console_font_op *op) font length must be multiple of 256, at least. And 256 is multiple of 4 */ k = 0; - while (p > new_data) - k += *--(u32 *) p; + while (p > new_data) { + p = (u8 *)((u32 *)p - 1); + k += *(u32 *) p; + } FNTSUM(new_data) = k; /* Check if the same font is on some other console already */ for (i = 0; i < MAX_NR_CONSOLES; i++) { -- 2.53.0