提交 0d37d26f 编写于 作者: C Colin Ian King 提交者: Paolo Bonzini

KVM: x86: MMU: make array audit_point_name static

The array audit_point_name is local to the source and does not need to
be in global scope, so make it static.

Cleans up sparse warning:
arch/x86/kvm/mmu_audit.c:22:12: warning: symbol 'audit_point_name' was
not declared. Should it be static?
Signed-off-by: NColin Ian King <colin.king@canonical.com>
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
上级 858ac87f
......@@ -19,7 +19,7 @@
#include <linux/ratelimit.h>
char const *audit_point_name[] = {
static char const *audit_point_name[] = {
"pre page fault",
"post page fault",
"pre pte write",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册