Skip to contentSkip to conversation

cr: define CKPT_ARCH_NSIG for s390

PATCH In review Serge E. Hallyn 2 participants 2 messages Jun 26, 2009 – Jun 27, 2009 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cr: define CKPT_ARCH_NSIG for s390

Better?

From 5cb3dae3611cf9cf86ff9616dac7c36de8b812d1 Mon Sep 17 00:00:00 2001
From: Serge E. Hallyn <serue-r/[email protected]>
Date: Fri, 26 Jun 2009 15:06:43 -0400
Subject: [PATCH 1/1] cr: define CKPT_ARCH_NSIG for s390

Also add a check for x86 and s390 in the hopes of catching any changes to NSIG which don't update CKPT_ARCH_NSIG.

---
 arch/s390/include/asm/checkpoint_hdr.h |    8 ++++++++
 arch/x86/include/asm/checkpoint_hdr.h  |    6 ++++++
 2 files changed, 14 insertions(+), 0 deletions(-)
arch/s390/include/asm/checkpoint_hdr.h +8 -0
index fc0ace8..264a42c 100644
@@ -79,6 +79,14 @@ struct ckpt_hdr_mm_context {
 	unsigned long asce_limit;
 };
 
+#define CKPT_ARCH_NSIG  64
+#ifdef __KERNEL__
+#include <asm/signal.h>
+#if CKPT_ARCH_NSIG != _SIGCONTEXT_NSIG
+#error CKPT_ARCH_NSIG size is wrong (asm/sigcontext.h and asm/checkpoint_hdr.h)
+#endif
+#endif
+
 struct ckpt_hdr_header_arch {
 	struct ckpt_hdr h;
 };
arch/x86/include/asm/checkpoint_hdr.h +6 -0
index 745038b..21fb072 100644
@@ -45,6 +45,12 @@ enum {
 };
 
 #define CKPT_ARCH_NSIG  64
+#ifdef __KERNEL__
+#include <asm/signal.h>
+#if CKPT_ARCH_NSIG != NSIG
+#error CKPT_ARCH_NSIG size is wrong per asm/signal.h and asm/checkpoint_hdr.h
+#endif
+#endif
 
 struct ckpt_hdr_header_arch {
 	struct ckpt_hdr h;
Signature · 1 line
1.6.1

A message that is not in the archive (sent off-list or not yet received): 20090626190821.GA29506-r/[email protected]

Acked-by
#2 lore raw
Quoted 1 line · Serge E. Hallyn

Better?

Nice, added.

Quoted 11 lines

From 5cb3dae3611cf9cf86ff9616dac7c36de8b812d1 Mon Sep 17 00:00:00 2001
From: Serge E. Hallyn <serue-r/[email protected]>
Date: Fri, 26 Jun 2009 15:06:43 -0400
Subject: [PATCH 1/1] cr: define CKPT_ARCH_NSIG for s390

Also add a check for x86 and s390 in the hopes of catching any changes to NSIG which don't update CKPT_ARCH_NSIG.

---

Quoted 40 lines
 arch/s390/include/asm/checkpoint_hdr.h |    8 ++++++++
 arch/x86/include/asm/checkpoint_hdr.h  |    6 ++++++
 2 files changed, 14 insertions(+), 0 deletions(-)
arch/s390/include/asm/checkpoint_hdr.h +8 -0
index fc0ace8..264a42c 100644
@@ -79,6 +79,14 @@ struct ckpt_hdr_mm_context {
 	unsigned long asce_limit;
 };
 
+#define CKPT_ARCH_NSIG  64
+#ifdef __KERNEL__
+#include <asm/signal.h>
+#if CKPT_ARCH_NSIG != _SIGCONTEXT_NSIG
+#error CKPT_ARCH_NSIG size is wrong (asm/sigcontext.h and asm/checkpoint_hdr.h)
+#endif
+#endif
+
 struct ckpt_hdr_header_arch {
 	struct ckpt_hdr h;
 };
arch/x86/include/asm/checkpoint_hdr.h +6 -0
index 745038b..21fb072 100644
@@ -45,6 +45,12 @@ enum {
 };
 
 #define CKPT_ARCH_NSIG  64
+#ifdef __KERNEL__
+#include <asm/signal.h>
+#if CKPT_ARCH_NSIG != NSIG
+#error CKPT_ARCH_NSIG size is wrong per asm/signal.h and asm/checkpoint_hdr.h
+#endif
+#endif
 
 struct ckpt_hdr_header_arch {
 	struct ckpt_hdr h;