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>
This commit is contained in:
parent
d71375499d
commit
79076e1241
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue