cr: define CKPT_ARCH_NSIG for s390
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
@@ -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
@@ -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]
Oren Laadan
Acked-byQuoted 1 line · Serge E. Hallyn
Better?
Nice, added.
Quoted 11 lines
From
5cb3dae3611cf9cf86ff9616dac7c36de8b812d1Mon 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: defineCKPT_ARCH_NSIGfor s390Also add a check for x86 and s390 in the hopes of catching any changes to NSIG which don't update
CKPT_ARCH_NSIG.Signed-off-by Serge E. Hallyn <serue-r/[email protected]>---
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@@ -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@@ -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;