Re: 2.5.24 doesn't compile on Alpha

Jurriaan on Alpha (thunder7@xs4all.nl)
Fri, 21 Jun 2002 16:19:57 +0200


From: Oliver Pitzeier <o.pitzeier@uptime.at>
Date: Fri, Jun 21, 2002 at 02:22:42PM +0200
> Hi Thunder!
> [ ... ]
> > `smp_num_cpus' undeclared (first use in this function)
> [ .... ]
> >
> > I know I can fix the smp_num_cpus thing [ ... ]
>
> Yes!? How????
>
I tried #define smp_num_cpus 1 in include/asm-alpha/smp.h (the non-smp
section) but the same line in include/asm/mmu_context.h works - for a
while.

ALPHA :diff -Br -b -U 3 -N mmu_context.org mmu_context.h
--- mmu_context.org Fri Jun 21 16:16:56 2002
+++ mmu_context.h Fri Jun 21 16:09:33 2002
@@ -89,6 +89,7 @@
#define cpu_last_asn(cpuid) (cpu_data[cpuid].last_asn)
#else
extern unsigned long last_asn;
+#define smp_num_cpus 1
#define cpu_last_asn(cpuid) last_asn
#endif /* CONFIG_SMP */

But after that while:

make[1]: Entering directory `/usr/src/linux-2.5.24/mm'
gcc -Wp,-MD,./.memory.o.d -D__KERNEL__ -I/usr/src/linux-2.5.24/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-po
inter -fno-strict-aliasing -fno-common -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-mev6 -nostdinc -iwithprefix include -DKBUILD_B
ASENAME=memory -c -o memory.o memory.c
In file included from /usr/src/linux-2.5.24/include/asm/tlb.h:1,
from memory.c:50:
/usr/src/linux-2.5.24/include/asm-generic/tlb.h: In function `tlb_gather_mmu':
/usr/src/linux-2.5.24/include/asm-generic/tlb.h:57: warning: large integer implicitly truncated to unsigned type
/usr/src/linux-2.5.24/include/asm-generic/tlb.h: In function `tlb_flush_mmu':
/usr/src/linux-2.5.24/include/asm-generic/tlb.h:69: warning: implicit declaration of function `tlb_flush'
memory.c: In function `free_one_pmd':
memory.c:93: warning: implicit declaration of function `pte_free_tlb'
memory.c: In function `free_one_pgd':
memory.c:114: warning: implicit declaration of function `pmd_free_tlb'
memory.c: In function `copy_page_range':
memory.c:267: warning: implicit declaration of function `pte_pfn'
memory.c:268: warning: implicit declaration of function `pfn_valid'
memory.c:270: warning: implicit declaration of function `pfn_to_page'
memory.c:270: warning: assignment makes pointer from integer without a cast
memory.c: In function `zap_pte_range':
memory.c:338: warning: implicit declaration of function `tlb_remove_tlb_entry'
memory.c:340: warning: initialization makes pointer from integer without a cast
memory.c: In function `unmap_page_range':
memory.c:386: warning: implicit declaration of function `tlb_start_vma'
memory.c:392: warning: implicit declaration of function `tlb_end_vma'
memory.c: In function `follow_page':
memory.c:458: warning: return makes pointer from integer without a cast
memory.c: In function `remap_pte_range':
memory.c:845: invalid type argument of `->'
memory.c:846: warning: implicit declaration of function `pfn_pte'
memory.c:846: incompatible types in assignment
memory.c: In function `do_wp_page':
memory.c:961: warning: assignment makes pointer from integer without a cast
make[1]: *** [memory.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.5.24/mm'
make: *** [mm] Error 2
alpha:/usr/src/linux-2.5.24#

Jurriaan

-- 
I believe in coincidence. Coincidences happen every day. But I don't
trust coincidences.
	Garak - DS9
Debian GNU/Linux 2.4.19p10 on Alpha 990 bogomips load:0.52 0.48 0.46
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/