* [2.6 patch] include/asm-v850/unistd.h: "extern inline" -> "static inline"
@ 2006-08-21 11:00 Adrian Bunk
0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2006-08-21 11:00 UTC (permalink / raw)
To: uclinux-v850; +Cc: linux-kernel
"extern inline" generates a warning with -Wmissing-prototypes and I'm
currently working on getting the kernel cleaned up for adding this to
the CFLAGS since it will help us to avoid a nasty class of runtime
errors.
If there are places that really need a forced inline, __always_inline
would be the correct solution.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
include/asm-v850/unistd.h | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
--- linux-2.6.18-rc4-mm1/include/asm-v850/unistd.h.old 2006-08-13 23:30:20.000000000 +0200
+++ linux-2.6.18-rc4-mm1/include/asm-v850/unistd.h 2006-08-13 23:30:27.000000000 +0200
@@ -405,18 +405,18 @@
* some others too.
*/
#define __NR__exit __NR_exit
-extern inline _syscall0(pid_t,setsid)
-extern inline _syscall3(int,write,int,fd,const char *,buf,off_t,count)
-extern inline _syscall3(int,read,int,fd,char *,buf,off_t,count)
-extern inline _syscall3(off_t,lseek,int,fd,off_t,offset,int,count)
-extern inline _syscall1(int,dup,int,fd)
-extern inline _syscall3(int,execve,const char *,file,char **,argv,char **,envp)
-extern inline _syscall3(int,open,const char *,file,int,flag,int,mode)
-extern inline _syscall1(int,close,int,fd)
-extern inline _syscall1(int,_exit,int,exitcode)
-extern inline _syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options)
+static inline _syscall0(pid_t,setsid)
+static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count)
+static inline _syscall3(int,read,int,fd,char *,buf,off_t,count)
+static inline _syscall3(off_t,lseek,int,fd,off_t,offset,int,count)
+static inline _syscall1(int,dup,int,fd)
+static inline _syscall3(int,execve,const char *,file,char **,argv,char **,envp)
+static inline _syscall3(int,open,const char *,file,int,flag,int,mode)
+static inline _syscall1(int,close,int,fd)
+static inline _syscall1(int,_exit,int,exitcode)
+static inline _syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options)
-extern inline pid_t wait(int * wait_stat)
+static inline pid_t wait(int * wait_stat)
{
return waitpid (-1, wait_stat, 0);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-08-21 11:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-21 11:00 [2.6 patch] include/asm-v850/unistd.h: "extern inline" -> "static inline" Adrian Bunk
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.