* usr/include/linux/types.h:27:1: error: unknown type name '__u16' [not found] <5152d3ed.vW9X0QzDTVkW7Gck%fengguang.wu@intel.com> @ 2013-03-27 15:44 ` Fengguang Wu 2013-03-27 15:51 ` Greg Kroah-Hartman 2013-03-30 19:17 ` Sam Ravnborg 0 siblings, 2 replies; 6+ messages in thread From: Fengguang Wu @ 2013-03-27 15:44 UTC (permalink / raw) To: sparclinux; +Cc: Greg Kroah-Hartman, LKML Greetings, The below errors show up in both upstream and linux-next. make ARCH=sparc allyesconfig make ARCH=sparc In file included from usr/include/linux/genetlink.h:4:0, from Documentation/accounting/getdelays.c:27: >> usr/include/linux/types.h:27:1: error: unknown type name '__u16' >> usr/include/linux/types.h:28:1: error: unknown type name '__u16' >> usr/include/linux/types.h:29:1: error: unknown type name '__u32' >> usr/include/linux/types.h:30:1: error: unknown type name '__u32' >> usr/include/linux/types.h:31:1: error: unknown type name '__u64' >> usr/include/linux/types.h:32:1: error: unknown type name '__u64' >> usr/include/linux/types.h:34:1: error: unknown type name '__u16' >> usr/include/linux/types.h:35:1: error: unknown type name '__u32' In file included from usr/include/linux/genetlink.h:5:0, from Documentation/accounting/getdelays.c:27: >> usr/include/linux/netlink.h:37:2: error: unknown type name '__u32' >> usr/include/linux/netlink.h:38:9: error: unknown type name '__u32' >> usr/include/linux/netlink.h:42:2: error: unknown type name '__u32' >> usr/include/linux/netlink.h:43:2: error: unknown type name '__u16' >> usr/include/linux/netlink.h:44:2: error: unknown type name '__u16' >> usr/include/linux/netlink.h:45:2: error: unknown type name '__u32' >> usr/include/linux/netlink.h:46:2: error: unknown type name '__u32' >> usr/include/linux/netlink.h:110:2: error: unknown type name '__u32' >> usr/include/linux/netlink.h:130:2: error: unknown type name '__u16' >> usr/include/linux/netlink.h:131:2: error: unknown type name '__u16' In file included from Documentation/accounting/getdelays.c:27:0: >> usr/include/linux/genetlink.h:13:2: error: unknown type name '__u8' >> usr/include/linux/genetlink.h:14:2: error: unknown type name '__u8' -- In file included from usr/include/linux/netlink.h:5:0, from Documentation/connector/ucon.c:28: >> usr/include/linux/types.h:27:1: error: unknown type name '__u16' >> usr/include/linux/types.h:28:1: error: unknown type name '__u16' >> usr/include/linux/types.h:29:1: error: unknown type name '__u32' >> usr/include/linux/types.h:30:1: error: unknown type name '__u32' >> usr/include/linux/types.h:31:1: error: unknown type name '__u64' >> usr/include/linux/types.h:32:1: error: unknown type name '__u64' >> usr/include/linux/types.h:34:1: error: unknown type name '__u16' >> usr/include/linux/types.h:35:1: error: unknown type name '__u32' In file included from Documentation/connector/ucon.c:28:0: >> usr/include/linux/netlink.h:37:2: error: unknown type name '__u32' >> usr/include/linux/netlink.h:38:9: error: unknown type name '__u32' >> usr/include/linux/netlink.h:42:2: error: unknown type name '__u32' >> usr/include/linux/netlink.h:43:2: error: unknown type name '__u16' >> usr/include/linux/netlink.h:44:2: error: unknown type name '__u16' >> usr/include/linux/netlink.h:45:2: error: unknown type name '__u32' >> usr/include/linux/netlink.h:46:2: error: unknown type name '__u32' >> usr/include/linux/netlink.h:110:2: error: unknown type name '__u32' >> usr/include/linux/netlink.h:130:2: error: unknown type name '__u16' >> usr/include/linux/netlink.h:131:2: error: unknown type name '__u16' In file included from usr/include/linux/rtnetlink.h:6:0, from Documentation/connector/ucon.c:29: >> usr/include/linux/if_link.h:9:2: error: unknown type name '__u32' >> usr/include/linux/if_link.h:10:2: error: unknown type name '__u32' -- In file included from usr/include/linux/uuid.h:24:0, from usr/include/linux/mei.h:70, from Documentation/misc-devices/mei/mei-amt-version.c:77: >> usr/include/linux/types.h:27:1: error: unknown type name '__u16' >> usr/include/linux/types.h:28:1: error: unknown type name '__u16' >> usr/include/linux/types.h:29:1: error: unknown type name '__u32' >> usr/include/linux/types.h:30:1: error: unknown type name '__u32' >> usr/include/linux/types.h:31:1: error: unknown type name '__u64' >> usr/include/linux/types.h:32:1: error: unknown type name '__u64' >> usr/include/linux/types.h:34:1: error: unknown type name '__u16' >> usr/include/linux/types.h:35:1: error: unknown type name '__u32' In file included from usr/include/linux/mei.h:70:0, from Documentation/misc-devices/mei/mei-amt-version.c:77: >> usr/include/linux/uuid.h:28:2: error: unknown type name '__u8' >> usr/include/linux/uuid.h:32:2: error: unknown type name '__u8' In file included from Documentation/misc-devices/mei/mei-amt-version.c:77:0: >> usr/include/linux/mei.h:95:2: error: unknown type name '__u32' >> usr/include/linux/mei.h:96:2: error: unknown type name '__u8' >> usr/include/linux/mei.h:97:2: error: unknown type name '__u8' -- In file included from usr/include/linux/if.h:22:0, from Documentation/networking/ifenslave.c:161: >> usr/include/linux/types.h:27:1: error: unknown type name '__u16' >> usr/include/linux/types.h:28:1: error: unknown type name '__u16' >> usr/include/linux/types.h:29:1: error: unknown type name '__u32' >> usr/include/linux/types.h:30:1: error: unknown type name '__u32' >> usr/include/linux/types.h:31:1: error: unknown type name '__u64' >> usr/include/linux/types.h:32:1: error: unknown type name '__u64' >> usr/include/linux/types.h:34:1: error: unknown type name '__u16' >> usr/include/linux/types.h:35:1: error: unknown type name '__u32' In file included from Documentation/networking/ifenslave.c:164:0: >> usr/include/linux/if_bonding.h:96:2: error: unknown type name '__s32' >> usr/include/linux/if_bonding.h:97:2: error: unknown type name '__s32' >> usr/include/linux/if_bonding.h:98:2: error: unknown type name '__s32' >> usr/include/linux/if_bonding.h:102:2: error: unknown type name '__s32' >> usr/include/linux/if_bonding.h:104:2: error: unknown type name '__s8' >> usr/include/linux/if_bonding.h:105:2: error: unknown type name '__s8' >> usr/include/linux/if_bonding.h:106:2: error: unknown type name '__u32' >> usr/include/linux/if_bonding.h:110:2: error: unknown type name '__u16' >> usr/include/linux/if_bonding.h:111:2: error: unknown type name '__u16' >> usr/include/linux/if_bonding.h:112:2: error: unknown type name '__u16' >> usr/include/linux/if_bonding.h:113:2: error: unknown type name '__u16' >> usr/include/linux/if_bonding.h:114:2: error: unknown type name '__u8' In file included from Documentation/networking/ifenslave.c:171:0: -- In file included from Documentation/spi/spidev_test.c:21:0: >> usr/include/linux/types.h:27:1: error: unknown type name '__u16' >> usr/include/linux/types.h:28:1: error: unknown type name '__u16' >> usr/include/linux/types.h:29:1: error: unknown type name '__u32' >> usr/include/linux/types.h:30:1: error: unknown type name '__u32' >> usr/include/linux/types.h:31:1: error: unknown type name '__u64' >> usr/include/linux/types.h:32:1: error: unknown type name '__u64' >> usr/include/linux/types.h:34:1: error: unknown type name '__u16' >> usr/include/linux/types.h:35:1: error: unknown type name '__u32' In file included from Documentation/spi/spidev_test.c:22:0: >> usr/include/linux/spi/spidev.h:86:2: error: unknown type name '__u64' >> usr/include/linux/spi/spidev.h:87:2: error: unknown type name '__u64' >> usr/include/linux/spi/spidev.h:89:2: error: unknown type name '__u32' >> usr/include/linux/spi/spidev.h:90:2: error: unknown type name '__u32' >> usr/include/linux/spi/spidev.h:92:2: error: unknown type name '__u16' >> usr/include/linux/spi/spidev.h:93:2: error: unknown type name '__u8' >> usr/include/linux/spi/spidev.h:94:2: error: unknown type name '__u8' >> usr/include/linux/spi/spidev.h:95:2: error: unknown type name '__u32' Documentation/spi/spidev_test.c: In function 'main': >> Documentation/spi/spidev_test.c:171:18: error: '__u8' undeclared (first use in this function) Documentation/spi/spidev_test.c:171:18: note: each undeclared identifier is reported only once for each function it appears in >> Documentation/spi/spidev_test.c:193:18: error: '__u32' undeclared (first use in this function) -- In file included from Documentation/spi/spidev_fdx.c:11:0: >> usr/include/linux/types.h:27:1: error: unknown type name '__u16' >> usr/include/linux/types.h:28:1: error: unknown type name '__u16' >> usr/include/linux/types.h:29:1: error: unknown type name '__u32' >> usr/include/linux/types.h:30:1: error: unknown type name '__u32' >> usr/include/linux/types.h:31:1: error: unknown type name '__u64' >> usr/include/linux/types.h:32:1: error: unknown type name '__u64' >> usr/include/linux/types.h:34:1: error: unknown type name '__u16' >> usr/include/linux/types.h:35:1: error: unknown type name '__u32' In file included from Documentation/spi/spidev_fdx.c:12:0: >> usr/include/linux/spi/spidev.h:86:2: error: unknown type name '__u64' >> usr/include/linux/spi/spidev.h:87:2: error: unknown type name '__u64' >> usr/include/linux/spi/spidev.h:89:2: error: unknown type name '__u32' >> usr/include/linux/spi/spidev.h:90:2: error: unknown type name '__u32' >> usr/include/linux/spi/spidev.h:92:2: error: unknown type name '__u16' >> usr/include/linux/spi/spidev.h:93:2: error: unknown type name '__u8' >> usr/include/linux/spi/spidev.h:94:2: error: unknown type name '__u8' >> usr/include/linux/spi/spidev.h:95:2: error: unknown type name '__u32' Documentation/spi/spidev_fdx.c: In function 'dumpstat': >> Documentation/spi/spidev_fdx.c:81:2: error: unknown type name '__u8' >> Documentation/spi/spidev_fdx.c:82:2: error: unknown type name '__u32' >> Documentation/spi/spidev_fdx.c:84:16: error: '__u8' undeclared (first use in this function) Documentation/spi/spidev_fdx.c:84:16: note: each undeclared identifier is reported only once for each function it appears in >> Documentation/spi/spidev_fdx.c:96:16: error: '__u32' undeclared (first use in this function) -- In file included from usr/include/linux/errqueue.h:4:0, from Documentation/networking/timestamping/timestamping.c:46: >> usr/include/linux/types.h:27:1: error: unknown type name '__u16' >> usr/include/linux/types.h:28:1: error: unknown type name '__u16' >> usr/include/linux/types.h:29:1: error: unknown type name '__u32' >> usr/include/linux/types.h:30:1: error: unknown type name '__u32' >> usr/include/linux/types.h:31:1: error: unknown type name '__u64' >> usr/include/linux/types.h:32:1: error: unknown type name '__u64' >> usr/include/linux/types.h:34:1: error: unknown type name '__u16' >> usr/include/linux/types.h:35:1: error: unknown type name '__u32' In file included from Documentation/networking/timestamping/timestamping.c:46:0: >> usr/include/linux/errqueue.h:7:2: error: unknown type name '__u32' >> usr/include/linux/errqueue.h:8:2: error: unknown type name '__u8' >> usr/include/linux/errqueue.h:9:2: error: unknown type name '__u8' >> usr/include/linux/errqueue.h:10:2: error: unknown type name '__u8' >> usr/include/linux/errqueue.h:11:2: error: unknown type name '__u8' >> usr/include/linux/errqueue.h:12:2: error: unknown type name '__u32' >> usr/include/linux/errqueue.h:13:2: error: unknown type name '__u32' It's bisected down to upstream commit b87fc3e6e2e ("Merge tag 'staging-3.8-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging). However it's possibly a wrong bisect because there are other build errors in the parent commits and they may hide these errors. Thanks, Fengguang --- 0-DAY kernel build testing backend Open Source Technology Center http://lists.01.org/mailman/listinfo/kbuild Intel Corporation ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: usr/include/linux/types.h:27:1: error: unknown type name '__u16' 2013-03-27 15:44 ` usr/include/linux/types.h:27:1: error: unknown type name '__u16' Fengguang Wu @ 2013-03-27 15:51 ` Greg Kroah-Hartman 2013-03-27 16:15 ` Fengguang Wu 2013-03-30 19:17 ` Sam Ravnborg 1 sibling, 1 reply; 6+ messages in thread From: Greg Kroah-Hartman @ 2013-03-27 15:51 UTC (permalink / raw) To: Fengguang Wu; +Cc: sparclinux, LKML On Wed, Mar 27, 2013 at 11:44:53PM +0800, Fengguang Wu wrote: > Greetings, > > The below errors show up in both upstream and linux-next. > > make ARCH=sparc allyesconfig > make ARCH=sparc > > In file included from usr/include/linux/genetlink.h:4:0, > from Documentation/accounting/getdelays.c:27: > >> usr/include/linux/types.h:27:1: error: unknown type name '__u16' > >> usr/include/linux/types.h:28:1: error: unknown type name '__u16' > >> usr/include/linux/types.h:29:1: error: unknown type name '__u32' > >> usr/include/linux/types.h:30:1: error: unknown type name '__u32' > >> usr/include/linux/types.h:31:1: error: unknown type name '__u64' > >> usr/include/linux/types.h:32:1: error: unknown type name '__u64' > >> usr/include/linux/types.h:34:1: error: unknown type name '__u16' > >> usr/include/linux/types.h:35:1: error: unknown type name '__u32' > In file included from usr/include/linux/genetlink.h:5:0, > from Documentation/accounting/getdelays.c:27: > >> usr/include/linux/netlink.h:37:2: error: unknown type name '__u32' > >> usr/include/linux/netlink.h:38:9: error: unknown type name '__u32' > >> usr/include/linux/netlink.h:42:2: error: unknown type name '__u32' > >> usr/include/linux/netlink.h:43:2: error: unknown type name '__u16' > >> usr/include/linux/netlink.h:44:2: error: unknown type name '__u16' > >> usr/include/linux/netlink.h:45:2: error: unknown type name '__u32' > >> usr/include/linux/netlink.h:46:2: error: unknown type name '__u32' > >> usr/include/linux/netlink.h:110:2: error: unknown type name '__u32' > >> usr/include/linux/netlink.h:130:2: error: unknown type name '__u16' > >> usr/include/linux/netlink.h:131:2: error: unknown type name '__u16' > In file included from Documentation/accounting/getdelays.c:27:0: > >> usr/include/linux/genetlink.h:13:2: error: unknown type name '__u8' > >> usr/include/linux/genetlink.h:14:2: error: unknown type name '__u8' > -- > In file included from usr/include/linux/netlink.h:5:0, > from Documentation/connector/ucon.c:28: > >> usr/include/linux/types.h:27:1: error: unknown type name '__u16' > >> usr/include/linux/types.h:28:1: error: unknown type name '__u16' > >> usr/include/linux/types.h:29:1: error: unknown type name '__u32' > >> usr/include/linux/types.h:30:1: error: unknown type name '__u32' > >> usr/include/linux/types.h:31:1: error: unknown type name '__u64' > >> usr/include/linux/types.h:32:1: error: unknown type name '__u64' > >> usr/include/linux/types.h:34:1: error: unknown type name '__u16' > >> usr/include/linux/types.h:35:1: error: unknown type name '__u32' > In file included from Documentation/connector/ucon.c:28:0: > >> usr/include/linux/netlink.h:37:2: error: unknown type name '__u32' > >> usr/include/linux/netlink.h:38:9: error: unknown type name '__u32' > >> usr/include/linux/netlink.h:42:2: error: unknown type name '__u32' > >> usr/include/linux/netlink.h:43:2: error: unknown type name '__u16' > >> usr/include/linux/netlink.h:44:2: error: unknown type name '__u16' > >> usr/include/linux/netlink.h:45:2: error: unknown type name '__u32' > >> usr/include/linux/netlink.h:46:2: error: unknown type name '__u32' > >> usr/include/linux/netlink.h:110:2: error: unknown type name '__u32' > >> usr/include/linux/netlink.h:130:2: error: unknown type name '__u16' > >> usr/include/linux/netlink.h:131:2: error: unknown type name '__u16' > In file included from usr/include/linux/rtnetlink.h:6:0, > from Documentation/connector/ucon.c:29: > >> usr/include/linux/if_link.h:9:2: error: unknown type name '__u32' > >> usr/include/linux/if_link.h:10:2: error: unknown type name '__u32' > -- > In file included from usr/include/linux/uuid.h:24:0, > from usr/include/linux/mei.h:70, > from Documentation/misc-devices/mei/mei-amt-version.c:77: > >> usr/include/linux/types.h:27:1: error: unknown type name '__u16' > >> usr/include/linux/types.h:28:1: error: unknown type name '__u16' > >> usr/include/linux/types.h:29:1: error: unknown type name '__u32' > >> usr/include/linux/types.h:30:1: error: unknown type name '__u32' > >> usr/include/linux/types.h:31:1: error: unknown type name '__u64' > >> usr/include/linux/types.h:32:1: error: unknown type name '__u64' > >> usr/include/linux/types.h:34:1: error: unknown type name '__u16' > >> usr/include/linux/types.h:35:1: error: unknown type name '__u32' > In file included from usr/include/linux/mei.h:70:0, > from Documentation/misc-devices/mei/mei-amt-version.c:77: > >> usr/include/linux/uuid.h:28:2: error: unknown type name '__u8' > >> usr/include/linux/uuid.h:32:2: error: unknown type name '__u8' > In file included from Documentation/misc-devices/mei/mei-amt-version.c:77:0: > >> usr/include/linux/mei.h:95:2: error: unknown type name '__u32' > >> usr/include/linux/mei.h:96:2: error: unknown type name '__u8' > >> usr/include/linux/mei.h:97:2: error: unknown type name '__u8' > -- > In file included from usr/include/linux/if.h:22:0, > from Documentation/networking/ifenslave.c:161: > >> usr/include/linux/types.h:27:1: error: unknown type name '__u16' > >> usr/include/linux/types.h:28:1: error: unknown type name '__u16' > >> usr/include/linux/types.h:29:1: error: unknown type name '__u32' > >> usr/include/linux/types.h:30:1: error: unknown type name '__u32' > >> usr/include/linux/types.h:31:1: error: unknown type name '__u64' > >> usr/include/linux/types.h:32:1: error: unknown type name '__u64' > >> usr/include/linux/types.h:34:1: error: unknown type name '__u16' > >> usr/include/linux/types.h:35:1: error: unknown type name '__u32' > In file included from Documentation/networking/ifenslave.c:164:0: > >> usr/include/linux/if_bonding.h:96:2: error: unknown type name '__s32' > >> usr/include/linux/if_bonding.h:97:2: error: unknown type name '__s32' > >> usr/include/linux/if_bonding.h:98:2: error: unknown type name '__s32' > >> usr/include/linux/if_bonding.h:102:2: error: unknown type name '__s32' > >> usr/include/linux/if_bonding.h:104:2: error: unknown type name '__s8' > >> usr/include/linux/if_bonding.h:105:2: error: unknown type name '__s8' > >> usr/include/linux/if_bonding.h:106:2: error: unknown type name '__u32' > >> usr/include/linux/if_bonding.h:110:2: error: unknown type name '__u16' > >> usr/include/linux/if_bonding.h:111:2: error: unknown type name '__u16' > >> usr/include/linux/if_bonding.h:112:2: error: unknown type name '__u16' > >> usr/include/linux/if_bonding.h:113:2: error: unknown type name '__u16' > >> usr/include/linux/if_bonding.h:114:2: error: unknown type name '__u8' > In file included from Documentation/networking/ifenslave.c:171:0: > -- > In file included from Documentation/spi/spidev_test.c:21:0: > >> usr/include/linux/types.h:27:1: error: unknown type name '__u16' > >> usr/include/linux/types.h:28:1: error: unknown type name '__u16' > >> usr/include/linux/types.h:29:1: error: unknown type name '__u32' > >> usr/include/linux/types.h:30:1: error: unknown type name '__u32' > >> usr/include/linux/types.h:31:1: error: unknown type name '__u64' > >> usr/include/linux/types.h:32:1: error: unknown type name '__u64' > >> usr/include/linux/types.h:34:1: error: unknown type name '__u16' > >> usr/include/linux/types.h:35:1: error: unknown type name '__u32' > In file included from Documentation/spi/spidev_test.c:22:0: > >> usr/include/linux/spi/spidev.h:86:2: error: unknown type name '__u64' > >> usr/include/linux/spi/spidev.h:87:2: error: unknown type name '__u64' > >> usr/include/linux/spi/spidev.h:89:2: error: unknown type name '__u32' > >> usr/include/linux/spi/spidev.h:90:2: error: unknown type name '__u32' > >> usr/include/linux/spi/spidev.h:92:2: error: unknown type name '__u16' > >> usr/include/linux/spi/spidev.h:93:2: error: unknown type name '__u8' > >> usr/include/linux/spi/spidev.h:94:2: error: unknown type name '__u8' > >> usr/include/linux/spi/spidev.h:95:2: error: unknown type name '__u32' > Documentation/spi/spidev_test.c: In function 'main': > >> Documentation/spi/spidev_test.c:171:18: error: '__u8' undeclared (first use in this function) > Documentation/spi/spidev_test.c:171:18: note: each undeclared identifier is reported only once for each function it appears in > >> Documentation/spi/spidev_test.c:193:18: error: '__u32' undeclared (first use in this function) > -- > In file included from Documentation/spi/spidev_fdx.c:11:0: > >> usr/include/linux/types.h:27:1: error: unknown type name '__u16' > >> usr/include/linux/types.h:28:1: error: unknown type name '__u16' > >> usr/include/linux/types.h:29:1: error: unknown type name '__u32' > >> usr/include/linux/types.h:30:1: error: unknown type name '__u32' > >> usr/include/linux/types.h:31:1: error: unknown type name '__u64' > >> usr/include/linux/types.h:32:1: error: unknown type name '__u64' > >> usr/include/linux/types.h:34:1: error: unknown type name '__u16' > >> usr/include/linux/types.h:35:1: error: unknown type name '__u32' > In file included from Documentation/spi/spidev_fdx.c:12:0: > >> usr/include/linux/spi/spidev.h:86:2: error: unknown type name '__u64' > >> usr/include/linux/spi/spidev.h:87:2: error: unknown type name '__u64' > >> usr/include/linux/spi/spidev.h:89:2: error: unknown type name '__u32' > >> usr/include/linux/spi/spidev.h:90:2: error: unknown type name '__u32' > >> usr/include/linux/spi/spidev.h:92:2: error: unknown type name '__u16' > >> usr/include/linux/spi/spidev.h:93:2: error: unknown type name '__u8' > >> usr/include/linux/spi/spidev.h:94:2: error: unknown type name '__u8' > >> usr/include/linux/spi/spidev.h:95:2: error: unknown type name '__u32' > Documentation/spi/spidev_fdx.c: In function 'dumpstat': > >> Documentation/spi/spidev_fdx.c:81:2: error: unknown type name '__u8' > >> Documentation/spi/spidev_fdx.c:82:2: error: unknown type name '__u32' > >> Documentation/spi/spidev_fdx.c:84:16: error: '__u8' undeclared (first use in this function) > Documentation/spi/spidev_fdx.c:84:16: note: each undeclared identifier is reported only once for each function it appears in > >> Documentation/spi/spidev_fdx.c:96:16: error: '__u32' undeclared (first use in this function) > -- > In file included from usr/include/linux/errqueue.h:4:0, > from Documentation/networking/timestamping/timestamping.c:46: > >> usr/include/linux/types.h:27:1: error: unknown type name '__u16' > >> usr/include/linux/types.h:28:1: error: unknown type name '__u16' > >> usr/include/linux/types.h:29:1: error: unknown type name '__u32' > >> usr/include/linux/types.h:30:1: error: unknown type name '__u32' > >> usr/include/linux/types.h:31:1: error: unknown type name '__u64' > >> usr/include/linux/types.h:32:1: error: unknown type name '__u64' > >> usr/include/linux/types.h:34:1: error: unknown type name '__u16' > >> usr/include/linux/types.h:35:1: error: unknown type name '__u32' > In file included from Documentation/networking/timestamping/timestamping.c:46:0: > >> usr/include/linux/errqueue.h:7:2: error: unknown type name '__u32' > >> usr/include/linux/errqueue.h:8:2: error: unknown type name '__u8' > >> usr/include/linux/errqueue.h:9:2: error: unknown type name '__u8' > >> usr/include/linux/errqueue.h:10:2: error: unknown type name '__u8' > >> usr/include/linux/errqueue.h:11:2: error: unknown type name '__u8' > >> usr/include/linux/errqueue.h:12:2: error: unknown type name '__u32' > >> usr/include/linux/errqueue.h:13:2: error: unknown type name '__u32' > > It's bisected down to upstream commit b87fc3e6e2e ("Merge tag 'staging-3.8-rc3' of > git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging). However > it's possibly a wrong bisect because there are other build errors in > the parent commits and they may hide these errors. As you are getting errors when building Documentation files, I don't think this is a staging tree specific issue, as I haven't changed anything in that directory that I can see. So it's probably something else. greg k-h ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: usr/include/linux/types.h:27:1: error: unknown type name '__u16' 2013-03-27 15:51 ` Greg Kroah-Hartman @ 2013-03-27 16:15 ` Fengguang Wu 2013-03-27 16:19 ` Jiri Kosina 0 siblings, 1 reply; 6+ messages in thread From: Fengguang Wu @ 2013-03-27 16:15 UTC (permalink / raw) To: Greg Kroah-Hartman; +Cc: sparclinux, LKML, Alan Ott, Jiri Kosina, David Howells > As you are getting errors when building Documentation files, I don't > think this is a staging tree specific issue, as I haven't changed > anything in that directory that I can see. > > So it's probably something else. It's not a Documentation build, even though many of the errors are related to Documentation/*. Here is another build. This time the errors are triggered from samples/hidraw/hid-example.c. Add CC to hidraw authors and David who is very good at the header stuffs. Thanks, Fengguang --- /usr/bin/make -C source O=/home/wfg/sound/obj-compiletest ARCH=sparc CROSS_COMPILE=/usr/local/gcc-4.6.3-nolibc/sparc-linux/bin/sparc-linux- -j32 make: Entering directory `/c/wfg/sound' GEN /cc/wfg/sound-compiletest/Makefile CHK include/generated/uapi/linux/version.h CC scripts/mod/devicetable-offsets.s GEN scripts/mod/devicetable-offsets.h HOSTCC scripts/mod/file2alias.o HOSTLD scripts/mod/modpost Using /c/wfg/sound as source for kernel CHK include/generated/utsrelease.h CALL /c/wfg/sound/scripts/checksyscalls.sh CHK include/generated/compile.h CHK kernel/config_data.h CHK include/generated/uapi/linux/version.h HOSTCC samples/hidraw/hid-example In file included from /c/wfg/sound/samples/hidraw/hid-example.c:13:0: /cc/wfg/sound-compiletest/usr/include/linux/types.h:27:1: error: unknown type name ‘__u16’ /cc/wfg/sound-compiletest/usr/include/linux/types.h:28:1: error: unknown type name ‘__u16’ /cc/wfg/sound-compiletest/usr/include/linux/types.h:29:1: error: unknown type name ‘__u32’ /cc/wfg/sound-compiletest/usr/include/linux/types.h:30:1: error: unknown type name ‘__u32’ /cc/wfg/sound-compiletest/usr/include/linux/types.h:31:1: error: unknown type name ‘__u64’ /cc/wfg/sound-compiletest/usr/include/linux/types.h:32:1: error: unknown type name ‘__u64’ /cc/wfg/sound-compiletest/usr/include/linux/types.h:34:1: error: unknown type name ‘__u16’ /cc/wfg/sound-compiletest/usr/include/linux/types.h:35:1: error: unknown type name ‘__u32’ In file included from /c/wfg/sound/samples/hidraw/hid-example.c:14:0: /cc/wfg/sound-compiletest/usr/include/linux/input.h:24:2: error: unknown type name ‘__u16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:25:2: error: unknown type name ‘__u16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:26:2: error: unknown type name ‘__s32’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:40:2: error: unknown type name ‘__u16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:41:2: error: unknown type name ‘__u16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:42:2: error: unknown type name ‘__u16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:43:2: error: unknown type name ‘__u16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:66:2: error: unknown type name ‘__s32’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:67:2: error: unknown type name ‘__s32’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:68:2: error: unknown type name ‘__s32’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:69:2: error: unknown type name ‘__s32’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:70:2: error: unknown type name ‘__s32’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:71:2: error: unknown type name ‘__s32’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:91:2: error: unknown type name ‘__u8’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:92:2: error: unknown type name ‘__u8’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:93:2: error: unknown type name ‘__u16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:94:2: error: unknown type name ‘__u32’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:95:2: error: unknown type name ‘__u8’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:958:2: error: unknown type name ‘__u16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:959:2: error: unknown type name ‘__u16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:968:2: error: unknown type name ‘__u16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:969:2: error: unknown type name ‘__u16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:985:2: error: unknown type name ‘__u16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:986:2: error: unknown type name ‘__u16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:987:2: error: unknown type name ‘__u16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:988:2: error: unknown type name ‘__u16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:997:2: error: unknown type name ‘__s16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:1008:2: error: unknown type name ‘__s16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:1009:2: error: unknown type name ‘__s16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:1024:2: error: unknown type name ‘__u16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:1025:2: error: unknown type name ‘__u16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:1027:2: error: unknown type name ‘__s16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:1028:2: error: unknown type name ‘__s16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:1030:2: error: unknown type name ‘__u16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:1031:2: error: unknown type name ‘__s16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:1053:2: error: unknown type name ‘__u16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:1054:2: error: unknown type name ‘__u16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:1055:2: error: unknown type name ‘__s16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:1056:2: error: unknown type name ‘__s16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:1057:2: error: unknown type name ‘__u16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:1061:2: error: unknown type name ‘__u32’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:1062:2: error: unknown type name ‘__s16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:1074:2: error: unknown type name ‘__u16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:1075:2: error: unknown type name ‘__u16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:1102:2: error: unknown type name ‘__u16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:1103:2: error: unknown type name ‘__s16’ /cc/wfg/sound-compiletest/usr/include/linux/input.h:1104:2: error: unknown type name ‘__u16’ In file included from /c/wfg/sound/samples/hidraw/hid-example.c:15:0: /cc/wfg/sound-compiletest/usr/include/linux/hidraw.h:22:2: error: unknown type name ‘__u32’ /cc/wfg/sound-compiletest/usr/include/linux/hidraw.h:23:2: error: unknown type name ‘__u8’ /cc/wfg/sound-compiletest/usr/include/linux/hidraw.h:27:2: error: unknown type name ‘__u32’ /cc/wfg/sound-compiletest/usr/include/linux/hidraw.h:28:2: error: unknown type name ‘__s16’ /cc/wfg/sound-compiletest/usr/include/linux/hidraw.h:29:2: error: unknown type name ‘__s16’ make[3]: *** [samples/hidraw/hid-example] Error 1 make[2]: *** [samples/hidraw] Error 2 make[1]: *** [vmlinux] Error 2 make: *** [sub-make] Error 2 make: Leaving directory `/c/wfg/sound' ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: usr/include/linux/types.h:27:1: error: unknown type name '__u16' 2013-03-27 16:15 ` Fengguang Wu @ 2013-03-27 16:19 ` Jiri Kosina 2013-03-27 16:25 ` Fengguang Wu 0 siblings, 1 reply; 6+ messages in thread From: Jiri Kosina @ 2013-03-27 16:19 UTC (permalink / raw) To: Fengguang Wu Cc: Greg Kroah-Hartman, sparclinux, LKML, Alan Ott, David Howells On Thu, 28 Mar 2013, Fengguang Wu wrote: > > As you are getting errors when building Documentation files, I don't > > think this is a staging tree specific issue, as I haven't changed > > anything in that directory that I can see. > > > > So it's probably something else. > > It's not a Documentation build, even though many of the errors are > related to Documentation/*. > > Here is another build. This time the errors are triggered from > samples/hidraw/hid-example.c. > > Add CC to hidraw authors and David who is very good at the header stuffs. What tree is that? It builds fine for me here on current Linus' tree: $ make samples/hidraw/ make[1]: Nothing to be done for `all'. make[1]: Nothing to be done for `relocs'. CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h CALL scripts/checksyscalls.sh CC scripts/mod/devicetable-offsets.s GEN scripts/mod/devicetable-offsets.h HOSTCC scripts/mod/file2alias.o HOSTLD scripts/mod/modpost HOSTCC samples/hidraw/hid-example $ > > Thanks, > Fengguang > --- > > /usr/bin/make -C source O=/home/wfg/sound/obj-compiletest ARCH=sparc CROSS_COMPILE=/usr/local/gcc-4.6.3-nolibc/sparc-linux/bin/sparc-linux- -j32 > make: Entering directory `/c/wfg/sound' > GEN /cc/wfg/sound-compiletest/Makefile > CHK include/generated/uapi/linux/version.h > CC scripts/mod/devicetable-offsets.s > GEN scripts/mod/devicetable-offsets.h > HOSTCC scripts/mod/file2alias.o > HOSTLD scripts/mod/modpost > Using /c/wfg/sound as source for kernel > CHK include/generated/utsrelease.h > CALL /c/wfg/sound/scripts/checksyscalls.sh > CHK include/generated/compile.h > CHK kernel/config_data.h > CHK include/generated/uapi/linux/version.h > HOSTCC samples/hidraw/hid-example > In file included from /c/wfg/sound/samples/hidraw/hid-example.c:13:0: > /cc/wfg/sound-compiletest/usr/include/linux/types.h:27:1: error: unknown type name ‘__u16’ > /cc/wfg/sound-compiletest/usr/include/linux/types.h:28:1: error: unknown type name ‘__u16’ > /cc/wfg/sound-compiletest/usr/include/linux/types.h:29:1: error: unknown type name ‘__u32’ > /cc/wfg/sound-compiletest/usr/include/linux/types.h:30:1: error: unknown type name ‘__u32’ > /cc/wfg/sound-compiletest/usr/include/linux/types.h:31:1: error: unknown type name ‘__u64’ > /cc/wfg/sound-compiletest/usr/include/linux/types.h:32:1: error: unknown type name ‘__u64’ > /cc/wfg/sound-compiletest/usr/include/linux/types.h:34:1: error: unknown type name ‘__u16’ > /cc/wfg/sound-compiletest/usr/include/linux/types.h:35:1: error: unknown type name ‘__u32’ > In file included from /c/wfg/sound/samples/hidraw/hid-example.c:14:0: > /cc/wfg/sound-compiletest/usr/include/linux/input.h:24:2: error: unknown type name ‘__u16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:25:2: error: unknown type name ‘__u16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:26:2: error: unknown type name ‘__s32’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:40:2: error: unknown type name ‘__u16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:41:2: error: unknown type name ‘__u16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:42:2: error: unknown type name ‘__u16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:43:2: error: unknown type name ‘__u16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:66:2: error: unknown type name ‘__s32’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:67:2: error: unknown type name ‘__s32’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:68:2: error: unknown type name ‘__s32’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:69:2: error: unknown type name ‘__s32’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:70:2: error: unknown type name ‘__s32’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:71:2: error: unknown type name ‘__s32’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:91:2: error: unknown type name ‘__u8’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:92:2: error: unknown type name ‘__u8’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:93:2: error: unknown type name ‘__u16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:94:2: error: unknown type name ‘__u32’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:95:2: error: unknown type name ‘__u8’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:958:2: error: unknown type name ‘__u16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:959:2: error: unknown type name ‘__u16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:968:2: error: unknown type name ‘__u16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:969:2: error: unknown type name ‘__u16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:985:2: error: unknown type name ‘__u16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:986:2: error: unknown type name ‘__u16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:987:2: error: unknown type name ‘__u16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:988:2: error: unknown type name ‘__u16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:997:2: error: unknown type name ‘__s16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1008:2: error: unknown type name ‘__s16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1009:2: error: unknown type name ‘__s16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1024:2: error: unknown type name ‘__u16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1025:2: error: unknown type name ‘__u16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1027:2: error: unknown type name ‘__s16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1028:2: error: unknown type name ‘__s16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1030:2: error: unknown type name ‘__u16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1031:2: error: unknown type name ‘__s16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1053:2: error: unknown type name ‘__u16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1054:2: error: unknown type name ‘__u16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1055:2: error: unknown type name ‘__s16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1056:2: error: unknown type name ‘__s16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1057:2: error: unknown type name ‘__u16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1061:2: error: unknown type name ‘__u32’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1062:2: error: unknown type name ‘__s16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1074:2: error: unknown type name ‘__u16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1075:2: error: unknown type name ‘__u16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1102:2: error: unknown type name ‘__u16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1103:2: error: unknown type name ‘__s16’ > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1104:2: error: unknown type name ‘__u16’ > In file included from /c/wfg/sound/samples/hidraw/hid-example.c:15:0: > /cc/wfg/sound-compiletest/usr/include/linux/hidraw.h:22:2: error: unknown type name ‘__u32’ > /cc/wfg/sound-compiletest/usr/include/linux/hidraw.h:23:2: error: unknown type name ‘__u8’ > /cc/wfg/sound-compiletest/usr/include/linux/hidraw.h:27:2: error: unknown type name ‘__u32’ > /cc/wfg/sound-compiletest/usr/include/linux/hidraw.h:28:2: error: unknown type name ‘__s16’ > /cc/wfg/sound-compiletest/usr/include/linux/hidraw.h:29:2: error: unknown type name ‘__s16’ > make[3]: *** [samples/hidraw/hid-example] Error 1 > make[2]: *** [samples/hidraw] Error 2 > make[1]: *** [vmlinux] Error 2 > make: *** [sub-make] Error 2 > make: Leaving directory `/c/wfg/sound' > -- Jiri Kosina SUSE Labs ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: usr/include/linux/types.h:27:1: error: unknown type name '__u16' 2013-03-27 16:19 ` Jiri Kosina @ 2013-03-27 16:25 ` Fengguang Wu 0 siblings, 0 replies; 6+ messages in thread From: Fengguang Wu @ 2013-03-27 16:25 UTC (permalink / raw) To: Jiri Kosina; +Cc: Greg Kroah-Hartman, sparclinux, LKML, Alan Ott, David Howells On Wed, Mar 27, 2013 at 05:19:42PM +0100, Jiri Kosina wrote: > On Thu, 28 Mar 2013, Fengguang Wu wrote: > > > > As you are getting errors when building Documentation files, I don't > > > think this is a staging tree specific issue, as I haven't changed > > > anything in that directory that I can see. > > > > > > So it's probably something else. > > > > It's not a Documentation build, even though many of the errors are > > related to Documentation/*. > > > > Here is another build. This time the errors are triggered from > > samples/hidraw/hid-example.c. > > > > Add CC to hidraw authors and David who is very good at the header stuffs. > > What tree is that? It's linux-next. > It builds fine for me here on current Linus' tree: Yeah, however it fails in ARCH=sparc allyesconfig builds. It's not a problem specific to samples/hidraw/. It does serve as a good example. :) Thanks, Fengguang > $ make samples/hidraw/ > make[1]: Nothing to be done for `all'. > make[1]: Nothing to be done for `relocs'. > CHK include/generated/uapi/linux/version.h > CHK include/generated/utsrelease.h > CALL scripts/checksyscalls.sh > CC scripts/mod/devicetable-offsets.s > GEN scripts/mod/devicetable-offsets.h > HOSTCC scripts/mod/file2alias.o > HOSTLD scripts/mod/modpost > HOSTCC samples/hidraw/hid-example > $ > > > > Thanks, > > Fengguang > > --- > > > > /usr/bin/make -C source O=/home/wfg/sound/obj-compiletest ARCH=sparc CROSS_COMPILE=/usr/local/gcc-4.6.3-nolibc/sparc-linux/bin/sparc-linux- -j32 > > make: Entering directory `/c/wfg/sound' > > GEN /cc/wfg/sound-compiletest/Makefile > > CHK include/generated/uapi/linux/version.h > > CC scripts/mod/devicetable-offsets.s > > GEN scripts/mod/devicetable-offsets.h > > HOSTCC scripts/mod/file2alias.o > > HOSTLD scripts/mod/modpost > > Using /c/wfg/sound as source for kernel > > CHK include/generated/utsrelease.h > > CALL /c/wfg/sound/scripts/checksyscalls.sh > > CHK include/generated/compile.h > > CHK kernel/config_data.h > > CHK include/generated/uapi/linux/version.h > > HOSTCC samples/hidraw/hid-example > > In file included from /c/wfg/sound/samples/hidraw/hid-example.c:13:0: > > /cc/wfg/sound-compiletest/usr/include/linux/types.h:27:1: error: unknown type name ‘__u16’ > > /cc/wfg/sound-compiletest/usr/include/linux/types.h:28:1: error: unknown type name ‘__u16’ > > /cc/wfg/sound-compiletest/usr/include/linux/types.h:29:1: error: unknown type name ‘__u32’ > > /cc/wfg/sound-compiletest/usr/include/linux/types.h:30:1: error: unknown type name ‘__u32’ > > /cc/wfg/sound-compiletest/usr/include/linux/types.h:31:1: error: unknown type name ‘__u64’ > > /cc/wfg/sound-compiletest/usr/include/linux/types.h:32:1: error: unknown type name ‘__u64’ > > /cc/wfg/sound-compiletest/usr/include/linux/types.h:34:1: error: unknown type name ‘__u16’ > > /cc/wfg/sound-compiletest/usr/include/linux/types.h:35:1: error: unknown type name ‘__u32’ > > In file included from /c/wfg/sound/samples/hidraw/hid-example.c:14:0: > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:24:2: error: unknown type name ‘__u16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:25:2: error: unknown type name ‘__u16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:26:2: error: unknown type name ‘__s32’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:40:2: error: unknown type name ‘__u16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:41:2: error: unknown type name ‘__u16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:42:2: error: unknown type name ‘__u16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:43:2: error: unknown type name ‘__u16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:66:2: error: unknown type name ‘__s32’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:67:2: error: unknown type name ‘__s32’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:68:2: error: unknown type name ‘__s32’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:69:2: error: unknown type name ‘__s32’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:70:2: error: unknown type name ‘__s32’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:71:2: error: unknown type name ‘__s32’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:91:2: error: unknown type name ‘__u8’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:92:2: error: unknown type name ‘__u8’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:93:2: error: unknown type name ‘__u16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:94:2: error: unknown type name ‘__u32’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:95:2: error: unknown type name ‘__u8’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:958:2: error: unknown type name ‘__u16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:959:2: error: unknown type name ‘__u16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:968:2: error: unknown type name ‘__u16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:969:2: error: unknown type name ‘__u16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:985:2: error: unknown type name ‘__u16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:986:2: error: unknown type name ‘__u16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:987:2: error: unknown type name ‘__u16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:988:2: error: unknown type name ‘__u16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:997:2: error: unknown type name ‘__s16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1008:2: error: unknown type name ‘__s16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1009:2: error: unknown type name ‘__s16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1024:2: error: unknown type name ‘__u16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1025:2: error: unknown type name ‘__u16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1027:2: error: unknown type name ‘__s16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1028:2: error: unknown type name ‘__s16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1030:2: error: unknown type name ‘__u16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1031:2: error: unknown type name ‘__s16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1053:2: error: unknown type name ‘__u16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1054:2: error: unknown type name ‘__u16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1055:2: error: unknown type name ‘__s16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1056:2: error: unknown type name ‘__s16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1057:2: error: unknown type name ‘__u16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1061:2: error: unknown type name ‘__u32’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1062:2: error: unknown type name ‘__s16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1074:2: error: unknown type name ‘__u16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1075:2: error: unknown type name ‘__u16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1102:2: error: unknown type name ‘__u16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1103:2: error: unknown type name ‘__s16’ > > /cc/wfg/sound-compiletest/usr/include/linux/input.h:1104:2: error: unknown type name ‘__u16’ > > In file included from /c/wfg/sound/samples/hidraw/hid-example.c:15:0: > > /cc/wfg/sound-compiletest/usr/include/linux/hidraw.h:22:2: error: unknown type name ‘__u32’ > > /cc/wfg/sound-compiletest/usr/include/linux/hidraw.h:23:2: error: unknown type name ‘__u8’ > > /cc/wfg/sound-compiletest/usr/include/linux/hidraw.h:27:2: error: unknown type name ‘__u32’ > > /cc/wfg/sound-compiletest/usr/include/linux/hidraw.h:28:2: error: unknown type name ‘__s16’ > > /cc/wfg/sound-compiletest/usr/include/linux/hidraw.h:29:2: error: unknown type name ‘__s16’ > > make[3]: *** [samples/hidraw/hid-example] Error 1 > > make[2]: *** [samples/hidraw] Error 2 > > make[1]: *** [vmlinux] Error 2 > > make: *** [sub-make] Error 2 > > make: Leaving directory `/c/wfg/sound' > > > > -- > Jiri Kosina > SUSE Labs ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: usr/include/linux/types.h:27:1: error: unknown type name '__u16' 2013-03-27 15:44 ` usr/include/linux/types.h:27:1: error: unknown type name '__u16' Fengguang Wu 2013-03-27 15:51 ` Greg Kroah-Hartman @ 2013-03-30 19:17 ` Sam Ravnborg 1 sibling, 0 replies; 6+ messages in thread From: Sam Ravnborg @ 2013-03-30 19:17 UTC (permalink / raw) To: Fengguang Wu; +Cc: sparclinux, Greg Kroah-Hartman, LKML On Wed, Mar 27, 2013 at 11:44:53PM +0800, Fengguang Wu wrote: > Greetings, > > The below errors show up in both upstream and linux-next. > > make ARCH=sparc allyesconfig > make ARCH=sparc > > In file included from usr/include/linux/genetlink.h:4:0, > from Documentation/accounting/getdelays.c:27: > >> usr/include/linux/types.h:27:1: error: unknown type name '__u16' > >> usr/include/linux/types.h:28:1: error: unknown type name '__u16' > >> usr/include/linux/types.h:29:1: error: unknown type name '__u32' > >> usr/include/linux/types.h:30:1: error: unknown type name '__u32' > >> usr/include/linux/types.h:31:1: error: unknown type name '__u64' > >> usr/include/linux/types.h:32:1: error: unknown type name '__u64' > >> usr/include/linux/types.h:34:1: error: unknown type name '__u16' > >> usr/include/linux/types.h:35:1: error: unknown type name '__u32' > In file included from usr/include/linux/genetlink.h:5:0, This turned out to be something fundamental in types.h. My fix is appended. I will do a proper submission to davem later as part of a few other trivial fixes. Sam Subject: [PATCH] sparc: use asm-generic version of types.h This fixes build errors in samples/ We failed to include the header file that define __u16 because __sparc__ was not defined. This check is not required - and removing this made us compatible with the generic types.h version. So use that. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> --- arch/sparc/include/asm/Kbuild | 1 + arch/sparc/include/uapi/asm/Kbuild | 1 - arch/sparc/include/uapi/asm/types.h | 17 ----------------- 3 files changed, 1 insertions(+), 18 deletions(-) delete mode 100644 arch/sparc/include/uapi/asm/types.h diff --git a/arch/sparc/include/asm/Kbuild b/arch/sparc/include/asm/Kbuild index f73884b..ff18e3c 100644 --- a/arch/sparc/include/asm/Kbuild +++ b/arch/sparc/include/asm/Kbuild @@ -13,4 +13,5 @@ generic-y += local.h generic-y += module.h generic-y += serial.h generic-y += trace_clock.h +generic-y += types.h generic-y += word-at-a-time.h diff --git a/arch/sparc/include/uapi/asm/Kbuild b/arch/sparc/include/uapi/asm/Kbuild index ce175af..b5843ee 100644 --- a/arch/sparc/include/uapi/asm/Kbuild +++ b/arch/sparc/include/uapi/asm/Kbuild @@ -44,7 +44,6 @@ header-y += swab.h header-y += termbits.h header-y += termios.h header-y += traps.h -header-y += types.h header-y += uctx.h header-y += unistd.h header-y += utrap.h diff --git a/arch/sparc/include/uapi/asm/types.h b/arch/sparc/include/uapi/asm/types.h deleted file mode 100644 index 383d156..0000000 --- a/arch/sparc/include/uapi/asm/types.h +++ /dev/null @@ -1,17 +0,0 @@ -#ifndef _SPARC_TYPES_H -#define _SPARC_TYPES_H -/* - * This file is never included by application software unless - * explicitly requested (e.g., via linux/types.h) in which case the - * application is Linux specific so (user-) name space pollution is - * not a major issue. However, for interoperability, libraries still - * need to be careful to avoid a name clashes. - */ - -#if defined(__sparc__) - -#include <asm-generic/int-ll64.h> - -#endif /* defined(__sparc__) */ - -#endif /* defined(_SPARC_TYPES_H) */ -- 1.6.0.6 ^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-03-30 19:17 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <5152d3ed.vW9X0QzDTVkW7Gck%fengguang.wu@intel.com>
2013-03-27 15:44 ` usr/include/linux/types.h:27:1: error: unknown type name '__u16' Fengguang Wu
2013-03-27 15:51 ` Greg Kroah-Hartman
2013-03-27 16:15 ` Fengguang Wu
2013-03-27 16:19 ` Jiri Kosina
2013-03-27 16:25 ` Fengguang Wu
2013-03-30 19:17 ` Sam Ravnborg
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox