input: i8042: build failure on powerpc
Hello
I have made a random .config for testing my powerpc cross-compiler and I got this fail:
LD init/built-in.odrivers/built-in.o: In function `i8042_wait_write':
i8042.c:(.text+0x13d8be): undefined reference to kb_cs' i8042.c:(.text+0x13d8c6): undefined reference to kb_cs' i8042.c:(.text+0x13d8e6): undefined reference to kb_cs' drivers/built-in.o: In function i8042_kbd_write':
i8042.c:(.text+0x13d9aa): undefined reference to kb_data' i8042.c:(.text+0x13d9ae): undefined reference to kb_data' drivers/built-in.o: In function `i8042_flush':
i8042.c:(.text+0x13da56): undefined reference to kb_cs' i8042.c:(.text+0x13da62): undefined reference to kb_cs' i8042.c:(.text+0x13da66): undefined reference to kb_data' i8042.c:(.text+0x13da86): undefined reference to kb_data' drivers/built-in.o: In function `i8042_panic_blink':
i8042.c:(.text+0x13db92): undefined reference to kb_cs' i8042.c:(.text+0x13db9a): undefined reference to kb_cs' i8042.c:(.text+0x13dc06): undefined reference to kb_data' i8042.c:(.text+0x13dc16): undefined reference to kb_data' i8042.c:(.text+0x13dc8a): undefined reference to kb_data' drivers/built-in.o: In function i8042_interrupt':
i8042.c:(.text+0x13dd1a): undefined reference to kb_cs' i8042.c:(.text+0x13dd1e): undefined reference to kb_cs' i8042.c:(.text+0x13dd3e): undefined reference to kb_data' i8042.c:(.text+0x13dd42): undefined reference to kb_data' drivers/built-in.o: In function `__i8042_command':
i8042.c:(.text+0x13e2b6): undefined reference to kb_cs' i8042.c:(.text+0x13e2be): undefined reference to kb_cs' i8042.c:(.text+0x13e2ea): undefined reference to kb_data' i8042.c:(.text+0x13e302): undefined reference to kb_data' i8042.c:(.text+0x13e34e): undefined reference to kb_cs' i8042.c:(.text+0x13e362): undefined reference to kb_cs' i8042.c:(.text+0x13e366): undefined reference to kb_data' i8042.c:(.text+0x13e3de): undefined reference to kb_data' drivers/built-in.o: In function `i8042_aux_test_irq':
i8042.c:(.init.text+0x59a2): undefined reference to kb_cs' i8042.c:(.init.text+0x59a6): undefined reference to kb_cs' i8042.c:(.init.text+0x59ca): undefined reference to kb_data' i8042.c:(.init.text+0x59ce): undefined reference to kb_data' drivers/built-in.o: In function `i8042_probe':
i8042.c:(.init.text+0x5dda): undefined reference to kb_cs' i8042.c:(.init.text+0x5dde): undefined reference to kb_cs' i8042.c:(.init.text+0x6366): undefined reference to kb_data' i8042.c:(.init.text+0x6376): undefined reference to kb_cs' i8042.c:(.init.text+0x637a): undefined reference to `kb_data' Makefile:929: recipe for target 'vmlinux' failed
it seems that kb_data and kb_cs (declared as extern in drivers/input/serio/i8042-ppcio.h) are defined anywhere.
Regards
Quoted 4 lines · LABBE Corentin
Hello
I have made a random .config for testing my powerpc cross-compiler and I got this fail:
In general it helps to provide the broken configuration.
If you do some digging, you may notice that this has been broken since commit 917f0af9e5a9 ("powerpc: Remove arch/ppc and include/asm-ppc"), or in other words since 2008. CONFIG_INPUT is not set with walnut_defconfig, which may explain why no one noticed.
I would suggest to just remove the offending code. Quite obviously it is dead.
Guenter
Quoted 57 lines
LD
init/built-in.odrivers/built-in.o: In function `i8042_wait_write':
i8042.c:(.text+0x13d8be): undefined reference tokb_cs' i8042.c:(.text+0x13d8c6): undefined reference tokb_cs' i8042.c:(.text+0x13d8e6): undefined reference tokb_cs' drivers/built-in.o: In functioni8042_kbd_write':
i8042.c:(.text+0x13d9aa): undefined reference tokb_data' i8042.c:(.text+0x13d9ae): undefined reference tokb_data'drivers/built-in.o: In function `i8042_flush':
i8042.c:(.text+0x13da56): undefined reference tokb_cs' i8042.c:(.text+0x13da62): undefined reference tokb_cs' i8042.c:(.text+0x13da66): undefined reference tokb_data' i8042.c:(.text+0x13da86): undefined reference tokb_data'drivers/built-in.o: In function `i8042_panic_blink':
i8042.c:(.text+0x13db92): undefined reference tokb_cs' i8042.c:(.text+0x13db9a): undefined reference tokb_cs' i8042.c:(.text+0x13dc06): undefined reference tokb_data' i8042.c:(.text+0x13dc16): undefined reference tokb_data' i8042.c:(.text+0x13dc8a): undefined reference tokb_data' drivers/built-in.o: In functioni8042_interrupt':
i8042.c:(.text+0x13dd1a): undefined reference tokb_cs' i8042.c:(.text+0x13dd1e): undefined reference tokb_cs' i8042.c:(.text+0x13dd3e): undefined reference tokb_data' i8042.c:(.text+0x13dd42): undefined reference tokb_data'drivers/built-in.o: In function `__i8042_command':
i8042.c:(.text+0x13e2b6): undefined reference tokb_cs' i8042.c:(.text+0x13e2be): undefined reference tokb_cs' i8042.c:(.text+0x13e2ea): undefined reference tokb_data' i8042.c:(.text+0x13e302): undefined reference tokb_data' i8042.c:(.text+0x13e34e): undefined reference tokb_cs' i8042.c:(.text+0x13e362): undefined reference tokb_cs' i8042.c:(.text+0x13e366): undefined reference tokb_data' i8042.c:(.text+0x13e3de): undefined reference tokb_data'drivers/built-in.o: In function `i8042_aux_test_irq':
i8042.c:(.init.text+0x59a2): undefined reference tokb_cs' i8042.c:(.init.text+0x59a6): undefined reference tokb_cs' i8042.c:(.init.text+0x59ca): undefined reference tokb_data' i8042.c:(.init.text+0x59ce): undefined reference tokb_data'drivers/built-in.o: In function `i8042_probe':
i8042.c:(.init.text+0x5dda): undefined reference tokb_cs' i8042.c:(.init.text+0x5dde): undefined reference tokb_cs' i8042.c:(.init.text+0x6366): undefined reference tokb_data' i8042.c:(.init.text+0x6376): undefined reference tokb_cs' i8042.c:(.init.text+0x637a): undefined reference to `kb_data' Makefile:929: recipe for target 'vmlinux' failedit seems that
kb_dataandkb_cs(declared as extern indrivers/input/serio/i8042-ppcio.h) are defined anywhere.Regards
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Quoted 6 lines · Guenter Roeck
Quoted 4 lines · LABBE Corentin
Hello
I have made a random .config for testing my powerpc cross-compiler and I got this fail:
Quoted 9 lines
In general it helps to provide the broken configuration.
If you do some digging, you may notice that this has been broken since commit
917f0af9e5a9("powerpc: Removearch/ppcandinclude/asm-ppc"), or in other words since 2008.CONFIG_INPUTis not set withwalnut_defconfig, which may explain why no one noticed.I would suggest to just remove the offending code. Quite obviously it is dead.
Just for be clear, you suggest that I make a patch for removing powerpc support of the i8042 driver ? I have add [email protected] to the discution.
Regards
Quoted 49 lines
Quoted 49 lines
LD
init/built-in.odrivers/built-in.o: In function `i8042_wait_write':
i8042.c:(.text+0x13d8be): undefined reference tokb_cs' i8042.c:(.text+0x13d8c6): undefined reference tokb_cs' i8042.c:(.text+0x13d8e6): undefined reference tokb_cs' drivers/built-in.o: In functioni8042_kbd_write':
i8042.c:(.text+0x13d9aa): undefined reference tokb_data' i8042.c:(.text+0x13d9ae): undefined reference tokb_data'drivers/built-in.o: In function `i8042_flush':
i8042.c:(.text+0x13da56): undefined reference tokb_cs' i8042.c:(.text+0x13da62): undefined reference tokb_cs' i8042.c:(.text+0x13da66): undefined reference tokb_data' i8042.c:(.text+0x13da86): undefined reference tokb_data'drivers/built-in.o: In function `i8042_panic_blink':
i8042.c:(.text+0x13db92): undefined reference tokb_cs' i8042.c:(.text+0x13db9a): undefined reference tokb_cs' i8042.c:(.text+0x13dc06): undefined reference tokb_data' i8042.c:(.text+0x13dc16): undefined reference tokb_data' i8042.c:(.text+0x13dc8a): undefined reference tokb_data' drivers/built-in.o: In functioni8042_interrupt':
i8042.c:(.text+0x13dd1a): undefined reference tokb_cs' i8042.c:(.text+0x13dd1e): undefined reference tokb_cs' i8042.c:(.text+0x13dd3e): undefined reference tokb_data' i8042.c:(.text+0x13dd42): undefined reference tokb_data'drivers/built-in.o: In function `__i8042_command':
i8042.c:(.text+0x13e2b6): undefined reference tokb_cs' i8042.c:(.text+0x13e2be): undefined reference tokb_cs' i8042.c:(.text+0x13e2ea): undefined reference tokb_data' i8042.c:(.text+0x13e302): undefined reference tokb_data' i8042.c:(.text+0x13e34e): undefined reference tokb_cs' i8042.c:(.text+0x13e362): undefined reference tokb_cs' i8042.c:(.text+0x13e366): undefined reference tokb_data' i8042.c:(.text+0x13e3de): undefined reference tokb_data'drivers/built-in.o: In function `i8042_aux_test_irq':
i8042.c:(.init.text+0x59a2): undefined reference tokb_cs' i8042.c:(.init.text+0x59a6): undefined reference tokb_cs' i8042.c:(.init.text+0x59ca): undefined reference tokb_data' i8042.c:(.init.text+0x59ce): undefined reference tokb_data'drivers/built-in.o: In function `i8042_probe':
i8042.c:(.init.text+0x5dda): undefined reference tokb_cs' i8042.c:(.init.text+0x5dde): undefined reference tokb_cs' i8042.c:(.init.text+0x6366): undefined reference tokb_data' i8042.c:(.init.text+0x6376): undefined reference tokb_cs' i8042.c:(.init.text+0x637a): undefined reference to `kb_data' Makefile:929: recipe for target 'vmlinux' failedit seems that
kb_dataandkb_cs(declared as extern indrivers/input/serio/i8042-ppcio.h) are defined anywhere.Regards
Quoted 14 lines · LABBE Corentin
Quoted 13 lines · Guenter Roeck
Quoted 4 lines · LABBE Corentin
Hello
I have made a random .config for testing my powerpc cross-compiler and I got this fail:
In general it helps to provide the broken configuration.
If you do some digging, you may notice that this has been broken since commit
917f0af9e5a9("powerpc: Removearch/ppcandinclude/asm-ppc"), or in other words since 2008.CONFIG_INPUTis not set withwalnut_defconfig, which may explain why no one noticed.
Quoted 6 lines
Quoted 2 lines
I would suggest to just remove the offending code. Quite obviously it is dead.
Just for be clear, you suggest that I make a patch for removing powerpc support of the i8042 driver ? I have add [email protected] to the discution.
s/powerpc/walnut/
Guenter
Quoted 52 lines
Regards
Quoted 49 lines
Quoted 49 lines
LD
init/built-in.odrivers/built-in.o: In function `i8042_wait_write':
i8042.c:(.text+0x13d8be): undefined reference tokb_cs' i8042.c:(.text+0x13d8c6): undefined reference tokb_cs' i8042.c:(.text+0x13d8e6): undefined reference tokb_cs' drivers/built-in.o: In functioni8042_kbd_write':
i8042.c:(.text+0x13d9aa): undefined reference tokb_data' i8042.c:(.text+0x13d9ae): undefined reference tokb_data'drivers/built-in.o: In function `i8042_flush':
i8042.c:(.text+0x13da56): undefined reference tokb_cs' i8042.c:(.text+0x13da62): undefined reference tokb_cs' i8042.c:(.text+0x13da66): undefined reference tokb_data' i8042.c:(.text+0x13da86): undefined reference tokb_data'drivers/built-in.o: In function `i8042_panic_blink':
i8042.c:(.text+0x13db92): undefined reference tokb_cs' i8042.c:(.text+0x13db9a): undefined reference tokb_cs' i8042.c:(.text+0x13dc06): undefined reference tokb_data' i8042.c:(.text+0x13dc16): undefined reference tokb_data' i8042.c:(.text+0x13dc8a): undefined reference tokb_data' drivers/built-in.o: In functioni8042_interrupt':
i8042.c:(.text+0x13dd1a): undefined reference tokb_cs' i8042.c:(.text+0x13dd1e): undefined reference tokb_cs' i8042.c:(.text+0x13dd3e): undefined reference tokb_data' i8042.c:(.text+0x13dd42): undefined reference tokb_data'drivers/built-in.o: In function `__i8042_command':
i8042.c:(.text+0x13e2b6): undefined reference tokb_cs' i8042.c:(.text+0x13e2be): undefined reference tokb_cs' i8042.c:(.text+0x13e2ea): undefined reference tokb_data' i8042.c:(.text+0x13e302): undefined reference tokb_data' i8042.c:(.text+0x13e34e): undefined reference tokb_cs' i8042.c:(.text+0x13e362): undefined reference tokb_cs' i8042.c:(.text+0x13e366): undefined reference tokb_data' i8042.c:(.text+0x13e3de): undefined reference tokb_data'drivers/built-in.o: In function `i8042_aux_test_irq':
i8042.c:(.init.text+0x59a2): undefined reference tokb_cs' i8042.c:(.init.text+0x59a6): undefined reference tokb_cs' i8042.c:(.init.text+0x59ca): undefined reference tokb_data' i8042.c:(.init.text+0x59ce): undefined reference tokb_data'drivers/built-in.o: In function `i8042_probe':
i8042.c:(.init.text+0x5dda): undefined reference tokb_cs' i8042.c:(.init.text+0x5dde): undefined reference tokb_cs' i8042.c:(.init.text+0x6366): undefined reference tokb_data' i8042.c:(.init.text+0x6376): undefined reference tokb_cs' i8042.c:(.init.text+0x637a): undefined reference to `kb_data' Makefile:929: recipe for target 'vmlinux' failedit seems that
kb_dataandkb_cs(declared as extern indrivers/input/serio/i8042-ppcio.h) are defined anywhere.Regards