From: lucier@math.purdue.edu
To: axp-list@redhat.com
Cc: lucier@math.purdue.edu, staff@math.purdue.edu, wilker@math.purdue.edu
Subject: Kernel 2.4.1 warnings are troubling
Date: Fri, 2 Feb 2001 00:55:18 -0500 (EST) [thread overview]
Message-ID: <200102020555.f125tI507936@polya.math.purdue.edu> (raw)
I'd like to build 2.4.1 on my DP264 machine that originally ran
Red Hat 6.0; I've upgraded some of the software over time, but
much of it remains the same (especially glibc).
When I build 2.4.1 with gcc 2.95.1 and binutils 2.9.5.0.27, with
a pretty generic .config except for setting machine type to DP264
and enabling SMP support, I get the following warnings, which I
find somewhat troubling, especially the ones in math.c:
gcc -D__KERNEL__ -I/export/u10/linux-2.4.1/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mno-fp-regs -ffixed-8 -mcpu=ev6 -Wa,-mev6 -c -o locks.o locks.c
locks.c: In function `locks_insert_block':
locks.c:418: warning: long long int format, loff_t arg (arg 3)
locks.c:418: warning: long long int format, loff_t arg (arg 4)
locks.c: In function `lock_get_status':
locks.c:1763: warning: long long int format, loff_t arg (arg 3)
locks.c:1767: warning: long long int format, loff_t arg (arg 3)
gcc -D__KERNEL__ -I/export/u10/linux-2.4.1/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mno-fp-regs -ffixed-8 -mcpu=ev6 -Wa,-mev6 -c -o time.o time.c
In file included from time.c:49:
irq_impl.h:15: warning: `RTC_IRQ' redefined
/export/u10/linux-2.4.1/include/asm/mc146818rtc.h:27: warning: this is the location of the previous definition
gcc -D__KERNEL__ -I/export/u10/linux-2.4.1/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mno-fp-regs -ffixed-8 -mcpu=ev6 -Wa,-mev6 -c -o init.o init.c
init.c: In function `callback_init':
init.c:322: warning: assignment makes pointer from integer without a cast
gcc -D__KERNEL__ -I/export/u10/linux-2.4.1/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mno-fp-regs -ffixed-8 -mcpu=ev6 -Wa,-mev6 -c -o fpreg.o fpreg.c
fpreg.c: In function `alpha_read_fp_reg':
fpreg.c:16: warning: `val' might be used uninitialized in this function
fpreg.c: In function `alpha_read_fp_reg_s':
fpreg.c:109: warning: `val' might be used uninitialized in this function
gcc -D__KERNEL__ -I/export/u10/linux-2.4.1/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mno-fp-regs -ffixed-8 -mcpu=ev6 -Wa,-mev6 -c -o math.o math.c
math.c: In function `alpha_fp_emul':
math.c:204: warning: right shift count is negative
math.c:220: warning: left shift count is negative
math.c:238: warning: statement with no effect
math.c:258: warning: right shift count >= width of type
math.c:258: warning: right shift count >= width of type
math.c:262: warning: right shift count >= width of type
math.c:262: warning: right shift count >= width of type
math.c:270: warning: statement with no effect
math.c:270: warning: statement with no effect
math.c:270: warning: statement with no effect
math.c:277: warning: statement with no effect
math.c:277: warning: statement with no effect
math.c:277: warning: statement with no effect
math.c:99: warning: `SR_c' might be used uninitialized in this function
math.c:99: warning: `SR_s' might be used uninitialized in this function
math.c:99: warning: `SR_e' might be used uninitialized in this function
math.c:99: warning: `SR_f' might be used uninitialized in this function
math.c:100: warning: `DR_c' might be used uninitialized in this function
math.c:100: warning: `DR_s' might be used uninitialized in this function
math.c:100: warning: `DR_e' might be used uninitialized in this function
math.c:100: warning: `DR_f' might be used uninitialized in this function
Usually I go through the boot log and correct warnings before installing
the 2.2 series kernels, but I don't know what to do about the math.c
warnings. Any suggestions?
Brad Lucier
reply other threads:[~2001-02-02 5:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox