Unverified Commit 01c9c30a authored by Randy Dunlap's avatar Randy Dunlap Committed by Christian Brauner
Browse files

filelock: __fcntl_getlease: fix kernel-doc warnings



Use the correct function name and add description for the @flavor
parameter to avoid these kernel-doc warnings:

Warning: fs/locks.c:1706 function parameter 'flavor' not described in
 '__fcntl_getlease'
WARNING: fs/locks.c:1706 expecting prototype for fcntl_getlease().
 Prototype was for __fcntl_getlease() instead

Fixes: 1602bad1 ("vfs: expose delegation support to userland")
Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Link: https://patch.msgid.link/20251128000826.457120-1-rdunlap@infradead.org


Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 76c63ff1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1681,8 +1681,9 @@ void lease_get_mtime(struct inode *inode, struct timespec64 *time)
EXPORT_SYMBOL(lease_get_mtime);

/**
 *	fcntl_getlease - Enquire what lease is currently active
 *	__fcntl_getlease - Enquire what lease is currently active
 *	@filp: the file
 *	@flavor: type of lease flags to check
 *
 *	The value returned by this function will be one of
 *	(if no lease break is pending):