aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2012-09-14 06:59:47 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2012-09-26 09:45:21 -0400
commit66389e8583af71f8e01fab7c8e704a6b393663b9 (patch)
tree811b723053968ddfa1a8ab706f7e437bf4e7836b /arch/s390
parent1a0f24878eb5ca56dff5f20b9f0e716947dc0394 (diff)
s390/ptrace: add missing ifdef
if (MACHINE_HAS_TE) translates to if (0) on !CONFIG_64BIT however the compiler still warns about invalid shifts within non-reachable code. So add an explicit ifdef to get rid of this warning: arch/s390/kernel/ptrace.c: In function ‘update_per_regs’: arch/s390/kernel/ptrace.c:63:4: warning: left shift count >= width of type [enabled by default] arch/s390/kernel/ptrace.c:65:4: warning: left shift count >= width of type [enabled by default] Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/kernel/ptrace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/s390/kernel/ptrace.c b/arch/s390/kernel/ptrace.c
index b817cc5e49ae..a314c57f4e94 100644
--- a/arch/s390/kernel/ptrace.c
+++ b/arch/s390/kernel/ptrace.c
@@ -53,6 +53,7 @@ void update_per_regs(struct task_struct *task)
53 struct thread_struct *thread = &task->thread; 53 struct thread_struct *thread = &task->thread;
54 struct per_regs old, new; 54 struct per_regs old, new;
55 55
56#ifdef CONFIG_64BIT
56 /* Take care of the enable/disable of transactional execution. */ 57 /* Take care of the enable/disable of transactional execution. */
57 if (MACHINE_HAS_TE) { 58 if (MACHINE_HAS_TE) {
58 unsigned long cr0, cr0_new; 59 unsigned long cr0, cr0_new;
@@ -67,7 +68,7 @@ void update_per_regs(struct task_struct *task)
67 if (cr0 != cr0_new) 68 if (cr0 != cr0_new)
68 __ctl_load(cr0_new, 0, 0); 69 __ctl_load(cr0_new, 0, 0);
69 } 70 }
70 71#endif
71 /* Copy user specified PER registers */ 72 /* Copy user specified PER registers */
72 new.control = thread->per_user.control; 73 new.control = thread->per_user.control;
73 new.start = thread->per_user.start; 74 new.start = thread->per_user.start;