audit: change unnecessary globals into statics
authorJules Irenge <jbi.octave@gmail.com>
Mon, 3 Aug 2020 12:34:38 +0000 (13:34 +0100)
committerPaul Moore <paul@paul-moore.com>
Tue, 18 Aug 2020 00:26:58 +0000 (20:26 -0400)
commit6b87024f76bc755354c18116880dc3b632447cbd
tree485ac36840b728022b372b6c13af8c10cdd1513b
parent9123e3a74ec7b934a4a099e98af6a61c2f80bbf5
audit: change unnecessary globals into statics

Variables sig_pid, audit_sig_uid and audit_sig_sid
are only used in the audit.c file across the kernel
Hence it appears no reason for declaring them as globals
This patch removes their global declarations from the .h file
and change them into static in the .c file.

Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
kernel/audit.c
kernel/audit.h