Skip to contentSkip to conversation

linux-next: build failure after merge of the usb tree

PATCH Stephen Rothwell 2 participants 2 messages Jun 19, 2019 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the usb tree, today's linux-next build (x86_64 allmodconfig) failed like this:

In file included from usr/include/linux/usbdevice_fs.hdrtest.c:1:
./usr/include/linux/usbdevice_fs.h:88:2: error: unknown type name 'u8'
u8 num_ports; /* Number of ports the device is connected */ ^~
./usr/include/linux/usbdevice_fs.h:92:2: error: unknown type name 'u8'
u8 ports[7]; /* List of ports on the way from the root */ ^~

Caused by commit

6d101f24f1dd ("USB: add usbfs ioctl to retrieve the connection parameters")

Presumably exposed by commit

b91976b7c0e3 ("kbuild: compile-test UAPI headers to ensure they are self-contained")

from the kbuild tree.

I have added this patch for now:

From: Stephen Rothwell <[email protected]>
Date: Wed, 19 Jun 2019 16:36:16 +1000
Subject: [PATCH] USB: fix types in uapi include

---
 include/uapi/linux/usbdevice_fs.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/uapi/linux/usbdevice_fs.h +2 -2
index 4b267fe3776e..78efe870c2b7 100644
@@ -85,11 +85,11 @@ struct usbdevfs_conninfo_ex {
 				/* kernel, the device is connected to.     */
 	__u32 devnum;           /* Device address on the bus.              */
 	__u32 speed;		/* USB_SPEED_* constants from ch9.h        */
-	u8 num_ports;		/* Number of ports the device is connected */
+	__u8 num_ports;		/* Number of ports the device is connected */
 				/* to on the way to the root hub. It may   */
 				/* be bigger than size of 'ports' array so */
 				/* userspace can detect overflows.         */
-	u8 ports[7];		/* List of ports on the way from the root  */
+	__u8 ports[7];		/* List of ports on the way from the root  */
 				/* hub to the device. Current limit in     */
 				/* USB specification is 7 tiers (root hub, */
 				/* 5 intermediate hubs, device), which     */
Signature · 5 lines
2.20.1

-- 
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 25 lines · Stephen Rothwell

Hi all,

After merging the usb tree, today's linux-next build (x86_64 allmodconfig) failed like this:

In file included from usr/include/linux/usbdevice_fs.hdrtest.c:1:
./usr/include/linux/usbdevice_fs.h:88:2: error: unknown type name 'u8'
u8 num_ports; /* Number of ports the device is connected */ ^~
./usr/include/linux/usbdevice_fs.h:92:2: error: unknown type name 'u8'
u8 ports[7]; /* List of ports on the way from the root */ ^~

Caused by commit

6d101f24f1dd ("USB: add usbfs ioctl to retrieve the connection parameters")

Presumably exposed by commit

b91976b7c0e3 ("kbuild: compile-test UAPI headers to ensure they are self-contained")

from the kbuild tree.

I have added this patch for now:

Quoted 8 lines

From: Stephen Rothwell <[email protected]>
Date: Wed, 19 Jun 2019 16:36:16 +1000
Subject: [PATCH] USB: fix types in uapi include

---
 include/uapi/linux/usbdevice_fs.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Ah, good catch, sorry about that. Now applied.

greg k-h