OSDN Git Service

Yama: mark local symbols as static
authorJann Horn <jannh@google.com>
Thu, 28 Mar 2019 00:21:42 +0000 (17:21 -0700)
committerJames Morris <james.morris@microsoft.com>
Thu, 28 Mar 2019 17:02:29 +0000 (10:02 -0700)
commit1aa176ef5a451adc0546d5aaa3fb107975c786b7
treebd146382cca05e6425d796141ed6b7c814486a2a
parent8c7ae38d1ce12a0eaeba655df8562552b3596c7f
Yama: mark local symbols as static

sparse complains that Yama defines functions and a variable as non-static
even though they don't exist in any header. Fix it by making them static.

Co-developed-by: Mukesh Ojha <mojha@codeaurora.org>
Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
Signed-off-by: Jann Horn <jannh@google.com>
[kees: merged similar static-ness fixes into a single patch]
Link: https://lkml.kernel.org/r/20190326230841.87834-1-jannh@google.com
Link: https://lkml.kernel.org/r/1553673018-19234-1-git-send-email-mojha@codeaurora.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: James Morris <james.morris@microsoft.com>
security/yama/yama_lsm.c