diff options
author | Paul Moore <paul@paul-moore.com> | 2025-02-09 22:32:15 -0500 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2025-02-10 09:50:17 -0500 |
commit | 4632cd0ec3faa568660a194d5a93450d9cbf7aa5 (patch) | |
tree | 4d929c6de252c694c3e94604d5dab31b9c0b714a | |
parent | c6ad9fdbd44b78f51fa50138247694774ab99e97 (diff) | |
download | linux-4632cd0ec3faa568660a194d5a93450d9cbf7aa5.tar.gz linux-4632cd0ec3faa568660a194d5a93450d9cbf7aa5.tar.bz2 linux-4632cd0ec3faa568660a194d5a93450d9cbf7aa5.zip |
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: c6ad9fdbd44b ("io_uring,lsm,selinux: add LSM hooks for io_uring_setup()")
Signed-off-by: Paul Moore <paul@paul-moore.com>
-rw-r--r-- | include/linux/security.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/security.h b/include/linux/security.h index 3e68f8468a22..27f64a9747f8 100644 --- a/include/linux/security.h +++ b/include/linux/security.h @@ -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; } |