From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,3d38c70cf4d3e6cf,start X-Google-Attributes: gid111c93,public From: triekkin@Zone.pspt.fi (Toni Riekkinen) Subject: 2.1.117 + ATM-patch compile problem Date: 1998/10/21 Message-ID: <70kjq5$pd3$1@raptor.pspt.fi>#1/1 X-Deja-AN: 403526656 X-Complaints-To: newsmaster@news.pspt.fi X-Trace: raptor.pspt.fi 908972677 26019 195.148.205.50 (21 Oct 1998 12:24:37 GMT) Organization: Pohjois-Savo Polytechnic NNTP-Posting-Date: 21 Oct 1998 12:24:37 GMT Newsgroups: comp.os.linux.alpha I have 2.1.117 kernel and corresponding ATM-patches When I try to compile this kernel it stops there: omit-frame-pointer -D__SMP__ -pipe -mno-fp-regs -ffixed-8 -c -o errno.o errno.c gcc -D__KERNEL__ -I/usr/src/devel/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -D__SMP__ -pipe -mno-fp-regs -ffixed-8 -c -o ctype.o ctype.c gcc -D__KERNEL__ -I/usr/src/devel/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -D__SMP__ -pipe -mno-fp-regs -ffixed-8 -c -o string.o string.c gcc -D__KERNEL__ -I/usr/src/devel/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -D__SMP__ -pipe -mno-fp-regs -ffixed-8 -c -o vsprintf.o vsprintf.c rm -f lib.a ar rcs lib.a errno.o ctype.o string.o vsprintf.o make[2]: Leaving directory `/usr/src/devel/linux/lib' make[1]: Leaving directory `/usr/src/devel/linux/lib' make -C arch/alpha/kernel make[1]: Entering directory `/usr/src/devel/linux/arch/alpha/kernel' gcc -D__KERNEL__ -I/usr/src/devel/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -D__SMP__ -pipe -mno-fp-regs -ffixed-8 -DEXPORT_SYMTAB -c alpha_ksyms.c gcc -D__KERNEL__ -I/usr/src/devel/linux/include -D__ASSEMBLY__ -D__SMP__ -traditional -c entry.S -o entry.o gcc -D__KERNEL__ -I/usr/src/devel/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -D__SMP__ -pipe -mno-fp-regs -ffixed-8 -c -o traps.o traps.c traps.c: In function `trap_init': traps.c:891: warning: `gptr' might be used uninitialized in this function gcc -D__KERNEL__ -I/usr/src/devel/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -D__SMP__ -pipe -mno-fp-regs -ffixed-8 -c -o process.o process.c gcc -D__KERNEL__ -I/usr/src/devel/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -D__SMP__ -pipe -mno-fp-regs -ffixed-8 -c -o osf_sys.o osf_sys.c osf_sys.c: In function `osf_sigstack': osf_sys.c:774: warning: `oss_sp' might be used uninitialized in this function osf_sys.c:774: warning: `oss_os' might be used uninitialized in this function gcc -D__KERNEL__ -I/usr/src/devel/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -D__SMP__ -pipe -mno-fp-regs -ffixed-8 -c -o irq.o irq.c gcc -D__KERNEL__ -I/usr/src/devel/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -D__SMP__ -pipe -mno-fp-regs -ffixed-8 -c -o signal.o signal.c gcc -D__KERNEL__ -I/usr/src/devel/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -D__SMP__ -pipe -mno-fp-regs -ffixed-8 -c -o setup.o setup.c setup.c: In function `get_cpuinfo': setup.c:753: too many arguments to function `smp_info' setup.c:753: warning: return makes integer from pointer without a cast make[1]: *** [setup.o] Error 1 make[1]: Leaving directory `/usr/src/devel/linux/arch/alpha/kernel' make: *** [_dir_arch/alpha/kernel] Error 2 [root@temp1 linux]# I believe this is the problem part of linux/arch/alpha/kernel/setup.c: ----------- len = sprintf(buffer, "cpu\t\t\t: Alpha\n" "cpu model\t\t: %s\n" "cpu variation\t\t: %ld\n" "cpu revision\t\t: %ld\n" ---missing part of here--- unaligned[1].count, unaligned[1].pc, unaligned[1].va, platform_string()); #ifdef __SMP__ return len + smp_info(buffer+len); #else return len; #endif ---------- Why it returns len before and in smp_info()? What should I do about it?