]> git.karo-electronics.de Git - linux-beck.git/commit
audit: fix build error when asm/syscall.h does not exist
authorEric Paris <eparis@redhat.com>
Tue, 22 Apr 2014 15:46:16 +0000 (11:46 -0400)
committerEric Paris <eparis@redhat.com>
Tue, 23 Sep 2014 20:21:27 +0000 (16:21 -0400)
commita9ebe0b98896b276a3a1664da5f40d3b7c92f316
treea365a82841037600434e88201708989eeb7aca07
parent84db564aad45774ab64375ee019d5e7a42675b1f
audit: fix build error when asm/syscall.h does not exist

avr32 does not have an asm/syscall.h file.  We need the
syscall_get_arch() definition from that file for all arch's which
support CONFIG_AUDITSYSCALL.  Obviously avr32 is not one of those
arch's.  Move the include inside the CONFIG_AUDITSYSCALL such that we
only do the include if we need the results.

When the syscall_get_arch() call is moved inside __audit_syscall_entry()
this include can be dropped entirely.  But that is going to require some
assembly changes on x86* in a patch that is not ready for the tree...

Reported-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
include/linux/audit.h