lib: fix compilation when strings.h is included
authorPetro Karashchenko <petro.karashchenko@gmail.com>
Fri, 28 Jan 2022 07:13:23 +0000 (09:13 +0200)
committerAnup Patel <anup@brainfault.org>
Fri, 4 Feb 2022 05:34:19 +0000 (11:04 +0530)
commit6ad8917b7e27e5e80fb9268492b9111b17ed2024
treed8af3fafb149bdcc42b7d8905940b846b135fdfc
parent5d53b55aa77ffeefd4012445dfa6ad3535e1ff2c
lib: fix compilation when strings.h is included

In a systems that provide strings.h and it is included
together with sbi_bitops.h the compilation error appears.
The ffs() and fls() are provided by strings.h

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
include/sbi/sbi_bitops.h
lib/sbi/sbi_bitops.c
lib/sbi/sbi_hart.c
lib/sbi/sbi_pmu.c
lib/utils/timer/aclint_mtimer.c