Skip to content

Commit

Permalink
[PATCH] asm/generic: fix bug - kernel fails to build when enable some…
Browse files Browse the repository at this point in the history
… 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 <[email protected]>
Signed-off-by: Bryan Wu <[email protected]>
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Mike Frysinger authored and Al Viro committed Dec 9, 2008
1 parent a64e649 commit 0b0c940
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/asm-generic/audit_write.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include <asm-generic/audit_dir_write.h>
__NR_acct,
#ifdef __NR_swapon
__NR_swapon,
#endif
__NR_quotactl,
__NR_truncate,
#ifdef __NR_truncate64
Expand Down

0 comments on commit 0b0c940

Please sign in to comment.