[<prev] [next>] [day] [month] [year] [list]
Message-Id: <200702071947.l17Jlo57006625@ccure.user-mode-linux.org>
Date: Wed, 07 Feb 2007 14:47:50 -0500
From: Jeff Dike <jdike@...toit.com>
To: akpm@...l.org
cc: linux-kernel@...r.kernel.org,
user-mode-linux-devel@...ts.sourceforge.net
Subject: [PATCH 6/7] UML - register handling formatting fixes
Formatting fixes in the register handling code.
Signed-off-by: Jeff Dike <jdike@...toit.com>
--
arch/um/os-Linux/sys-i386/registers.c | 14 +++++++-------
arch/um/os-Linux/sys-x86_64/registers.c | 6 +++---
2 files changed, 10 insertions(+), 10 deletions(-)
Index: linux-2.6.18-mm/arch/um/os-Linux/sys-i386/registers.c
===================================================================
--- linux-2.6.18-mm.orig/arch/um/os-Linux/sys-i386/registers.c 2007-01-09 15:17:55.000000000 -0500
+++ linux-2.6.18-mm/arch/um/os-Linux/sys-i386/registers.c 2007-01-09 15:45:22.000000000 -0500
@@ -34,27 +34,27 @@ void init_thread_registers(union uml_pt_
int save_fp_registers(int pid, unsigned long *fp_regs)
{
if(ptrace(PTRACE_GETFPREGS, pid, 0, fp_regs) < 0)
- return(-errno);
- return(0);
+ return -errno;
+ return 0;
}
int restore_fp_registers(int pid, unsigned long *fp_regs)
{
if(ptrace(PTRACE_SETFPREGS, pid, 0, fp_regs) < 0)
- return(-errno);
- return(0);
+ return -errno;
+ return 0;
}
static int move_registers(int pid, int int_op, union uml_pt_regs *regs,
int fp_op, unsigned long *fp_regs)
{
if(ptrace(int_op, pid, 0, regs->skas.regs) < 0)
- return(-errno);
+ return -errno;
if(ptrace(fp_op, pid, 0, fp_regs) < 0)
- return(-errno);
+ return -errno;
- return(0);
+ return 0;
}
void save_registers(int pid, union uml_pt_regs *regs)
Index: linux-2.6.18-mm/arch/um/os-Linux/sys-x86_64/registers.c
===================================================================
--- linux-2.6.18-mm.orig/arch/um/os-Linux/sys-x86_64/registers.c 2007-01-09 15:17:53.000000000 -0500
+++ linux-2.6.18-mm/arch/um/os-Linux/sys-x86_64/registers.c 2007-01-09 15:45:22.000000000 -0500
@@ -27,12 +27,12 @@ static int move_registers(int pid, int i
union uml_pt_regs *regs)
{
if(ptrace(int_op, pid, 0, regs->skas.regs) < 0)
- return(-errno);
+ return -errno;
if(ptrace(fp_op, pid, 0, regs->skas.fp) < 0)
- return(-errno);
+ return -errno;
- return(0);
+ return 0;
}
void save_registers(int pid, union uml_pt_regs *regs)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists