yys@yys-desktop:~/Desktop/DM8168_GPIO$ make
make -C /home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2 M=/home/yys/Desktop/DM8168_GPIO modules ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
make[1]: Entering directory `/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2'
WARNING: Symbol version dump /home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/Module.symvers
is missing; modules will have no dependencies and modversions.
CC [M] /home/yys/Desktop/DM8168_GPIO/led_drive.o
In file included from include/linux/prefetch.h:14,
from include/linux/list.h:7,
from include/linux/module.h:9,
from /home/yys/Desktop/DM8168_GPIO/led_drive.c:1:
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/processor.h:98:5: warning: "__LINUX_ARM_ARCH__" is not defined
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/processor.h:118:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/module.h:9,
from /home/yys/Desktop/DM8168_GPIO/led_drive.c:1:
include/linux/list.h: In function 'list_del':
include/linux/list.h:102: error: implicit declaration of function '_AC'
include/linux/list.h:102: error: 'UL' undeclared (first use in this function)
include/linux/list.h:102: error: (Each undeclared identifier is reported only once
include/linux/list.h:102: error: for each function it appears in.)
include/linux/list.h: In function 'hlist_del':
include/linux/list.h:596: error: 'UL' undeclared (first use in this function)
In file included from include/linux/irqflags.h:15,
from /home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/system.h:61,
from /home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/bitops.h:27,
from include/linux/bitops.h:22,
from include/linux/kernel.h:17,
from include/linux/cache.h:4,
from include/linux/time.h:7,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from /home/yys/Desktop/DM8168_GPIO/led_drive.c:1:
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/irqflags.h:11:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from /home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/bitops.h:27,
from include/linux/bitops.h:22,
from include/linux/kernel.h:17,
from include/linux/cache.h:4,
from include/linux/time.h:7,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from /home/yys/Desktop/DM8168_GPIO/led_drive.c:1:
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/system.h:116:5: warning: "__LINUX_ARM_ARCH__" is not defined
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/system.h:122:5: warning: "__LINUX_ARM_ARCH__" is not defined
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/system.h:126:35: warning: "__LINUX_ARM_ARCH__" is not defined
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/system.h:260:5: warning: "__LINUX_ARM_ARCH__" is not defined
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/system.h:267:5: warning: "__LINUX_ARM_ARCH__" is not defined
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/system.h:337:5: warning: "__LINUX_ARM_ARCH__" is not defined
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/system.h:340:2: error: #error "SMP is not supported on this platform"
In file included from include/linux/bitops.h:22,
from include/linux/kernel.h:17,
from include/linux/cache.h:4,
from include/linux/time.h:7,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from /home/yys/Desktop/DM8168_GPIO/led_drive.c:1:
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/bitops.h:237:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/swab.h:6,
from include/linux/byteorder/little_endian.h:12,
from /home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/byteorder.h:21,
from include/linux/kernel.h:22,
from include/linux/cache.h:4,
from include/linux/time.h:7,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from /home/yys/Desktop/DM8168_GPIO/led_drive.c:1:
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/swab.h:25:28: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from /home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/thread_info.h:16,
from include/linux/thread_info.h:53,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from /home/yys/Desktop/DM8168_GPIO/led_drive.c:1:
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/fpstate.h:32:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/spinlock.h:87,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from /home/yys/Desktop/DM8168_GPIO/led_drive.c:1:
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/spinlock.h:4:5: warning: "__LINUX_ARM_ARCH__" is not defined
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/spinlock.h:5:2: error: #error SMP not supported on pre-ARMv6 CPUs
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/spinlock.h:10:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/spinlock.h:387,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from /home/yys/Desktop/DM8168_GPIO/led_drive.c:1:
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/atomic.h:30:5: warning: "__LINUX_ARM_ARCH__" is not defined
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/atomic.h:153:2: error: #error SMP not supported on pre-ARMv6 CPUs
In file included from include/linux/time.h:9,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from /home/yys/Desktop/DM8168_GPIO/led_drive.c:1:
include/linux/math64.h: In function 'div_u64_rem':
include/linux/math64.h:51: error: '__LINUX_ARM_ARCH__' undeclared (first use in this function)
In file included from /home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/page.h:26,
from include/linux/mmzone.h:20,
from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from /home/yys/Desktop/DM8168_GPIO/led_drive.c:1:
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/glue.h:119:2: error: #error Unknown data abort handler type
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/glue.h:160:2: error: #error Unknown prefetch abort handler type
In file included from include/linux/mmzone.h:20,
from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from /home/yys/Desktop/DM8168_GPIO/led_drive.c:1:
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/page.h:116:2: error: #error Unknown user operations model
In file included from /home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/page.h:202,
from include/linux/mmzone.h:20,
from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from /home/yys/Desktop/DM8168_GPIO/led_drive.c:1:
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/memory.h:18:25: error: mach/memory.h: No such file or directory
In file included from /home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/page.h:202,
from include/linux/mmzone.h:20,
from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from /home/yys/Desktop/DM8168_GPIO/led_drive.c:1:
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/memory.h: In function 'virt_to_phys':
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/memory.h:193: error: 'PHYS_OFFSET' undeclared (first use in this function)
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/memory.h: In function 'phys_to_virt':
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/memory.h:198: error: 'PHYS_OFFSET' undeclared (first use in this function)
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/memory.h: In function 'virt_to_bus':
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/memory.h:223: error: 'PHYS_OFFSET' undeclared (first use in this function)
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/memory.h: In function 'bus_to_virt':
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/memory.h:228: error: 'PHYS_OFFSET' undeclared (first use in this function)
In file included from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from /home/yys/Desktop/DM8168_GPIO/led_drive.c:1:
include/linux/mmzone.h: At top level:
include/linux/mmzone.h:73: error: 'CONFIG_ARM_L1_CACHE_SHIFT' undeclared here (not in a function)
include/linux/mmzone.h:73: error: requested alignment is not a constant
include/linux/mmzone.h:421: error: requested alignment is not a constant
In file included from include/linux/notifier.h:14,
from include/linux/memory_hotplug.h:6,
from include/linux/mmzone.h:659,
from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from /home/yys/Desktop/DM8168_GPIO/led_drive.c:1:
include/linux/rwsem.h:22:65: error: asm/rwsem.h: No such file or directory
In file included from include/linux/memory_hotplug.h:6,
from include/linux/mmzone.h:659,
from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from /home/yys/Desktop/DM8168_GPIO/led_drive.c:1:
include/linux/notifier.h:62: error: field 'rwsem' has incomplete type
In file included from include/linux/smp.h:37,
from include/linux/topology.h:33,
from include/linux/gfp.h:7,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from /home/yys/Desktop/DM8168_GPIO/led_drive.c:1:
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/smp.h:17:22: error: mach/smp.h: No such file or directory
In file included from include/linux/timex.h:174,
from include/linux/jiffies.h:8,
from include/linux/ktime.h:25,
from include/linux/timer.h:5,
from include/linux/workqueue.h:8,
from include/linux/kmod.h:26,
from include/linux/module.h:13,
from /home/yys/Desktop/DM8168_GPIO/led_drive.c:1:
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/timex.h:15:24: error: mach/timex.h: No such file or directory
In file included from include/linux/ktime.h:25,
from include/linux/timer.h:5,
from include/linux/workqueue.h:8,
from include/linux/kmod.h:26,
from include/linux/module.h:13,
from /home/yys/Desktop/DM8168_GPIO/led_drive.c:1:
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: error: division by zero in #if
In file included from include/linux/fs.h:480,
from /home/yys/Desktop/DM8168_GPIO/led_drive.c:4:
include/linux/quota.h:396: error: field 'dqptr_sem' has incomplete type
In file included from /home/yys/Desktop/DM8168_GPIO/led_drive.c:4:
include/linux/fs.h:761: error: field 'i_alloc_sem' has incomplete type
In file included from /home/yys/Desktop/DM8168_GPIO/led_drive.c:4:
include/linux/fs.h:1365: error: field 's_umount' has incomplete type
In file included from /home/yys/Desktop/DM8168_GPIO/led_drive.c:8:
/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2/arch/arm/include/asm/io.h:101:21: error: mach/io.h: No such file or directory
make[2]: *** [/home/yys/Desktop/DM8168_GPIO/led_drive.o] Error 1
make[1]: *** [_module_/home/yys/Desktop/DM8168_GPIO] Error 2
make[1]: Leaving directory `/home/yys/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2'
make: *** [all] Error 2
怎么LED驱动编译时发现头文件出错