Commit 63037f74 authored by Yue Hu's avatar Yue Hu Committed by Linus Torvalds

panic: make print_oops_end_marker() static

Since print_oops_end_marker() is not used externally, also remove it in
kernel.h at the same time.
Signed-off-by: default avatarYue Hu <huyue2@yulong.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Cc: Kees Cook <keescook@chromium.org>
Link: http://lkml.kernel.org/r/20200724011516.12756-1-zbestahu@gmail.comSigned-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 9d5b134f
...@@ -321,7 +321,6 @@ void panic(const char *fmt, ...) __noreturn __cold; ...@@ -321,7 +321,6 @@ void panic(const char *fmt, ...) __noreturn __cold;
void nmi_panic(struct pt_regs *regs, const char *msg); void nmi_panic(struct pt_regs *regs, const char *msg);
extern void oops_enter(void); extern void oops_enter(void);
extern void oops_exit(void); extern void oops_exit(void);
void print_oops_end_marker(void);
extern bool oops_may_print(void); extern bool oops_may_print(void);
void do_exit(long error_code) __noreturn; void do_exit(long error_code) __noreturn;
void complete_and_exit(struct completion *, long) __noreturn; void complete_and_exit(struct completion *, long) __noreturn;
......
...@@ -551,7 +551,7 @@ static int init_oops_id(void) ...@@ -551,7 +551,7 @@ static int init_oops_id(void)
} }
late_initcall(init_oops_id); late_initcall(init_oops_id);
void print_oops_end_marker(void) static void print_oops_end_marker(void)
{ {
init_oops_id(); init_oops_id();
pr_warn("---[ end trace %016llx ]---\n", (unsigned long long)oops_id); pr_warn("---[ end trace %016llx ]---\n", (unsigned long long)oops_id);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment