public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.4.34-pre1] gcc4 fix for UP sparc64
@ 2006-08-20 20:18 Mikael Pettersson
  2006-08-20 20:43 ` Willy Tarreau
  0 siblings, 1 reply; 2+ messages in thread
From: Mikael Pettersson @ 2006-08-20 20:18 UTC (permalink / raw)
  To: w; +Cc: linux-kernel

This patch fixes an invalid-lvalue error when compiling a
2.4.34-pre1 kernel on sparc64 with gcc-4.1.1. The kernel
must be configured with CONFIG_SMP=n for the error to trigger.
(I didn't save the error message, sorry.)

A kernel compiled with gcc-4.1.1 boots fine on my Ultra5
and can rebuild itself, and generally seems no less solid
than the 2.4.33 I compiled with gcc-3.4.6.

Signed-off-by: Mikael Pettersson <mikpe@it.uu.se>

--- linux-2.4.34-pre1/arch/sparc64/mm/init.c.~1~	2004-11-17 18:36:41.000000000 +0100
+++ linux-2.4.34-pre1/arch/sparc64/mm/init.c	2006-08-20 20:52:20.000000000 +0200
@@ -95,7 +95,7 @@ int do_check_pgt_cache(int low, int high
                                 if (page2)
                                         page2->next_hash = page->next_hash;
                                 else
-                                        (struct page *)pgd_quicklist = page->next_hash;
+                                        pgd_quicklist = (unsigned long *)page->next_hash;
                                 page->next_hash = NULL;
                                 page->pprev_hash = NULL;
                                 pgd_cache_size -= 2;

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-08-20 20:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-20 20:18 [PATCH 2.4.34-pre1] gcc4 fix for UP sparc64 Mikael Pettersson
2006-08-20 20:43 ` Willy Tarreau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox