You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/11/13 14:35:25 UTC
[incubator-nuttx] 01/18: Fix Error: chip/sam_udp.c:2805:1: error: unused function 'sam_ep_reserved' [-Werror,-Wunused-function]
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 2670229cb9723f73dcc45cd890007bc1f431a5d7
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sun Nov 13 09:46:32 2022 +0800
Fix Error: chip/sam_udp.c:2805:1: error: unused function 'sam_ep_reserved' [-Werror,-Wunused-function]
Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
arch/arm/src/sam34/sam_udp.c | 16 ----------------
arch/arm/src/sama5/sam_udphs.c | 16 ----------------
arch/arm/src/samd2l2/sam_usb.c | 16 ----------------
arch/arm/src/samd5e5/sam_usb.c | 16 ----------------
arch/arm/src/samv7/sam_usbdevhs.c | 17 -----------------
5 files changed, 81 deletions(-)
diff --git a/arch/arm/src/sam34/sam_udp.c b/arch/arm/src/sam34/sam_udp.c
index d8dc266375..c7ac175fa1 100644
--- a/arch/arm/src/sam34/sam_udp.c
+++ b/arch/arm/src/sam34/sam_udp.c
@@ -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
*
diff --git a/arch/arm/src/sama5/sam_udphs.c b/arch/arm/src/sama5/sam_udphs.c
index 35a76cd84c..41cf3823f6 100644
--- a/arch/arm/src/sama5/sam_udphs.c
+++ b/arch/arm/src/sama5/sam_udphs.c
@@ -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
*
diff --git a/arch/arm/src/samd2l2/sam_usb.c b/arch/arm/src/samd2l2/sam_usb.c
index fbf48121d7..4b5bd5c17f 100644
--- a/arch/arm/src/samd2l2/sam_usb.c
+++ b/arch/arm/src/samd2l2/sam_usb.c
@@ -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
*
diff --git a/arch/arm/src/samd5e5/sam_usb.c b/arch/arm/src/samd5e5/sam_usb.c
index eb0d963b26..a0d9d356e9 100644
--- a/arch/arm/src/samd5e5/sam_usb.c
+++ b/arch/arm/src/samd5e5/sam_usb.c
@@ -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
****************************************************************************/
diff --git a/arch/arm/src/samv7/sam_usbdevhs.c b/arch/arm/src/samv7/sam_usbdevhs.c
index 438235798c..afbf4d8cd5 100644
--- a/arch/arm/src/samv7/sam_usbdevhs.c
+++ b/arch/arm/src/samv7/sam_usbdevhs.c
@@ -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