linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] nfsd: remove unused function
@ 2021-04-15  8:38 Jiapeng Chong
  2021-04-15 14:12 ` Chuck Lever III
  0 siblings, 1 reply; 2+ messages in thread
From: Jiapeng Chong @ 2021-04-15  8:38 UTC (permalink / raw)
  To: bfields; +Cc: chuck.lever, linux-nfs, linux-kernel, Jiapeng Chong

Fix the following clang warning:

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

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
 fs/nfsd/nfs4state.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index 97447a6..32b11ff 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -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)
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] nfsd: remove unused function
  2021-04-15  8:38 [PATCH] nfsd: remove unused function Jiapeng Chong
@ 2021-04-15 14:12 ` Chuck Lever III
  0 siblings, 0 replies; 2+ messages in thread
From: Chuck Lever III @ 2021-04-15 14:12 UTC (permalink / raw)
  To: Jiapeng Chong; +Cc: Bruce Fields, Linux NFS Mailing List, linux-kernel



> On Apr 15, 2021, at 4:38 AM, Jiapeng Chong <jiapeng.chong@linux.alibaba.com> wrote:
> 
> Fix the following clang warning:
> 
> fs/nfsd/nfs4state.c:6276:1: warning: unused function 'end_offset'
> [-Wunused-function].
> 
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>

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


> ---
> fs/nfsd/nfs4state.c | 9 ---------
> 1 file changed, 9 deletions(-)
> 
> diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
> index 97447a6..32b11ff 100644
> --- a/fs/nfsd/nfs4state.c
> +++ b/fs/nfsd/nfs4state.c
> @@ -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)
> -- 
> 1.8.3.1
> 

--
Chuck Lever




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-15 14:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-15  8:38 [PATCH] nfsd: remove unused function Jiapeng Chong
2021-04-15 14:12 ` Chuck Lever III

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).