Skip to content

Commit c14e1a1

Browse files
headers_check fix: mn10300, ptrace.h
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 <[email protected]>
1 parent 44b7532 commit c14e1a1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

arch/mn10300/include/asm/ptrace.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ struct pt_regs {
7777
};
7878
#endif
7979

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

9189
#if defined(__KERNEL__)
9290

91+
extern struct pt_regs *__frame; /* current frame pointer */
92+
9393
#if !defined(__ASSEMBLY__)
9494
struct task_struct;
9595

@@ -107,5 +107,4 @@ extern void user_disable_single_step(struct task_struct *);
107107
#define profile_pc(regs) ((regs)->pc)
108108

109109
#endif /* __KERNEL__ */
110-
111110
#endif /* _ASM_PTRACE_H */

0 commit comments

Comments
 (0)