public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] s390: Expose a constant for the number of words representing the CRs
@ 2009-03-05 16:48 Dan Smith
  2009-03-05 16:54 ` Dan Smith
  0 siblings, 1 reply; 7+ messages in thread
From: Dan Smith @ 2009-03-05 16:48 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-s390

We need to use this value in the checkpoint/restart code and would like to
have a constant instead of a magic '3'.

Changelog:
    Mar 03:
            . Picked up additional use of magic '3' in ptrace.h

Signed-off-by: Dan Smith <danms@us.ibm.com>
Cc: linux-s390@vger.kernel.org
---
 arch/s390/include/asm/ptrace.h   |    4 +++-
 arch/s390/kernel/compat_ptrace.h |    3 ++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/arch/s390/include/asm/ptrace.h b/arch/s390/include/asm/ptrace.h
index 8920025..f1b0516 100644
--- a/arch/s390/include/asm/ptrace.h
+++ b/arch/s390/include/asm/ptrace.h
@@ -172,6 +172,8 @@
 #define NUM_CRS		16
 #define NUM_ACRS	16
 
+#define NUM_CR_WORDS	3
+
 #define FPR_SIZE	8
 #define FPC_SIZE	4
 #define FPC_PAD_SIZE	4 /* gcc insists on aligning the fpregs */
@@ -334,7 +336,7 @@ struct pt_regs
  */
 typedef struct
 {
-	unsigned long cr[3];
+	unsigned long cr[NUM_CR_WORDS];
 } per_cr_words;
 
 #define PER_EM_MASK 0xE8000000UL
diff --git a/arch/s390/kernel/compat_ptrace.h b/arch/s390/kernel/compat_ptrace.h
index a2be3a9..123dd66 100644
--- a/arch/s390/kernel/compat_ptrace.h
+++ b/arch/s390/kernel/compat_ptrace.h
@@ -1,10 +1,11 @@
 #ifndef _PTRACE32_H
 #define _PTRACE32_H
 
+#include <asm/ptrace.h>    /* needed for NUM_CR_WORDS */
 #include "compat_linux.h"  /* needed for psw_compat_t */
 
 typedef struct {
-	__u32 cr[3];
+	__u32 cr[NUM_CR_WORDS];
 } per_cr_words32;
 
 typedef struct {
-- 
1.6.1


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

* Re: [PATCH] s390: Expose a constant for the number of words representing the CRs
  2009-03-05 16:48 [PATCH] s390: Expose a constant for the number of words representing the CRs Dan Smith
@ 2009-03-05 16:54 ` Dan Smith
  2009-03-05 19:35   ` Martin Schwidefsky
  0 siblings, 1 reply; 7+ messages in thread
From: Dan Smith @ 2009-03-05 16:54 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-s390

DS> We need to use this value in the checkpoint/restart code and would
DS> like to have a constant instead of a magic '3'.

DS> Changelog:
DS>     Mar 03:
DS>             . Picked up additional use of magic '3' in ptrace.h

DS> Signed-off-by: Dan Smith <danms@us.ibm.com>
DS> Cc: linux-s390@vger.kernel.org
DS> ---
DS>  arch/s390/include/asm/ptrace.h   |    4 +++-
DS>  arch/s390/kernel/compat_ptrace.h |    3 ++-
DS>  2 files changed, 5 insertions(+), 2 deletions(-)

If there aren't any objections to this patch, can it get picked up?

Thanks!

-- 
Dan Smith
IBM Linux Technology Center
email: danms@us.ibm.com


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

* Re: [PATCH] s390: Expose a constant for the number of words representing the CRs
  2009-03-05 16:54 ` Dan Smith
@ 2009-03-05 19:35   ` Martin Schwidefsky
  2009-03-05 20:01     ` Dan Smith
  0 siblings, 1 reply; 7+ messages in thread
From: Martin Schwidefsky @ 2009-03-05 19:35 UTC (permalink / raw)
  To: Dan Smith; +Cc: linux-kernel, linux-s390

On Thu, 05 Mar 2009 08:54:11 -0800
Dan Smith <danms@us.ibm.com> wrote:

> If there aren't any objections to this patch, can it get picked up?

Have you looked at git390 lately ?

-- 
-- 
blue skies,
   Martin.

"Reality continues to ruin my life." - Calvin.


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

* Re: [PATCH] s390: Expose a constant for the number of words representing the CRs
  2009-03-05 19:35   ` Martin Schwidefsky
@ 2009-03-05 20:01     ` Dan Smith
  2009-03-05 21:09       ` Martin Schwidefsky
  0 siblings, 1 reply; 7+ messages in thread
From: Dan Smith @ 2009-03-05 20:01 UTC (permalink / raw)
  To: Martin Schwidefsky; +Cc: linux-kernel, linux-s390

MS> Have you looked at git390 lately ?

Yes.  My patch still applies cleanly there.  What am I missing?

-- 
Dan Smith
IBM Linux Technology Center
email: danms@us.ibm.com


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

* Re: [PATCH] s390: Expose a constant for the number of words representing the CRs
  2009-03-05 20:01     ` Dan Smith
@ 2009-03-05 21:09       ` Martin Schwidefsky
  2009-03-05 21:15         ` Dan Smith
  0 siblings, 1 reply; 7+ messages in thread
From: Martin Schwidefsky @ 2009-03-05 21:09 UTC (permalink / raw)
  To: Dan Smith; +Cc: linux-kernel, linux-s390

On Thu, 05 Mar 2009 12:01:11 -0800
Dan Smith <danms@us.ibm.com> wrote:

> MS> Have you looked at git390 lately ?
> 
> Yes.  My patch still applies cleanly there.  What am I missing?

You need to look at the correct branch:

http://git390.marist.edu/cgi-bin/gitweb.cgi?p=linux-2.6.git;a=shortlog;h=refs/heads/features

The feature branch which contains the patches for the next merge window
contains your patch. I've added it a few weeks ago, but I might have
forgotten to drop you a note that I did so.

-- 
blue skies,
   Martin.

"Reality continues to ruin my life." - Calvin.


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

* Re: [PATCH] s390: Expose a constant for the number of words representing the CRs
  2009-03-05 21:09       ` Martin Schwidefsky
@ 2009-03-05 21:15         ` Dan Smith
  2009-03-07 21:10           ` Martin Schwidefsky
  0 siblings, 1 reply; 7+ messages in thread
From: Dan Smith @ 2009-03-05 21:15 UTC (permalink / raw)
  To: Martin Schwidefsky; +Cc: linux-kernel, linux-s390

MS> The feature branch which contains the patches for the next merge
MS> window contains your patch. I've added it a few weeks ago, but I
MS> might have forgotten to drop you a note that I did so.

Ah, yeah, I never heard anything :)

The patch I sent earlier to day has been updated to catch another use
of the magic '3'.  Can we replace the old with the new in that branch?

Thanks Martin!

-- 
Dan Smith
IBM Linux Technology Center
email: danms@us.ibm.com


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

* Re: [PATCH] s390: Expose a constant for the number of words representing the CRs
  2009-03-05 21:15         ` Dan Smith
@ 2009-03-07 21:10           ` Martin Schwidefsky
  0 siblings, 0 replies; 7+ messages in thread
From: Martin Schwidefsky @ 2009-03-07 21:10 UTC (permalink / raw)
  To: Dan Smith; +Cc: linux-kernel, linux-s390

On Thu, 05 Mar 2009 13:15:47 -0800
Dan Smith <danms@us.ibm.com> wrote:

> MS> The feature branch which contains the patches for the next merge
> MS> window contains your patch. I've added it a few weeks ago, but I
> MS> might have forgotten to drop you a note that I did so.
> 
> Ah, yeah, I never heard anything :)
> 
> The patch I sent earlier to day has been updated to catch another use
> of the magic '3'.  Can we replace the old with the new in that branch?

Sure, I've added the new one to my patch set.

-- 
blue skies,
   Martin.

"Reality continues to ruin my life." - Calvin.


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

end of thread, other threads:[~2009-03-07 21:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-05 16:48 [PATCH] s390: Expose a constant for the number of words representing the CRs Dan Smith
2009-03-05 16:54 ` Dan Smith
2009-03-05 19:35   ` Martin Schwidefsky
2009-03-05 20:01     ` Dan Smith
2009-03-05 21:09       ` Martin Schwidefsky
2009-03-05 21:15         ` Dan Smith
2009-03-07 21:10           ` Martin Schwidefsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox