lkml.org 
[lkml]   [2012]   [Nov]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 54/58] linux/syscalls.h: Include asm/syscalls.h for additional prototypes
    Date
    include/linux/syscalls.h has prototypes for most syscalls, but other
    prototypes appear in the corresponding asm/syscalls.h instead. Include
    the latter in the former, giving include/linux/syscalls.h a more
    complete set of syscall prototypes. This eliminates warnings from GCC
    (-Wmissing-prototypes) and Sparse (-Wdecl).

    fs/exec.c:1667:2: warning: no previous prototype for ‘sys_execve’ [-Wmissing-prototypes]

    Signed-off-by: Josh Triplett <josh@joshtriplett.org>
    ---
    include/linux/syscalls.h | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h
    index 4ec00c1..2052f03 100644
    --- a/include/linux/syscalls.h
    +++ b/include/linux/syscalls.h
    @@ -76,6 +76,7 @@ struct file_handle;
    #include <linux/quota.h>
    #include <linux/key.h>
    #include <trace/syscall.h>
    +#include <asm/syscalls.h>

    #define __SC_DECL1(t1, a1) t1 a1
    #define __SC_DECL2(t2, a2, ...) t2 a2, __SC_DECL1(__VA_ARGS__)
    --
    1.7.10.4
    --
    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/

    \
     
     \ /
      Last update: 2012-11-19 07:22    [W:4.090 / U:0.144 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site