Commit 79076e12 authored by Tiezhu Yang's avatar Tiezhu Yang Committed by Linus Torvalds

kernel/panic.c: make oops_may_print() return bool

The return value of oops_may_print() is true or false, so change its type
to reflect that.
Signed-off-by: default avatarTiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Reviewed-by: default avatarKees Cook <keescook@chromium.org>
Cc: Xuefeng Li <lixuefeng@loongson.cn>
Link: http://lkml.kernel.org/r/1591103358-32087-1-git-send-email-yangtiezhu@loongson.cnSigned-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent d7137549
...@@ -322,7 +322,7 @@ void nmi_panic(struct pt_regs *regs, const char *msg); ...@@ -322,7 +322,7 @@ 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); void print_oops_end_marker(void);
extern int 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;
......
...@@ -505,7 +505,7 @@ static void do_oops_enter_exit(void) ...@@ -505,7 +505,7 @@ static void do_oops_enter_exit(void)
* Return true if the calling CPU is allowed to print oops-related info. * Return true if the calling CPU is allowed to print oops-related info.
* This is a bit racy.. * This is a bit racy..
*/ */
int oops_may_print(void) bool oops_may_print(void)
{ {
return pause_on_oops_flag == 0; return pause_on_oops_flag == 0;
} }
......
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