diff options
author | Tiezhu Yang <yangtiezhu@loongson.cn> | 2020-08-12 03:36:46 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-08-12 19:58:01 +0200 |
commit | 79076e1241bb3bf02d0aac7d39120d8161fe07b1 (patch) | |
tree | ba51eeb847b8a46c7dbfbac26bda55b01b73e94c /kernel/panic.c | |
parent | rapidio/rio_mport_cdev: use array_size() helper in copy_{from,to}_user() (diff) | |
download | linux-79076e1241bb3bf02d0aac7d39120d8161fe07b1.tar.xz linux-79076e1241bb3bf02d0aac7d39120d8161fe07b1.zip |
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: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Cc: Xuefeng Li <lixuefeng@loongson.cn>
Link: http://lkml.kernel.org/r/1591103358-32087-1-git-send-email-yangtiezhu@loongson.cn
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r-- | kernel/panic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/panic.c b/kernel/panic.c index e2157ca387c8..93ba061d1c79 100644 --- a/kernel/panic.c +++ b/kernel/panic.c @@ -505,7 +505,7 @@ static void do_oops_enter_exit(void) * Return true if the calling CPU is allowed to print oops-related info. * This is a bit racy.. */ -int oops_may_print(void) +bool oops_may_print(void) { return pause_on_oops_flag == 0; } |