Skip to content

Commit 4632cd0

Browse files
committed
lsm: fix a missing security_uring_allowed() prototype
The !CONFIG_SECURITY dummy function was declared as an "extern int" instead of "static inline" (likely a copy-n-paste error), which was was causing the compiler to complain about a missing prototype. This patch converts the dummy definition over to a "static inline" to resolve the compiler problems. Reported-by: kernel test robot <[email protected]> Reported-by: Stephen Rothwell <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Fixes: c6ad9fd ("io_uring,lsm,selinux: add LSM hooks for io_uring_setup()") Signed-off-by: Paul Moore <[email protected]>
1 parent c6ad9fd commit 4632cd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/security.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2376,7 +2376,7 @@ static inline int security_uring_cmd(struct io_uring_cmd *ioucmd)
23762376
{
23772377
return 0;
23782378
}
2379-
extern int security_uring_allowed(void)
2379+
static inline int security_uring_allowed(void)
23802380
{
23812381
return 0;
23822382
}

0 commit comments

Comments
 (0)