All of lore.kernel.org
 help / color / mirror / Atom feed
* linux-next: build failure after merge of the security tree
@ 2017-08-23 11:12 Stephen Rothwell
  2017-08-23 19:21 ` [PATCH] apparmor: fix build failure on sparc caused by undeclared, signals John Johansen
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Rothwell @ 2017-08-23 11:12 UTC (permalink / raw)
  To: James Morris
  Cc: Linux-Next Mailing List, Linux Kernel Mailing List, John Johansen

Hi James,

After merging the security tree, today's linux-next build (sparc64
allmodconfig) failed like this:

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')

Caused by commit

  c6bf1adaecaa ("apparmor: add the ability to mediate signals")

-- 
Cheers,
Stephen Rothwell

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] apparmor: fix build failure on sparc caused by undeclared, signals
  2017-08-23 11:12 linux-next: build failure after merge of the security tree Stephen Rothwell
@ 2017-08-23 19:21 ` John Johansen
  2017-08-23 23:54   ` Stephen Rothwell
  2017-08-24  1:16   ` James Morris
  0 siblings, 2 replies; 4+ messages in thread
From: John Johansen @ 2017-08-23 19:21 UTC (permalink / raw)
  To: Stephen Rothwell, James Morris
  Cc: Linux-Next Mailing List, Linux Kernel Mailing List


  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@canb.auug.org.au>
Fixes: c6bf1adaecaa ("apparmor: add the ability to mediate signals")
Signed-off-by: John Johansen <john.johansen@canonical.com>
---
 security/apparmor/include/sig_names.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/security/apparmor/include/sig_names.h b/security/apparmor/include/sig_names.h
index 0d4395f231ca..92e62fe95292 100644
--- a/security/apparmor/include/sig_names.h
+++ b/security/apparmor/include/sig_names.h
@@ -23,7 +23,9 @@ static const int sig_map[MAXMAPPED_SIG] = {
 	[SIGPIPE] = 13,
 	[SIGALRM] = 14,
 	[SIGTERM] = 15,
+#ifdef SIGSTKFLT
 	[SIGSTKFLT] = 16,	/* -, 16, - */
+#endif
 	[SIGCHLD] = 17,		/* 20, 17, 18.  SIGCHLD -, -, 18 */
 	[SIGCONT] = 18,		/* 19, 18, 25 */
 	[SIGSTOP] = 19,		/* 17, 19, 23 */
@@ -47,7 +49,8 @@ static const int sig_map[MAXMAPPED_SIG] = {
 #if defined(SIGLOST) && SIGPWR != SIGLOST		/* sparc */
 	[SIGLOST] = 33,		/* unused on Linux */
 #endif
-#if defined(SIGLOST) && defined(SIGSYS) && SIGLOST != SIGSYS
+#if defined(SIGUNUSED) && \
+    defined(SIGLOST) && defined(SIGSYS) && SIGLOST != SIGSYS
 	[SIGUNUSED] = 34,	/* -, 31, - */
 #endif
 };
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] apparmor: fix build failure on sparc caused by undeclared, signals
  2017-08-23 19:21 ` [PATCH] apparmor: fix build failure on sparc caused by undeclared, signals John Johansen
@ 2017-08-23 23:54   ` Stephen Rothwell
  2017-08-24  1:16   ` James Morris
  1 sibling, 0 replies; 4+ messages in thread
From: Stephen Rothwell @ 2017-08-23 23:54 UTC (permalink / raw)
  To: John Johansen
  Cc: James Morris, Linux-Next Mailing List, Linux Kernel Mailing List

Hi John,

On Wed, 23 Aug 2017 12:21:43 -0700 John Johansen <john.johansen@canonical.com> 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@canb.auug.org.au>
> Fixes: c6bf1adaecaa ("apparmor: add the ability to mediate signals")
> Signed-off-by: John Johansen <john.johansen@canonical.com>

I will apply this to linux-next today and will drop it when James picks
it up.

-- 
Cheers,
Stephen Rothwell

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] apparmor: fix build failure on sparc caused by undeclared, signals
  2017-08-23 19:21 ` [PATCH] apparmor: fix build failure on sparc caused by undeclared, signals John Johansen
  2017-08-23 23:54   ` Stephen Rothwell
@ 2017-08-24  1:16   ` James Morris
  1 sibling, 0 replies; 4+ messages in thread
From: James Morris @ 2017-08-24  1:16 UTC (permalink / raw)
  To: John Johansen
  Cc: Stephen Rothwell, Linux-Next Mailing List, Linux Kernel Mailing List

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@canb.auug.org.au>
> Fixes: c6bf1adaecaa ("apparmor: add the ability to mediate signals")
> Signed-off-by: John Johansen <john.johansen@canonical.com>
> ---
>  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@namei.org>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-08-24  1:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-23 11:12 linux-next: build failure after merge of the security tree Stephen Rothwell
2017-08-23 19:21 ` [PATCH] apparmor: fix build failure on sparc caused by undeclared, signals John Johansen
2017-08-23 23:54   ` Stephen Rothwell
2017-08-24  1:16   ` James Morris

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.