• Alex Shi's avatar
    audit: fix macros warnings · ba59eae7
    Alex Shi authored
    Some unused macros could cause gcc warning:
    kernel/audit.c:68:0: warning: macro "AUDIT_UNINITIALIZED" is not used
    [-Wunused-macros]
    kernel/auditsc.c:104:0: warning: macro "AUDIT_AUX_IPCPERM" is not used
    [-Wunused-macros]
    kernel/auditsc.c:82:0: warning: macro "AUDITSC_INVALID" is not used
    [-Wunused-macros]
    
    AUDIT_UNINITIALIZED and AUDITSC_INVALID are still meaningful and should
    be in incorporated.
    
    Just remove AUDIT_AUX_IPCPERM.
    
    Thanks comments from Richard Guy Briggs and Paul Moore.
    Signed-off-by: default avatarAlex Shi <alex.shi@linux.alibaba.com>
    Cc: Paul Moore <paul@paul-moore.com>
    Cc: Richard Guy Briggs <rgb@redhat.com>
    Cc: Eric Paris <eparis@redhat.com>
    Cc: linux-audit@redhat.com
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
    ba59eae7
audit.c 63.5 KB