Fix Error: chip/sam_udp.c:2805:1: error: unused function 'sam_ep_reserved' [-Werror,-Wunused-function]
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
36c511f710
commit
2670229cb9
@ -388,8 +388,6 @@ static inline struct sam_ep_s *
|
||||
static inline void
|
||||
sam_ep_unreserve(struct sam_usbdev_s *priv,
|
||||
struct sam_ep_s *privep);
|
||||
static inline bool
|
||||
sam_ep_reserved(struct sam_usbdev_s *priv, int epno);
|
||||
static int sam_ep_configure_internal(struct sam_ep_s *privep,
|
||||
const struct usb_epdesc_s *desc);
|
||||
|
||||
@ -2793,20 +2791,6 @@ sam_ep_unreserve(struct sam_usbdev_s *priv, struct sam_ep_s *privep)
|
||||
leave_critical_section(flags);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: sam_ep_reserved
|
||||
*
|
||||
* Description:
|
||||
* Check if the endpoint has already been allocated.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static inline bool
|
||||
sam_ep_reserved(struct sam_usbdev_s *priv, int epno)
|
||||
{
|
||||
return ((priv->epavail & SAM_EP_BIT(epno)) == 0);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: sam_ep_configure_internal
|
||||
*
|
||||
|
@ -465,8 +465,6 @@ static inline struct sam_ep_s *
|
||||
static inline void
|
||||
sam_ep_unreserve(struct sam_usbdev_s *priv,
|
||||
struct sam_ep_s *privep);
|
||||
static inline bool
|
||||
sam_ep_reserved(struct sam_usbdev_s *priv, int epno);
|
||||
static int sam_ep_configure_internal(struct sam_ep_s *privep,
|
||||
const struct usb_epdesc_s *desc);
|
||||
|
||||
@ -3235,20 +3233,6 @@ sam_ep_unreserve(struct sam_usbdev_s *priv, struct sam_ep_s *privep)
|
||||
leave_critical_section(flags);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: sam_ep_reserved
|
||||
*
|
||||
* Description:
|
||||
* Check if the endpoint has already been allocated.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static inline bool
|
||||
sam_ep_reserved(struct sam_usbdev_s *priv, int epno)
|
||||
{
|
||||
return ((priv->epavail & SAM_EP_BIT(epno)) == 0);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: sam_ep_configure_internal
|
||||
*
|
||||
|
@ -441,8 +441,6 @@ static inline struct sam_ep_s *
|
||||
static inline void
|
||||
sam_ep_unreserve(struct sam_usbdev_s *priv,
|
||||
struct sam_ep_s *privep);
|
||||
static inline bool
|
||||
sam_ep_reserved(struct sam_usbdev_s *priv, int epno);
|
||||
static int sam_ep_configure_internal(struct sam_ep_s *privep,
|
||||
const struct usb_epdesc_s *desc);
|
||||
|
||||
@ -1579,20 +1577,6 @@ sam_ep_unreserve(struct sam_usbdev_s *priv, struct sam_ep_s *privep)
|
||||
leave_critical_section(flags);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: sam_ep_reserved
|
||||
*
|
||||
* Description:
|
||||
* Check if the endpoint has already been allocated.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static inline bool
|
||||
sam_ep_reserved(struct sam_usbdev_s *priv, int epno)
|
||||
{
|
||||
return ((priv->epavail & SAM_EP_BIT(epno)) == 0);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: sam_ep_configure
|
||||
*
|
||||
|
@ -777,8 +777,6 @@ static inline struct sam_ep_s *
|
||||
static inline void
|
||||
sam_ep_unreserve(struct sam_usbdev_s *priv,
|
||||
struct sam_ep_s *privep);
|
||||
static inline bool
|
||||
sam_ep_reserved(struct sam_usbdev_s *priv, int epno);
|
||||
static int sam_ep_configure_internal(struct sam_ep_s *privep,
|
||||
const struct usb_epdesc_s *desc);
|
||||
|
||||
@ -2221,20 +2219,6 @@ sam_ep_unreserve(struct sam_usbdev_s *priv, struct sam_ep_s *privep)
|
||||
leave_critical_section(flags);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: sam_ep_reserved
|
||||
*
|
||||
* Description:
|
||||
* Check if the endpoint has already been allocated.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static inline bool
|
||||
sam_ep_reserved(struct sam_usbdev_s *priv, int epno)
|
||||
{
|
||||
return ((priv->epavail & SAM_EP_BIT(epno)) == 0);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Endpoint operations
|
||||
****************************************************************************/
|
||||
|
@ -533,8 +533,6 @@ static inline struct sam_ep_s *
|
||||
static inline void
|
||||
sam_ep_unreserve(struct sam_usbdev_s *priv,
|
||||
struct sam_ep_s *privep);
|
||||
static inline bool
|
||||
sam_ep_reserved(struct sam_usbdev_s *priv, int epno);
|
||||
static int sam_ep_configure_internal(struct sam_ep_s *privep,
|
||||
const struct usb_epdesc_s *desc);
|
||||
static inline int
|
||||
@ -3592,21 +3590,6 @@ sam_ep_unreserve(struct sam_usbdev_s *priv, struct sam_ep_s *privep)
|
||||
leave_critical_section(flags);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
*
|
||||
* Name: sam_ep_reserved
|
||||
*
|
||||
* Description:
|
||||
* Check if the endpoint has already been allocated.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static inline bool
|
||||
sam_ep_reserved(struct sam_usbdev_s *priv, int epno)
|
||||
{
|
||||
return ((priv->epavail & SAM_EP_BIT(epno)) == 0);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
*
|
||||
* Name: sam_ep_configure_internal
|
||||
|
Loading…
Reference in New Issue
Block a user