audit: define AUDIT_ARCH_OPENRISC
authorKees Cook <keescook@chromium.org>
Thu, 20 Sep 2012 22:46:06 +0000 (15:46 -0700)
committerJonas Bonn <jonas@southpole.se>
Fri, 21 Sep 2012 06:09:54 +0000 (08:09 +0200)
commite2bebb4ae6d9ac4ffc524db67f7ecb205a173f77
treed34c284f1e0a78cfd1eb01d339f6ebb2529a32ea
parent807607f79b9d0ed81561746e4e1121905e75cf0f
audit: define AUDIT_ARCH_OPENRISC

When using audit on OpenRISC, an audit arch is needed. This defines
it and fixes a compile-time bug uncovered in linux-next, likely from a
cut/paste from an arch with 64/32-bit modes that defined arch_arch():
arch/openrisc/kernel/ptrace.c:190:2: error: implicit declaration of function 'audit_arch'

This replaces it with the newly defined AUDIT_ARCH_OPENRISC, since it
is only 32-bit, and currently only operates in big-endian mode.

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Jonas Bonn <jonas@southpole.se>
arch/openrisc/kernel/ptrace.c
include/linux/audit.h
This page took 0.02717 seconds and 5 git commands to generate.