linux-next: build warnings after merge of the vfs-brauner tree
Subsystems (2)
Hi all,
After merging the vfs-brauner tree, today's linux-next build (htmldocs) produced these warnings:
WARNING: fs/namei.c:627 function parameter 'idmap' not described in 'lookup_inode_permission_may_exec' WARNING: fs/namei.c:627 function parameter 'inode' not described in 'lookup_inode_permission_may_exec' WARNING: fs/namei.c:627 function parameter 'mask' not described in 'lookup_inode_permission_may_exec'
Introduced by commit
5ecf656231cc ("fs: speed up path lookup with cheaper handling of MAY_EXEC")
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 10 lines · Stephen Rothwell
Hi all,
After merging the vfs-brauner tree, today's linux-next build (htmldocs) produced these warnings:
WARNING: fs/namei.c:627 function parameter 'idmap' not described in 'lookup_inode_permission_may_exec' WARNING: fs/namei.c:627 function parameter 'inode' not described in 'lookup_inode_permission_may_exec' WARNING: fs/namei.c:627 function parameter 'mask' not described in 'lookup_inode_permission_may_exec'
That func is a little special and I would argue it should not have these documented. Is there a way to exempt it?
If not, we can repurpose inode_permission:
fs/namei.c +3 -0
@@ -607,6 +607,9 @@ EXPORT_SYMBOL(inode_permission);/** * lookup_inode_permission_may_exec - Check traversal right for given inode +* @idmap: idmap of the mount the inode was found from +* @inode: Inode to check permission on +* @mask: MAY_NOT_BLOCK or 0 * * This is a special case routine for may_lookup() making assumptions specific * to path traversal. Use inode_permission() if you are doing something else.
Quoted 7 lines
Introduced by commit
5ecf656231cc("fs: speed up path lookup with cheaper handling ofMAY_EXEC")--
Cheers,
Stephen Rothwell
Hi Mateusz,
Quoted 3 lines · On Wed, 12 Nov 2025 11:10:59 +0100 Mateusz Guzik <[email protected]> wrote:
That func is a little special and I would argue it should not have these documented. Is there a way to exempt it?
Since the function is declared static, it doesn't really need kernel-doc, so you should start the comment with "/*" instead of "/**".
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 11 lines · Stephen Rothwell
Hi Mateusz,
Quoted 3 lines · On Wed, 12 Nov 2025 11:10:59 +0100 Mateusz Guzik <[email protected]> wrote:
That func is a little special and I would argue it should not have these documented. Is there a way to exempt it?
Since the function is declared static, it doesn't really need kernel-doc, so you should start the comment with "/*" instead of "/**".
Perfect, thanks.
It is Christian's call though.