linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: build failure after merge of the final tree (ptrace tree related)
@ 2011-08-23  6:03 Stephen Rothwell
  2011-08-23  9:06 ` Matt Fleming
  2011-08-24 15:16 ` Oleg Nesterov
  0 siblings, 2 replies; 3+ messages in thread
From: Stephen Rothwell @ 2011-08-23  6:03 UTC (permalink / raw)
  To: Tejun Heo, Oleg Nesterov
  Cc: linux-next, linux-kernel, Matt Fleming, David Miller

[-- Attachment #1: Type: text/plain, Size: 604 bytes --]

Hi all,

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

kernel/signal.c: In function 'block_sigmask':
kernel/signal.c:2333:26: error: 'SA_NODEFER' undeclared (first use in this function)

Caused by commit 932e5a25b9cf ("signal: Add block_sigmask() for adding
sigmask to current->blocked").  Sparc seems to use SA_NOMASK in the
equivalent bit of code and has no SA_NODEFER definition.

I discovered this after releasing linux-next today.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]

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

* Re: linux-next: build failure after merge of the final tree (ptrace tree related)
  2011-08-23  6:03 linux-next: build failure after merge of the final tree (ptrace tree related) Stephen Rothwell
@ 2011-08-23  9:06 ` Matt Fleming
  2011-08-24 15:16 ` Oleg Nesterov
  1 sibling, 0 replies; 3+ messages in thread
From: Matt Fleming @ 2011-08-23  9:06 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Tejun Heo, Oleg Nesterov, linux-next, linux-kernel, David Miller

On Tue, 2011-08-23 at 16:03 +1000, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the final tree, today's linux-next build (sparc64 defconfig)
> failed like this:
> 
> kernel/signal.c: In function 'block_sigmask':
> kernel/signal.c:2333:26: error: 'SA_NODEFER' undeclared (first use in this function)
> 
> Caused by commit 932e5a25b9cf ("signal: Add block_sigmask() for adding
> sigmask to current->blocked").  Sparc seems to use SA_NOMASK in the
> equivalent bit of code and has no SA_NODEFER definition.
> 
> I discovered this after releasing linux-next today.

Ouch, my bad. Thanks for the heads up Stephen!

Guys, how about this patch?

--------8<--------

>From 1358a0ab01b95344cd542e5139bc4865650fbf4e Mon Sep 17 00:00:00 2001
From: Matt Fleming <matt.fleming@intel.com>
Date: Tue, 23 Aug 2011 09:54:58 +0100
Subject: [PATCH] sparc: Make SA_NOMASK a synonym of SA_NODEFER

Unlike other architectures, sparc currently has no SA_NODEFER
definition but only the older SA_NOMASK. Since SA_NOMASK is the
historical name for SA_NODEFER, add SA_NODEFER and copy what other
architectures do by making SA_NOMASK a synonym for SA_NODEFER.

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
---
 arch/sparc/include/asm/signal.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/sparc/include/asm/signal.h b/arch/sparc/include/asm/signal.h
index e49b828..aa42fe3 100644
--- a/arch/sparc/include/asm/signal.h
+++ b/arch/sparc/include/asm/signal.h
@@ -143,10 +143,11 @@ struct sigstack {
 #define SA_ONSTACK	_SV_SSTACK
 #define SA_RESTART	_SV_INTR
 #define SA_ONESHOT	_SV_RESET
-#define SA_NOMASK	0x20u
+#define SA_NODEFER	0x20u
 #define SA_NOCLDWAIT    0x100u
 #define SA_SIGINFO      0x200u
 
+#define SA_NOMASK	SA_NODEFER
 
 #define SIG_BLOCK          0x01	/* for blocking signals */
 #define SIG_UNBLOCK        0x02	/* for unblocking signals */
-- 
1.7.4.4

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

* Re: linux-next: build failure after merge of the final tree (ptrace tree related)
  2011-08-23  6:03 linux-next: build failure after merge of the final tree (ptrace tree related) Stephen Rothwell
  2011-08-23  9:06 ` Matt Fleming
@ 2011-08-24 15:16 ` Oleg Nesterov
  1 sibling, 0 replies; 3+ messages in thread
From: Oleg Nesterov @ 2011-08-24 15:16 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Tejun Heo, linux-next, linux-kernel, Matt Fleming, David Miller

Hi Stephen,

sorry for delay.

On 08/23, Stephen Rothwell wrote:
> Hi all,
>
> After merging the final tree, today's linux-next build (sparc64 defconfig)
> failed like this:
>
> kernel/signal.c: In function 'block_sigmask':
> kernel/signal.c:2333:26: error: 'SA_NODEFER' undeclared (first use in this function)
>
> Caused by commit 932e5a25b9cf ("signal: Add block_sigmask() for adding
> sigmask to current->blocked").

Yes. My bad. I've reset this commit.

> Sparc seems to use SA_NOMASK in the
> equivalent bit of code and has no SA_NODEFER definition.

Yes, I'll push the updated patch(es).


Thanks!

Oleg.

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

end of thread, other threads:[~2011-08-24 15:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-23  6:03 linux-next: build failure after merge of the final tree (ptrace tree related) Stephen Rothwell
2011-08-23  9:06 ` Matt Fleming
2011-08-24 15:16 ` Oleg Nesterov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).