Skip to content

Commit 7060d3c

Browse files
arndbjrjohansen
authored andcommitted
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: c4371d9 ("apparmor: add io_uring mediation") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: John Johansen <john.johansen@canonical.com>
1 parent 157a353 commit 7060d3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

security/apparmor/lsm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ static int profile_uring(struct aa_profile *profile, u32 request,
655655
* Check to see if the current task is allowed to override it's credentials
656656
* to service an io_uring operation.
657657
*/
658-
int apparmor_uring_override_creds(const struct cred *new)
658+
static int apparmor_uring_override_creds(const struct cred *new)
659659
{
660660
struct aa_profile *profile;
661661
struct aa_label *label;
@@ -679,7 +679,7 @@ int apparmor_uring_override_creds(const struct cred *new)
679679
* Check to see if the current task is allowed to create a new io_uring
680680
* kernel polling thread.
681681
*/
682-
int apparmor_uring_sqpoll(void)
682+
static int apparmor_uring_sqpoll(void)
683683
{
684684
struct aa_profile *profile;
685685
struct aa_label *label;

0 commit comments

Comments
 (0)