]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
filelock: __fcntl_getlease: fix kernel-doc warnings
authorRandy Dunlap <rdunlap@infradead.org>
Fri, 28 Nov 2025 00:08:26 +0000 (16:08 -0800)
committerChristian Brauner <brauner@kernel.org>
Fri, 28 Nov 2025 09:30:41 +0000 (10:30 +0100)
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: 1602bad16d7d ("vfs: expose delegation support to userland")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Link: https://patch.msgid.link/20251128000826.457120-1-rdunlap@infradead.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/locks.c

index 7f4ccc7974bc8d3e82500ee692c6520b53f2280f..9f565802a88cd34f79541fb156ef6326c0e199f1 100644 (file)
@@ -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):