include/asm-v850/unistd.h: "extern inline" -> "static inline"
PATCH 1/1 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 <[email protected]>
---
include/asm-v850/unistd.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-)
include/asm-v850/unistd.h renamed from include/asm-v850/unistd.h.old +11 -11
@@ -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_twait (int * wait_stat) +static inline pid_twait (int * wait_stat) {return waitpid (-1 , wait_stat,0 ); }