[PATCH] asm/generic: fix bug - kernel fails to build when enable some common audit...
authorMike Frysinger <vapier.adi@gmail.com>
Tue, 18 Nov 2008 07:03:49 +0000 (15:03 +0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 9 Dec 2008 07:27:39 +0000 (02:27 -0500)
commit0b0c940a91f8e6fd0e1be3e01d5e98997446233b
tree1d2244b671b8ec91450af2d6bc97c86c4c7eb1f4
parenta64e64944f4b8ce3288519555dbaa0232414b8ac
[PATCH] asm/generic: fix bug - kernel fails to build when enable some common audit code on Blackfin

If you enable some common audit code, the kernel fails to build.

In file included from lib/audit.c:17:
include/asm-generic/audit_write.h:3: error: '__NR_swapon' undeclared here (not in a function)
make[1]: *** [lib/audit.o] Error 1
make: *** [lib] Error 2

So do not use __NR_swapon if it isnt defined for a port.

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/asm-generic/audit_write.h