Skip to content

Instantly share code, notes, and snippets.

@rchatsiri
Created March 30, 2011 16:24
Show Gist options
  • Save rchatsiri/894724 to your computer and use it in GitHub Desktop.
Save rchatsiri/894724 to your computer and use it in GitHub Desktop.
make zImage ARCH=arm CROSS_COMPILE=arm-elf-
CHK include/linux/version.h
make[1]: `arch/arm/kernel/asm-offsets.s' is up to date.
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/compile.h
CHK usr/initramfs_list
CC drivers/char/at91_spi.o
drivers/char/at91_spi.c:18:23: error: linux/clk.h: No such file or directory
drivers/char/at91_spi.c:19:35: error: linux/platform_device.h: No such file or directory
drivers/char/at91_spi.c:20:29: error: linux/atmel_pdc.h: No such file or directory
drivers/char/at91_spi.c:24:31: error: asm/arch/at91_spi.h: No such file or directory
drivers/char/at91_spi.c:25:28: error: asm/arch/board.h: No such file or directory
drivers/char/at91_spi.c:26:26: error: asm/arch/spi.h: No such file or directory
drivers/char/at91_spi.c:30: error: 'NR_SPI_DEVICES' undeclared here (not in a function)
drivers/char/at91_spi.c: In function 'spi_access_bus':
drivers/char/at91_spi.c:57: warning: implicit declaration of function 'clk_enable'
drivers/char/at91_spi.c:58: error: 'AT91_SPI_CR' undeclared (first use in this function)
drivers/char/at91_spi.c:58: error: (Each undeclared identifier is reported only once
drivers/char/at91_spi.c:58: error: for each function it appears in.)
drivers/char/at91_spi.c:58: error: 'AT91_SPI_SPIEN' undeclared (first use in this function)
drivers/char/at91_spi.c:70: error: 'AT91_SPI_MR' undeclared (first use in this function)
drivers/char/at91_spi.c:70: error: 'AT91_SPI_MSTR' undeclared (first use in this function)
drivers/char/at91_spi.c:70: error: 'AT91_SPI_MODFDIS' undeclared (first use in this function)
drivers/char/at91_spi.c: In function 'spi_release_bus':
drivers/char/at91_spi.c:87: error: 'AT91_SPI_CR' undeclared (first use in this function)
drivers/char/at91_spi.c:87: error: 'AT91_SPI_SPIDIS' undeclared (first use in this function)
drivers/char/at91_spi.c:88: warning: implicit declaration of function 'clk_disable'
drivers/char/at91_spi.c: At top level:
drivers/char/at91_spi.c:98: warning: 'struct spi_transfer_list' declared inside parameter list
drivers/char/at91_spi.c:98: warning: its scope is only this definition or declaration, which is probably not what you want
drivers/char/at91_spi.c: In function 'spi_transfer':
drivers/char/at91_spi.c:113: warning: implicit declaration of function 'AT91_SPI_CSR'
drivers/char/at91_spi.c:113: error: 'AT91_SPI_BITS_16' undeclared (first use in this function)
drivers/char/at91_spi.c:116: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:117: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:120: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:120: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:120: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:121: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:121: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:121: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:124: error: 'ATMEL_PDC_TPR' undeclared (first use in this function)
drivers/char/at91_spi.c:124: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:125: error: 'ATMEL_PDC_RPR' undeclared (first use in this function)
drivers/char/at91_spi.c:125: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:126: error: 'ATMEL_PDC_TCR' undeclared (first use in this function)
drivers/char/at91_spi.c:126: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:127: error: 'ATMEL_PDC_RCR' undeclared (first use in this function)
drivers/char/at91_spi.c:127: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:130: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:131: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:131: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:131: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:132: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:132: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:132: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:135: error: 'ATMEL_PDC_TNPR' undeclared (first use in this function)
drivers/char/at91_spi.c:135: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:136: error: 'ATMEL_PDC_RNPR' undeclared (first use in this function)
drivers/char/at91_spi.c:136: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:137: error: 'ATMEL_PDC_TNCR' undeclared (first use in this function)
drivers/char/at91_spi.c:137: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:138: error: 'ATMEL_PDC_RNCR' undeclared (first use in this function)
drivers/char/at91_spi.c:138: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:141: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:142: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:154: error: 'ATMEL_PDC_PTCR' undeclared (first use in this function)
drivers/char/at91_spi.c:154: error: 'ATMEL_PDC_RXTEN' undeclared (first use in this function)
drivers/char/at91_spi.c:154: error: 'ATMEL_PDC_TXTEN' undeclared (first use in this function)
drivers/char/at91_spi.c:156: error: 'AT91_SPI_IER' undeclared (first use in this function)
drivers/char/at91_spi.c:156: error: 'AT91_SPI_ENDRX' undeclared (first use in this function)
drivers/char/at91_spi.c: In function 'at91spi_interrupt':
drivers/char/at91_spi.c:175: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:184: error: 'AT91_SPI_SR' undeclared (first use in this function)
drivers/char/at91_spi.c:184: error: 'AT91_SPI_IMR' undeclared (first use in this function)
drivers/char/at91_spi.c:186: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:186: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:186: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:187: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:187: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:187: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:189: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:189: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:190: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:190: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:192: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:192: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:193: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:193: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:194: error: 'AT91_SPI_IDR' undeclared (first use in this function)
drivers/char/at91_spi.c:194: error: 'AT91_SPI_ENDRX' undeclared (first use in this function)
drivers/char/at91_spi.c:197: error: 'ATMEL_PDC_PTCR' undeclared (first use in this function)
drivers/char/at91_spi.c:197: error: 'ATMEL_PDC_RXTDIS' undeclared (first use in this function)
drivers/char/at91_spi.c:197: error: 'ATMEL_PDC_TXTDIS' undeclared (first use in this function)
drivers/char/at91_spi.c:199: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:202: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:202: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:203: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:204: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:205: error: 'ATMEL_PDC_TNCR' undeclared (first use in this function)
drivers/char/at91_spi.c:206: error: 'ATMEL_PDC_RNCR' undeclared (first use in this function)
drivers/char/at91_spi.c:209: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:212: error: 'AT91_SPI_BITS_16' undeclared (first use in this function)
drivers/char/at91_spi.c:214: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:214: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:214: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:215: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:215: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:215: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:216: error: 'ATMEL_PDC_TNPR' undeclared (first use in this function)
drivers/char/at91_spi.c:216: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:217: error: 'ATMEL_PDC_RNPR' undeclared (first use in this function)
drivers/char/at91_spi.c:217: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:218: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c:219: error: dereferencing pointer to incomplete type
drivers/char/at91_spi.c: In function 'at91spi_probe':
drivers/char/at91_spi.c:250: warning: implicit declaration of function 'clk_get'
drivers/char/at91_spi.c:250: warning: assignment makes pointer from integer without a cast
drivers/char/at91_spi.c:258: error: 'AT91_SPI_CR' undeclared (first use in this function)
drivers/char/at91_spi.c:258: error: 'AT91_SPI_SWRST' undeclared (first use in this function)
drivers/char/at91_spi.c:263: warning: implicit declaration of function 'clk_get_rate'
drivers/char/at91_spi.c:263: error: 'DEFAULT_SPI_CLK' undeclared (first use in this function)
drivers/char/at91_spi.c:270: error: 'AT91_SPI_CPOL' undeclared (first use in this function)
drivers/char/at91_spi.c:270: error: 'AT91_SPI_BITS_8' undeclared (first use in this function)
drivers/char/at91_spi.c:273: error: 'ATMEL_PDC_PTCR' undeclared (first use in this function)
drivers/char/at91_spi.c:273: error: 'ATMEL_PDC_RXTDIS' undeclared (first use in this function)
drivers/char/at91_spi.c:273: error: 'ATMEL_PDC_TXTDIS' undeclared (first use in this function)
drivers/char/at91_spi.c:281: error: 'AT91RM9200_ID_SPI' undeclared (first use in this function)
drivers/char/at91_spi.c:281: warning: passing argument 2 of 'request_irq' from incompatible pointer type
drivers/char/at91_spi.c:282: warning: implicit declaration of function 'clk_put'
drivers/char/at91_spi.c:288: error: 'AT91_SPI_SPIEN' undeclared (first use in this function)
drivers/char/at91_spi.c: In function 'at91spi_remove':
drivers/char/at91_spi.c:297: error: 'AT91_SPI_CR' undeclared (first use in this function)
drivers/char/at91_spi.c:297: error: 'AT91_SPI_SPIDIS' undeclared (first use in this function)
drivers/char/at91_spi.c:304: error: 'AT91RM9200_ID_SPI' undeclared (first use in this function)
drivers/char/at91_spi.c: At top level:
drivers/char/at91_spi.c:308: error: variable 'at91spi_driver' has initializer but incomplete type
drivers/char/at91_spi.c:309: error: unknown field 'probe' specified in initializer
drivers/char/at91_spi.c:309: warning: excess elements in struct initializer
drivers/char/at91_spi.c:309: warning: (near initialization for 'at91spi_driver')
drivers/char/at91_spi.c:310: error: unknown field 'remove' specified in initializer
drivers/char/at91_spi.c:310: warning: excess elements in struct initializer
drivers/char/at91_spi.c:310: warning: (near initialization for 'at91spi_driver')
drivers/char/at91_spi.c:311: error: unknown field 'driver' specified in initializer
drivers/char/at91_spi.c:311: error: extra brace group at end of initializer
drivers/char/at91_spi.c:311: error: (near initialization for 'at91spi_driver')
drivers/char/at91_spi.c:314: warning: excess elements in struct initializer
drivers/char/at91_spi.c:314: warning: (near initialization for 'at91spi_driver')
drivers/char/at91_spi.c: In function 'at91spi_init':
drivers/char/at91_spi.c:319: warning: implicit declaration of function 'platform_driver_register'
drivers/char/at91_spi.c: In function 'at91spi_exit':
drivers/char/at91_spi.c:324: warning: implicit declaration of function 'platform_driver_unregister'
make[2]: *** [drivers/char/at91_spi.o] Error 1
make[1]: *** [drivers/char] Error 2
make: *** [drivers] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment