lib: sbi: Have spinlock checks return bool
authorDaniel Schaefer <git@danielschaefer.me>
Thu, 13 May 2021 04:52:35 +0000 (12:52 +0800)
committerAnup Patel <anup@brainfault.org>
Fri, 14 May 2021 11:35:20 +0000 (17:05 +0530)
commitf90c4c2e0298a6a6e7ade87bf1b704a3a07aa7b9
treefa783638405899503e6bf169b88a1ea12906a63c
parent26998f3d116992ae3fc6670c8f724bcc630d33fd
lib: sbi: Have spinlock checks return bool

spin_lock_check already returned bool in the source file but not in the
header. With some toolchains that causes an error, as it should.

Because it and related functions all essentially return a bool, we can
use this opportunity to change them.

Signed-off-by: Daniel Schaefer <git@danielschaefer.me>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
include/sbi/riscv_locks.h
lib/sbi/riscv_locks.c