From 0b4b35c80a05d8042a172366860b0126b3a8e93b Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Tue, 21 Mar 2023 20:38:25 +0100 Subject: [PATCH] include/nuttx/usb/usbmsc.h: fix compiler error when USBMSC_COMPOSITE=y usbdev/usbmsc.c:1758:5: error: conflicting types for 'usbmsc_classobject'; have 'int(void *, struct usbdev_devinfo_s *, struct usbdevclass_driver_s **)' 1758 | int usbmsc_classobject(FAR void *handle, | ^~~~~~~~~~~~~~~~~~ In file included from /home/raiden00/git/RTOS/nuttx/nuttx/include/nuttx/usb/usbdev.h:36, from usbdev/usbmsc.c:68: /home/raiden00/git/RTOS/nuttx/nuttx/include/nuttx/usb/usbmsc.h:173:5: note: previous declaration of 'usbmsc_classobject' with type 'int(void *, struct usbdev_devinfo_s *, struct usbdevclass_driver_s **)' 173 | int usbmsc_classobject(FAR void *handle, --- include/nuttx/usb/usbmsc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/nuttx/usb/usbmsc.h b/include/nuttx/usb/usbmsc.h index 6212af19d9..45b0ac920d 100644 --- a/include/nuttx/usb/usbmsc.h +++ b/include/nuttx/usb/usbmsc.h @@ -169,6 +169,7 @@ int usbmsc_exportluns(FAR void *handle); ****************************************************************************/ #if defined(CONFIG_USBDEV_COMPOSITE) && defined(CONFIG_USBMSC_COMPOSITE) +struct usbdev_devinfo_s; struct usbdevclass_driver_s; int usbmsc_classobject(FAR void *handle, FAR struct usbdev_devinfo_s *devinfo,