Skip to contentSkip to conversation

nfsd: remove unused function

PATCH In review Jiapeng Chong 2 participants 2 messages Apr 15, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nfsd: remove unused function

Fix the following clang warning:

fs/nfsd/nfs4state.c:6276:1: warning: unused function 'end_offset' [-Wunused-function].

---
 fs/nfsd/nfs4state.c | 9 ---------
 1 file changed, 9 deletions(-)
fs/nfsd/nfs4state.c +0 -9
index 97447a6..32b11ff 100644
@@ -6272,15 +6272,6 @@ static void nfsd4_close_open_stateid(struct nfs4_ol_stateid *s)
 	return status;
 }
 
-static inline u64
-end_offset(u64 start, u64 len)
-{
-	u64 end;
-
-	end = start + len;
-	return end >= start ? end: NFS4_MAX_UINT64;
-}
-
 /* last octet in a range */
 static inline u64
 last_byte_offset(u64 start, u64 len)
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 11 lines · Jiapeng Chong

Fix the following clang warning:

fs/nfsd/nfs4state.c:6276:1: warning: unused function 'end_offset' [-Wunused-function].

Thanks for your patch. It's been added to the for-next topic branch in

git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux.git

Quoted 22 lines

---
fs/nfsd/nfs4state.c | 9 ---------

1 file changed, 9 deletions(-)
fs/nfsd/nfs4state.c +0 -9
index 97447a6..32b11ff 100644
@@ -6272,15 +6272,6 @@ static void nfsd4_close_open_stateid(struct nfs4_ol_stateid *s)
 	return status;
 }
 
-static inline u64
-end_offset(u64 start, u64 len)
-{
-	u64 end;
-
-	end = start + len;
-	return end >= start ? end: NFS4_MAX_UINT64;
-}
-
 /* last octet in a range */
Quoted 5 lines

static inline u64
last_byte_offset(u64 start, u64 len)

Signature · 1 line
1.8.3.1

--
Chuck Lever