mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:24:45 +01:00
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 <lkp@intel.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Closes: https://lore.kernel.org/oe-kbuild-all/202502081912.TeokpAAe-lkp@intel.com/
Fixes: c6ad9fdbd4 ("io_uring,lsm,selinux: add LSM hooks for io_uring_setup()")
Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
parent
c6ad9fdbd4
commit
4632cd0ec3
1 changed files with 1 additions and 1 deletions
|
|
@ -2376,7 +2376,7 @@ static inline int security_uring_cmd(struct io_uring_cmd *ioucmd)
|
|||
{
|
||||
return 0;
|
||||
}
|
||||
extern int security_uring_allowed(void)
|
||||
static inline int security_uring_allowed(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue