Messages in this thread Patch in this message | | | Date | Mon, 21 Aug 2006 13:00:44 +0200 | From | Adrian Bunk <> | Subject | [2.6 patch] include/asm-v850/unistd.h: "extern inline" -> "static inline" |
| |
"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); } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |