Re: [PATCH] apparmor: fix build failure on sparc caused by undeclared, signals

From: James Morris
Date: Wed Aug 23 2017 - 21:16:51 EST


On Wed, 23 Aug 2017, John Johansen wrote:

>
> In file included from security/apparmor/ipc.c:23:0:
> security/apparmor/include/sig_names.h:26:3: error: 'SIGSTKFLT' undeclared here (not in a function)
> [SIGSTKFLT] = 16, /* -, 16, - */
> ^
> security/apparmor/include/sig_names.h:26:3: error: array index in initializer not of integer type
> security/apparmor/include/sig_names.h:26:3: note: (near initialization for 'sig_map')
> security/apparmor/include/sig_names.h:51:3: error: 'SIGUNUSED' undeclared here (not in a function)
> [SIGUNUSED] = 34, /* -, 31, - */
> ^
> security/apparmor/include/sig_names.h:51:3: error: array index in initializer not of integer type
> security/apparmor/include/sig_names.h:51:3: note: (near initialization for 'sig_map')
>
> Reported-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
> Fixes: c6bf1adaecaa ("apparmor: add the ability to mediate signals")
> Signed-off-by: John Johansen <john.johansen@xxxxxxxxxxxxx>
> ---
> security/apparmor/include/sig_names.h | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)

Applied to
git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git next


--
James Morris
<jmorris@xxxxxxxxx>