KVM: x86: MMU: make array audit_point_name static
authorColin Ian King <colin.king@canonical.com>
Thu, 30 Nov 2017 12:04:22 +0000 (12:04 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 14 Dec 2017 08:26:41 +0000 (09:26 +0100)
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: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu_audit.c

index d22ddbdf5e6ed5bdab10fc73445f88542d38143a..1272861e77b9ec9868ea3b3f640a962d3cb18631 100644 (file)
@@ -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",