Skip to contentSkip to conversation

sunrpc: svc: Remove an unused static function svc_ungetu32()

PATCH Applied Li zeming 2 participants 2 messages Nov 4, 2022

Subsystems (2)
lore
Share & tools
lore

Li zeming

author
#0 lore raw

PATCH 1/1 sunrpc: svc: Remove an unused static function svc_ungetu32()

The svc_ungetu32 function is not used, you could remove it.

---
 include/linux/sunrpc/svc.h | 7 -------
 1 file changed, 7 deletions(-)
include/linux/sunrpc/svc.h +0 -7
index daecb009c05b..6990867470ca 100644
@@ -220,13 +220,6 @@ static inline __be32 svc_getu32(struct kvec *iov)
 	return val;
 }
 
-static inline void svc_ungetu32(struct kvec *iov)
-{
-	__be32 *vp = (__be32 *)iov->iov_base;
-	iov->iov_base = (void *)(vp - 1);
-	iov->iov_len += sizeof(*vp);
-}
-
 static inline void svc_putu32(struct kvec *iov, __be32 val)
 {
 	__be32 *vp = iov->iov_base + iov->iov_len;
Signature · 1 line
2.18.2
#1 lore raw
Quoted 7 lines · Li zeming

The svc_ungetu32 function is not used, you could remove it.

Applied to nfsd's for-next. Thanks!

Quoted 25 lines

---
include/linux/sunrpc/svc.h | 7 -------

1 file changed, 7 deletions(-)
include/linux/sunrpc/svc.h +0 -7
index daecb009c05b..6990867470ca 100644
@@ -220,13 +220,6 @@ static inline __be32 svc_getu32(struct kvec *iov)
 	return val;
 }
 
-static inline void svc_ungetu32(struct kvec *iov)
-{
-	__be32 *vp = (__be32 *)iov->iov_base;
-	iov->iov_base = (void *)(vp - 1);
-	iov->iov_len += sizeof(*vp);
-}
-
 static inline void svc_putu32(struct kvec *iov, __be32 val)
 {
 	__be32 *vp = iov->iov_base + iov->iov_len;
Signature · 1 line
2.18.2

--
Chuck Lever