lkml.org 
[lkml]   [2009]   [Jun]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 5/6] headers_check fix: mn10300, ptrace.h
    From
    Date

    fix the following 'make headers_check' warning:

    usr/include/asm-mn10300/ptrace.h:80: extern's make no sense in userspace

    Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
    ---
    arch/mn10300/include/asm/ptrace.h | 5 ++---
    1 files changed, 2 insertions(+), 3 deletions(-)

    diff --git a/arch/mn10300/include/asm/ptrace.h b/arch/mn10300/include/asm/ptrace.h
    index 7b06cc6..00aa680 100644
    --- a/arch/mn10300/include/asm/ptrace.h
    +++ b/arch/mn10300/include/asm/ptrace.h
    @@ -77,8 +77,6 @@ struct pt_regs {
    };
    #endif

    -extern struct pt_regs *__frame; /* current frame pointer */
    -
    /* Arbitrarily choose the same ptrace numbers as used by the Sparc code. */
    #define PTRACE_GETREGS 12
    #define PTRACE_SETREGS 13
    @@ -90,6 +88,8 @@ extern struct pt_regs *__frame; /* current frame pointer */

    #if defined(__KERNEL__)

    +extern struct pt_regs *__frame; /* current frame pointer */
    +
    #if !defined(__ASSEMBLY__)
    #define user_mode(regs) (((regs)->epsw & EPSW_nSL) == EPSW_nSL)
    #define instruction_pointer(regs) ((regs)->pc)
    @@ -99,5 +99,4 @@ extern void show_regs(struct pt_regs *);
    #define profile_pc(regs) ((regs)->pc)

    #endif /* __KERNEL__ */
    -
    #endif /* _ASM_PTRACE_H */
    --
    1.6.0.6




    \
     
     \ /
      Last update: 2009-06-04 14:49    [W:0.050 / U:30.100 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site