nfsd: remove unused function
[ Upstream commit 363f8dd5eecd6c67fe9840ef6065440f0ee7df3a ] 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> Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
bd373a90d0
commit
856b0c4979
@@ -6336,15 +6336,6 @@ out:
|
|||||||
return status;
|
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 */
|
/* last octet in a range */
|
||||||
static inline u64
|
static inline u64
|
||||||
last_byte_offset(u64 start, u64 len)
|
last_byte_offset(u64 start, u64 len)
|
||||||
|
Reference in New Issue
Block a user