Skip to contentSkip to conversation

Another compile problem on sparc64

DISCUSSION Marcel Holtmann 2 participants 2 messages Mar 27, 2004 – Mar 28, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

my compile problem with arch/sparc64/kernel/process.o is gone, but I get another compile problem with the latest 2.6 Bitkeeper sources:

CC arch/sparc64/mm/init.o
arch/sparc64/mm/init.c: In function `check_pgt_cache':
arch/sparc64/mm/init.c:107: warning: use of cast expressions as lvalues is deprecated

My compiler is still the latest GCC from Debian Sid:

gcc (GCC) 3.3.3 (Debian 20040321)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Regards

Marcel

#1 lore raw

You could have killed all of this by just temporarily removing the "-Werror" that gets added in the arch/sparc64/ Makefiles :-)

This latest one only happens on uniprocessor builds, which is why I didn't catch it. Only recent debian unstable updates of gcc started to emit these warnings fwiw...

Anyways, here's the fix, I'll push it off to Linus.

=== arch/sparc64/mm/init.c 1.55 vs edited ==--- 1.55/arch/sparc64/mm/init.c Mon Mar 1 06:30:54 2004
+++ edited/arch/sparc64/mm/init.c Sun Mar 28 01:13:58 2004
@@ -104,7 +104,7 @@

                                 if (page2)
                                         page2->lru.next = page->lru.next;
                                 else
-                                        (struct page *)pgd_quicklist = page->lru.next;
+                                        pgd_quicklist = (void *) page->lru.next;
                                 pgd_cache_size -= 2;
                                 __free_page(page);
                                 if (page2)