Skip to contentSkip to conversation

latest sparse warnings with latest kernel

DISCUSSION Russell King 2 participants 2 messages May 21, 2005

lore
Share & tools
lore
#0 lore raw

Hi,

I'm seeing a lot of the following warnings when building the latest -git kernel with the latest sparse checker:

/usr/local/lib/gcc-lib/arm-linux/3.3/include/stdarg.h:54:9: warning: preprocessor token va_copy redefined /home/rmk/git/linux-2.6-rmk/include/linux/compiler-gcc2.h:29:9: this was the original definition

Since sparse pretends to be a gcc 2.95 compiler, should it really be using the gcc 3.3 header files?

Shouldn't it provide its own headers to correspond with the version it pretends to be? 8)

Signature · 3 lines
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 Serial core
#1 lore raw
Quoted 10 lines · Russell King

Hi,

I'm seeing a lot of the following warnings when building the latest -git kernel with the latest sparse checker:

/usr/local/lib/gcc-lib/arm-linux/3.3/include/stdarg.h:54:9: warning: preprocessor token va_copy redefined /home/rmk/git/linux-2.6-rmk/include/linux/compiler-gcc2.h:29:9: this was the original definition

Since sparse pretends to be a gcc 2.95 compiler, should it really be using the gcc 3.3 header files?

Yes, but it should pretend to be 3.x. See tarball on parcelfarce; I'll send the patches to Linus.

Quoted 2 lines

Shouldn't it provide its own headers to correspond with the version it pretends to be? 8)

No.