Skip to content

Commit 03cb8b4

Browse files
lmctlgregkh
authored andcommitted
usb: gadget: f_fs: drop duplicate usb_functionfs_descs_head declaration
Applicable for 3.14-stable only, as this revertes a previous commit that was incorrect. This commit drops duplicate declaration of struct usb_functionfs_descs_head erronousely added in commit 28c5980 ("usb: gadget: f_fs: resurect usb_functionfs_descs_head structure"). Fix from 28c5980 is applicable only for v3.15-rc1 and newer kernels. This fixes error in uapi: /src/linux$ make -C tools usb make: Entering directory '/src/linux/tools' DESCEND usb make[1]: Entering directory '/src/linux/tools/usb' gcc -Wall -Wextra -g -I../include -o testusb testusb.c -lpthread gcc -Wall -Wextra -g -I../include -o ffs-test ffs-test.c -lpthread In file included from ffs-test.c:41:0: ../../include/uapi/linux/usb/functionfs.h:42:8: error: redefinition of ‘struct usb_functionfs_descs_head’ struct usb_functionfs_descs_head { ^ ../../include/uapi/linux/usb/functionfs.h:31:8: note: originally defined here struct usb_functionfs_descs_head { ^ Cc: Michal Nazarewicz <mina86@mina86.com> Cc: Felipe Balbi <balbi@ti.com> Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 918e208 commit 03cb8b4

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

‎include/uapi/linux/usb/functionfs.h‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,18 @@ struct usb_endpoint_descriptor_no_audio {
2727
__u8 bInterval;
2828
} __attribute__((packed));
2929

30-
/* Legacy format, deprecated as of 3.14. */
31-
struct usb_functionfs_descs_head {
32-
__le32 magic;
33-
__le32 length;
34-
__le32 fs_count;
35-
__le32 hs_count;
36-
} __attribute__((packed, deprecated));
3730

3831
/*
3932
* All numbers must be in little endian order.
4033
*/
4134

35+
/* Legacy format, deprecated as of 3.14. */
4236
struct usb_functionfs_descs_head {
4337
__le32 magic;
4438
__le32 length;
4539
__le32 fs_count;
4640
__le32 hs_count;
47-
} __attribute__((packed));
41+
} __attribute__((packed, deprecated));
4842

4943
/*
5044
* Descriptors format:

0 commit comments

Comments
 (0)