Re: [PATCH 11/19] UML - Track and make up lost ticks

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Nix
Date: Tuesday, April 29, 2008 - 11:54 am

On 25 Apr 2008, Jeff Dike stated, in part:

Yet, in arch/um/include/process.h, we see, unchanged since the year dot, the
obviously wrong prototype:

extern void alarm_handler(int sig, struct sigcontext sc);

Hence:

  CC      arch/um/os-Linux/time.o
arch/um/os-Linux/time.c: In function ‘deliver_alarm’:
arch/um/os-Linux/time.c:119: error: incompatible type for argument 2 of ‘alarm_handler’
make[1]: *** [arch/um/os-Linux/time.o] Error 1
make: *** [arch/um/os-Linux] Error 2

Fix trivial:

Signed-off-by: Nick Alcock <nix@esperi.org.uk>
-- 
Index: linux/arch/um/include/process.h
===================================================================
--- linux.orig/arch/um/include/process.h	2006-07-09 14:19:52.000000000 +0100
+++ linux/arch/um/include/process.h	2008-04-29 19:49:49.000000000 +0100
@@ -8,8 +8,8 @@
 
 #include <signal.h>
 
-extern void sig_handler(int sig, struct sigcontext sc);
-extern void alarm_handler(int sig, struct sigcontext sc);
+extern void sig_handler(int sig, struct sigcontext *sc);
+extern void alarm_handler(int sig, struct sigcontext *sc);
 
 #endif
 
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 11/19] UML - Track and make up lost ticks, Jeff Dike, (Fri Apr 25, 10:56 am)
Re: [PATCH 11/19] UML - Track and make up lost ticks, Nix, (Tue Apr 29, 11:54 am)
Re: [PATCH 11/19] UML - Track and make up lost ticks, Andrew Morton, (Tue May 6, 1:46 pm)