Skip to contentSkip to conversation

2.6.16-rc6-git6 compilation fails (input system)

DISCUSSION Patrizio Bassi 2 participants 6 messages Mar 16, 2006

lore
Share & tools
lore
#0 lore raw

i've a problem with gcc 4.1.0

LD drivers/ide/built-in.o
CC drivers/input/input.o
In file included from drivers/input/input.c:16:
include/linux/input.h:957: warning: ‘struct input_device_id’ declared inside parameter list
include/linux/input.h:957: warning: its scope is only this definition or declaration, which is probably not what you want drivers/input/input.c: In function ‘input_register_device’:
drivers/input/input.c:842: warning: passing argument 3 of ‘handler->connect’ from incompatible pointer type drivers/input/input.c: In function ‘input_register_handler’:
drivers/input/input.c:898: warning: passing argument 3 of ‘handler->connect’ from incompatible pointer type
CC drivers/input/mousedev.o
In file included from drivers/input/mousedev.c:21:
include/linux/input.h:957: warning: ‘struct input_device_id’ declared inside parameter list
include/linux/input.h:957: warning: its scope is only this definition or declaration, which is probably not what you want drivers/input/mousedev.c:714: warning: initialization from incompatible pointer type
CC drivers/input/evdev.o
In file included from drivers/input/evdev.c:19:
include/linux/input.h:957: warning: ‘struct input_device_id’ declared inside parameter list
include/linux/input.h:957: warning: its scope is only this definition or declaration, which is probably not what you want drivers/input/evdev.c:668: warning: initialization from incompatible pointer type
LD drivers/input/joystick/built-in.o
CC [M] drivers/input/joystick/adi.o
In file included from drivers/input/joystick/adi.c:34:
include/linux/input.h:957: warning: ‘struct input_device_id’ declared inside parameter list
include/linux/input.h:957: warning: its scope is only this definition or declaration, which is probably not what you want
CC drivers/input/keyboard/atkbd.o
In file included from drivers/input/keyboard/atkbd.c:26:
include/linux/input.h:957: warning: ‘struct input_device_id’ declared inside parameter list
include/linux/input.h:957: warning: its scope is only this definition or declaration, which is probably not what you want
LD drivers/input/keyboard/built-in.o
CC drivers/input/misc/pcspkr.o
In file included from drivers/input/misc/pcspkr.c:18:
include/linux/input.h:957: warning: ‘struct input_device_id’ declared inside parameter list
include/linux/input.h:957: warning: its scope is only this definition or declaration, which is probably not what you want
LD drivers/input/misc/built-in.o
CC drivers/input/mouse/psmouse-base.o
In file included from drivers/input/mouse/psmouse-base.c:19:
include/linux/input.h:957: warning: ‘struct input_device_id’ declared inside parameter list
include/linux/input.h:957: warning: its scope is only this definition or declaration, which is probably not what you want
CC drivers/input/mouse/alps.o
In file included from drivers/input/mouse/alps.c:17:
include/linux/input.h:957: warning: ‘struct input_device_id’ declared inside parameter list
include/linux/input.h:957: warning: its scope is only this definition or declaration, which is probably not what you want
CC drivers/input/mouse/logips2pp.o
In file included from drivers/input/mouse/logips2pp.c:12:
include/linux/input.h:957: warning: ‘struct input_device_id’ declared inside parameter list
include/linux/input.h:957: warning: its scope is only this definition or declaration, which is probably not what you want
CC drivers/input/mouse/synaptics.o
In file included from drivers/input/mouse/synaptics.c:27:
include/linux/input.h:957: warning: ‘struct input_device_id’ declared inside parameter list
include/linux/input.h:957: warning: its scope is only this definition or declaration, which is probably not what you want
CC drivers/input/mouse/lifebook.o
In file included from drivers/input/mouse/lifebook.c:15:
include/linux/input.h:957: warning: ‘struct input_device_id’ declared inside parameter list
include/linux/input.h:957: warning: its scope is only this definition or declaration, which is probably not what you want
CC drivers/input/mouse/trackpoint.o
In file included from drivers/input/mouse/trackpoint.c:15:
include/linux/input.h:957: warning: ‘struct input_device_id’ declared inside parameter list
include/linux/input.h:957: warning: its scope is only this definition or declaration, which is probably not what you want
LD drivers/input/mouse/psmouse.o
LD drivers/input/mouse/built-in.o
LD drivers/input/built-in.o
CC [M] drivers/input/joydev.o
In file included from include/linux/joystick.h:33,
from drivers/input/joydev.c:17:
include/linux/input.h:957: warning: ‘struct input_device_id’ declared inside parameter list
include/linux/input.h:957: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from drivers/input/joydev.c:18:
include/linux/input.h:1086: error: redefinition of ‘struct input_device_id’ drivers/input/joydev.c:578: warning: initialization from incompatible pointer type
make[2]: *** [drivers/input/joydev.o] Error 1
make[1]: *** [drivers/input] Error 2
make: *** [drivers] Error 2

#1 lore raw
Quoted 17 lines · Patrizio Bassi

i've a problem with gcc 4.1.0

LD drivers/ide/built-in.o
CC drivers/input/input.o
In file included from drivers/input/input.c:16:
include/linux/input.h:957: warning: ‘struct input_device_id’ declared inside parameter list
include/linux/input.h:957: warning: its scope is only this definition or declaration, which is probably not what you want drivers/input/input.c: In function ‘input_register_device’:
drivers/input/input.c:842: warning: passing argument 3 of ‘handler->connect’ from incompatible pointer type drivers/input/input.c: In function ‘input_register_handler’:
drivers/input/input.c:898: warning: passing argument 3 of ‘handler->connect’ from incompatible pointer type
...

Please send your .config .

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed
#2 lore raw

Adrian Bunk ha scritto:

Quoted 21 lines · Patrizio Bassi
Quoted 4 lines

i've a problem with gcc 4.1.0

Quoted 15 lines

LD drivers/ide/built-in.o
CC drivers/input/input.o
In file included from drivers/input/input.c:16:
include/linux/input.h:957: warning: ‘struct input_device_id’ declared inside parameter list
include/linux/input.h:957: warning: its scope is only this definition or declaration, which is probably not what you want drivers/input/input.c: In function ‘input_register_device’:
drivers/input/input.c:842: warning: passing argument 3 of ‘handler->connect’ from incompatible pointer type drivers/input/input.c: In function ‘input_register_handler’:
drivers/input/input.c:898: warning: passing argument 3 of ‘handler->connect’ from incompatible pointer type
...

Quoted 6 lines

Please send your .config .

cu
Adrian

remving joystick interface fixed it, but a nice warning still remains:

In file included from drivers/input/serio/libps2.c:19:
include/linux/input.h:957: warning: ‘struct input_device_id’ declared inside parameter list
include/linux/input.h:957: warning: its scope is only this definition or declaration, which is probably not what you want

this should be the cause of the problem.

Patrizio

#3 lore raw
Quoted 28 lines · Patrizio Bassi

Adrian Bunk ha scritto:

Quoted 21 lines · Patrizio Bassi
Quoted 4 lines

i've a problem with gcc 4.1.0

Quoted 15 lines

LD drivers/ide/built-in.o
CC drivers/input/input.o
In file included from drivers/input/input.c:16:
include/linux/input.h:957: warning: ‘struct input_device_id’ declared inside parameter list
include/linux/input.h:957: warning: its scope is only this definition or declaration, which is probably not what you want drivers/input/input.c: In function ‘input_register_device’:
drivers/input/input.c:842: warning: passing argument 3 of ‘handler->connect’ from incompatible pointer type drivers/input/input.c: In function ‘input_register_handler’:
drivers/input/input.c:898: warning: passing argument 3 of ‘handler->connect’ from incompatible pointer type
...

Quoted 6 lines

Please send your .config .

cu
Adrian

Quoted 7 lines

remving joystick interface fixed it, but a nice warning still remains:

In file included from drivers/input/serio/libps2.c:19:
include/linux/input.h:957: warning: ‘struct input_device_id’ declared inside parameter list
include/linux/input.h:957: warning: its scope is only this definition or declaration, which is probably not what you want

Your .config compiles for me with neither errors nor warnings in the input system.

Well, with the exception that "make oldconfig" reveals that you have the following options set that aren't present in 2.6.16-rc6-git6:
CONFIG_NO_IDLE_HZ=y
CONFIG_FB_SPLASH=y

Quoted 1 line

this should be the cause of the problem.

It seems the cause of the problem is that you omitted the information that what you call "2.6.16-rc6-git6" is in fact 2.6.16-rc6-git6 plus tons of patches, and one of these patches is causing your problem.

Quoted 1 line

Patrizio

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed
#4 lore raw

Adrian Bunk ha scritto:

Quoted 59 lines · Patrizio Bassi
Quoted 32 lines

Adrian Bunk ha scritto:

Quoted 22 lines · Patrizio Bassi
Quoted 5 lines

i've a problem with gcc 4.1.0

Quoted 16 lines

LD drivers/ide/built-in.o
CC drivers/input/input.o
In file included from drivers/input/input.c:16:
include/linux/input.h:957: warning: ‘struct input_device_id’ declared inside parameter list
include/linux/input.h:957: warning: its scope is only this definition or declaration, which is probably not what you want drivers/input/input.c: In function ‘input_register_device’:
drivers/input/input.c:842: warning: passing argument 3 of ‘handler->connect’ from incompatible pointer type drivers/input/input.c: In function ‘input_register_handler’:
drivers/input/input.c:898: warning: passing argument 3 of ‘handler->connect’ from incompatible pointer type
...

Quoted 7 lines

Please send your .config .

cu
Adrian

Quoted 8 lines

remving joystick interface fixed it, but a nice warning still remains:

In file included from drivers/input/serio/libps2.c:19:
include/linux/input.h:957: warning: ‘struct input_device_id’ declared inside parameter list
include/linux/input.h:957: warning: its scope is only this definition or declaration, which is probably not what you want

Your .config compiles for me with neither errors nor warnings in the input system.

Well, with the exception that "make oldconfig" reveals that you have the following options set that aren't present in 2.6.16-rc6-git6:
CONFIG_NO_IDLE_HZ=y
CONFIG_FB_SPLASH=y

Quoted 2 lines

this should be the cause of the problem.

It seems the cause of the problem is that you omitted the information that what you call "2.6.16-rc6-git6" is in fact 2.6.16-rc6-git6 plus tons of patches, and one of these patches is causing your problem.

Quoted 7 lines
Quoted 2 lines

Patrizio

cu
Adrian

no i just have the Con Kolivas dynticks patch and the gentoo fbsplash one.

the whole kernel compiles good without the joystick interface, the 2 patches don't touch the input.h file or related..

Patrizio.

#5 lore raw
In reply to Patrizio Bassi

Patrizio Bassi ha scritto:

Quoted 31 lines

Adrian Bunk ha scritto:

Quoted 29 lines · Patrizio Bassi
Quoted 5 lines

i've a problem with gcc 4.1.0

Quoted 16 lines

LD drivers/ide/built-in.o
CC drivers/input/input.o
In file included from drivers/input/input.c:16:
include/linux/input.h:957: warning: ‘struct input_device_id’ declared inside parameter list
include/linux/input.h:957: warning: its scope is only this definition or declaration, which is probably not what you want drivers/input/input.c: In function ‘input_register_device’:
drivers/input/input.c:842: warning: passing argument 3 of ‘handler->connect’ from incompatible pointer type drivers/input/input.c: In function ‘input_register_handler’:
drivers/input/input.c:898: warning: passing argument 3 of ‘handler->connect’ from incompatible pointer type
...

Please send your .config .

cu
Adrian

[CUT]

i'm sorry, i just found that the file may have been corrupted by some patches.

downloading from scratch fixed the problem.

i'm so sorry you have lost some time for my error :(

Patrizio