Skip to content

Commit 63037f7

Browse files
Yue Hutorvalds
authored andcommitted
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: Yue Hu <huyue2@yulong.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: Kees Cook <keescook@chromium.org> Link: http://lkml.kernel.org/r/20200724011516.12756-1-zbestahu@gmail.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 9d5b134 commit 63037f7

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

‎include/linux/kernel.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,6 @@ void panic(const char *fmt, ...) __noreturn __cold;
321321
void nmi_panic(struct pt_regs *regs, const char *msg);
322322
extern void oops_enter(void);
323323
extern void oops_exit(void);
324-
void print_oops_end_marker(void);
325324
extern bool oops_may_print(void);
326325
void do_exit(long error_code) __noreturn;
327326
void complete_and_exit(struct completion *, long) __noreturn;

‎kernel/panic.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ static int init_oops_id(void)
551551
}
552552
late_initcall(init_oops_id);
553553

554-
void print_oops_end_marker(void)
554+
static void print_oops_end_marker(void)
555555
{
556556
init_oops_id();
557557
pr_warn("---[ end trace %016llx ]---\n", (unsigned long long)oops_id);

0 commit comments

Comments
 (0)