mpc52xx_gpt breaks on linux-2.6.26
nello martuscielli
ppc.addon at gmail.com
Fri Oct 29 03:21:42 EST 2010
If i try to enable watchdog it breaks linux kernel build when enabled.
I'm using an Efika MPC5200B with CRUX PPC 2.6 32bit.
CONFIG_WATCHDOG=y
CONFIG_MPC5200_WDT=y
That's compiling linux-2.6.36:
[..]
LD arch/powerpc/lib/built-in.o
CC arch/powerpc/sysdev/simple_gpio.o
CC arch/powerpc/sysdev/bestcomm/ata.o
CC arch/powerpc/sysdev/bestcomm/bcom_ata_task.o
CC arch/powerpc/sysdev/bestcomm/bestcomm.o
CC arch/powerpc/sysdev/bestcomm/sram.o
LD arch/powerpc/sysdev/bestcomm/bestcomm-core.o
LD arch/powerpc/sysdev/bestcomm/bestcomm-ata.o
LD arch/powerpc/sysdev/bestcomm/built-in.o
CC [M] arch/powerpc/sysdev/bestcomm/fec.o
CC [M] arch/powerpc/sysdev/bestcomm/bcom_fec_rx_task.o
CC [M] arch/powerpc/sysdev/bestcomm/bcom_fec_tx_task.o
CC [M] arch/powerpc/sysdev/bestcomm/gen_bd.o
CC [M] arch/powerpc/sysdev/bestcomm/bcom_gen_bd_rx_task.o
CC [M] arch/powerpc/sysdev/bestcomm/bcom_gen_bd_tx_task.o
LD [M] arch/powerpc/sysdev/bestcomm/bestcomm-fec.o
LD [M] arch/powerpc/sysdev/bestcomm/bestcomm-gen-bd.o
CC arch/powerpc/sysdev/mpc5xxx_clocks.o
AS arch/powerpc/sysdev/6xx-suspend.o
LD arch/powerpc/sysdev/built-in.o
CC arch/powerpc/platforms/52xx/mpc52xx_pic.o
CC arch/powerpc/platforms/52xx/mpc52xx_common.o
CC arch/powerpc/platforms/52xx/mpc52xx_gpt.o
arch/powerpc/platforms/52xx/mpc52xx_gpt.c: In function 'mpc52xx_wdt_write':
arch/powerpc/platforms/52xx/mpc52xx_gpt.c:549: error: dereferencing
pointer to incomplete type
arch/powerpc/platforms/52xx/mpc52xx_gpt.c: In function 'mpc52xx_wdt_ioctl':
arch/powerpc/platforms/52xx/mpc52xx_gpt.c:562: error: dereferencing
pointer to incomplete type
arch/powerpc/platforms/52xx/mpc52xx_gpt.c: In function 'mpc52xx_wdt_open':
arch/powerpc/platforms/52xx/mpc52xx_gpt.c:635: error: dereferencing
pointer to incomplete type
arch/powerpc/platforms/52xx/mpc52xx_gpt.c:636: error: implicit
declaration of function 'nonseekable_open'
arch/powerpc/platforms/52xx/mpc52xx_gpt.c: In function 'mpc52xx_wdt_release':
arch/powerpc/platforms/52xx/mpc52xx_gpt.c:643: error: dereferencing
pointer to incomplete type
arch/powerpc/platforms/52xx/mpc52xx_gpt.c: At top level:
arch/powerpc/platforms/52xx/mpc52xx_gpt.c:657: error: variable
'mpc52xx_wdt_fops' has initializer but incomplete type
arch/powerpc/platforms/52xx/mpc52xx_gpt.c:658: error: unknown field
'owner' specified in initializer
cc1: warnings being treated as errors
arch/powerpc/platforms/52xx/mpc52xx_gpt.c:658: error: excess elements
in struct initializer
arch/powerpc/platforms/52xx/mpc52xx_gpt.c:658: error: (near
initialization for 'mpc52xx_wdt_fops')
arch/powerpc/platforms/52xx/mpc52xx_gpt.c:659: error: unknown field
'llseek' specified in initializer
arch/powerpc/platforms/52xx/mpc52xx_gpt.c:659: error: 'no_llseek'
undeclared here (not in a function)
arch/powerpc/platforms/52xx/mpc52xx_gpt.c:659: error: excess elements
in struct initializer
arch/powerpc/platforms/52xx/mpc52xx_gpt.c:659: error: (near
initialization for 'mpc52xx_wdt_fops')
arch/powerpc/platforms/52xx/mpc52xx_gpt.c:660: error: unknown field
'write' specified in initializer
arch/powerpc/platforms/52xx/mpc52xx_gpt.c:660: error: excess elements
in struct initializer
arch/powerpc/platforms/52xx/mpc52xx_gpt.c:660: error: (near
initialization for 'mpc52xx_wdt_fops')
arch/powerpc/platforms/52xx/mpc52xx_gpt.c:661: error: unknown field
'unlocked_ioctl' specified in initializer
arch/powerpc/platforms/52xx/mpc52xx_gpt.c:661: error: excess elements
in struct initializer
arch/powerpc/platforms/52xx/mpc52xx_gpt.c:661: error: (near
initialization for 'mpc52xx_wdt_fops')
arch/powerpc/platforms/52xx/mpc52xx_gpt.c:662: error: unknown field
'open' specified in initializer
arch/powerpc/platforms/52xx/mpc52xx_gpt.c:662: error: excess elements
in struct initializer
arch/powerpc/platforms/52xx/mpc52xx_gpt.c:662: error: (near
initialization for 'mpc52xx_wdt_fops')
arch/powerpc/platforms/52xx/mpc52xx_gpt.c:663: error: unknown field
'release' specified in initializer
arch/powerpc/platforms/52xx/mpc52xx_gpt.c:663: error: excess elements
in struct initializer
arch/powerpc/platforms/52xx/mpc52xx_gpt.c:663: error: (near
initialization for 'mpc52xx_wdt_fops')
make[2]: *** [arch/powerpc/platforms/52xx/mpc52xx_gpt.o] Error 1
make[1]: *** [arch/powerpc/platforms/52xx] Error 2
make: *** [arch/powerpc/platforms] Error 2
thanks for any advice.
Nello Martuscielli
More information about the Linuxppc-dev
mailing list