All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fengguang Wu <fengguang.wu@intel.com>
To: Jiri Kosina <jkosina@suse.cz>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	sparclinux@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
	Alan Ott <alan@signal11.us>, David Howells <dhowells@redhat.com>
Subject: Re: usr/include/linux/types.h:27:1: error: unknown type name '__u16'
Date: Wed, 27 Mar 2013 16:25:06 +0000	[thread overview]
Message-ID: <20130327162506.GA10127@localhost> (raw)
In-Reply-To: <alpine.LNX.2.00.1303271718550.23442@pobox.suse.cz>

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

WARNING: multiple messages have this Message-ID (diff)
From: Fengguang Wu <fengguang.wu@intel.com>
To: Jiri Kosina <jkosina@suse.cz>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	sparclinux@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
	Alan Ott <alan@signal11.us>, David Howells <dhowells@redhat.com>
Subject: Re: usr/include/linux/types.h:27:1: error: unknown type name '__u16'
Date: Thu, 28 Mar 2013 00:25:06 +0800	[thread overview]
Message-ID: <20130327162506.GA10127@localhost> (raw)
In-Reply-To: <alpine.LNX.2.00.1303271718550.23442@pobox.suse.cz>

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

  reply	other threads:[~2013-03-27 16:25 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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:44   ` Fengguang Wu
2013-03-27 15:51   ` Greg Kroah-Hartman
2013-03-27 15:51     ` Greg Kroah-Hartman
2013-03-27 16:15     ` Fengguang Wu
2013-03-27 16:15       ` Fengguang Wu
2013-03-27 16:19       ` Jiri Kosina
2013-03-27 16:19         ` Jiri Kosina
2013-03-27 16:25         ` Fengguang Wu [this message]
2013-03-27 16:25           ` Fengguang Wu
2013-03-30 19:17   ` Sam Ravnborg
2013-03-30 19:17     ` Sam Ravnborg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130327162506.GA10127@localhost \
    --to=fengguang.wu@intel.com \
    --cc=alan@signal11.us \
    --cc=dhowells@redhat.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jkosina@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sparclinux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.