From: Arnd Bergmann Date: Fri, 20 Oct 2023 13:12:57 +0000 (+0200) Subject: apparmor: mark new functions static X-Git-Tag: v6.7-rc1~81^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7060d3ccdd4cf042749664d2fe93f978a777e3e9;p=thirdparty%2Fkernel%2Fstable.git apparmor: mark new functions static Two new functions were introduced as global functions when they are only called from inside the file that defines them and should have been static: security/apparmor/lsm.c:658:5: error: no previous prototype for 'apparmor_uring_override_creds' [-Werror=missing-prototypes] security/apparmor/lsm.c:682:5: error: no previous prototype for 'apparmor_uring_sqpoll' [-Werror=missing-prototypes] Fixes: c4371d90633b7 ("apparmor: add io_uring mediation") Signed-off-by: Arnd Bergmann Signed-off-by: John Johansen --- diff --git a/security/apparmor/lsm.c b/security/apparmor/lsm.c index b047d1d355a97..4d34180e97995 100644 --- a/security/apparmor/lsm.c +++ b/security/apparmor/lsm.c @@ -655,7 +655,7 @@ static int profile_uring(struct aa_profile *profile, u32 request, * Check to see if the current task is allowed to override it's credentials * to service an io_uring operation. */ -int apparmor_uring_override_creds(const struct cred *new) +static int apparmor_uring_override_creds(const struct cred *new) { struct aa_profile *profile; struct aa_label *label; @@ -679,7 +679,7 @@ int apparmor_uring_override_creds(const struct cred *new) * Check to see if the current task is allowed to create a new io_uring * kernel polling thread. */ -int apparmor_uring_sqpoll(void) +static int apparmor_uring_sqpoll(void) { struct aa_profile *profile; struct aa_label *label;