asm-generic/siginfo.h: update NSIGTRAP definition
authorAndi Kleen <andi@firstfloor.org>
Mon, 13 Apr 2009 21:39:56 +0000 (14:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 13 Apr 2009 22:04:30 +0000 (15:04 -0700)
Impact: (nearly) trivial

The patch

commit da654b74bda14c45a7d98c731bf3c1a43b6b74e2
Author: Srinivasa Ds <srinivasa@in.ibm.com>
Date:   Tue Sep 23 15:23:52 2008 +0530

    signals: demultiplexing SIGTRAP signal

forgot to update the NSIGTRAP define in asm-generic/siginfo.h to the new
number of sigtrap subcodes.  Nothing in the tree seems to use it, but
presumably something in user space might.  So update it.

Cc: Srinivasa Ds <srinivasa@in.ibm.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-generic/siginfo.h

index 35752dadd6dfb5472d6dbf3edead6e1e75ba6a96..c840719a8c595cea463df2113d4934e6ff2a0ff8 100644 (file)
@@ -201,7 +201,7 @@ typedef struct siginfo {
 #define TRAP_TRACE     (__SI_FAULT|2)  /* process trace trap */
 #define TRAP_BRANCH     (__SI_FAULT|3)  /* process taken branch trap */
 #define TRAP_HWBKPT     (__SI_FAULT|4)  /* hardware breakpoint/watchpoint */
-#define NSIGTRAP       2
+#define NSIGTRAP       4
 
 /*
  * SIGCHLD si_codes