diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-09-24 13:34:02 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-10-20 08:49:13 +0300 |
commit | 8b650050ecb61da143ee18fc150dd95ac5b0eca1 (patch) | |
tree | c7ee1b739ad7a418fd6071ebe2fc8db78096141a | |
parent | f81d6f6f43c661829b796a849058676eaadc2533 (diff) | |
download | opensbi-8b650050ecb61da143ee18fc150dd95ac5b0eca1.tar.xz |
include: sbi: Make hartmask pointer const in sbi_hartmask_test_hart()
The sbi_hartmask_test_hart() does not modify hartmask so the
hartmask pointer parameter should be declared const.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
-rw-r--r-- | include/sbi/sbi_hartmask.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sbi/sbi_hartmask.h b/include/sbi/sbi_hartmask.h index 77e42cb..f1cef0c 100644 --- a/include/sbi/sbi_hartmask.h +++ b/include/sbi/sbi_hartmask.h @@ -67,7 +67,7 @@ static inline void sbi_hartmask_clear_hart(u32 h, struct sbi_hartmask *m) * @param h HART id to test * @param m the hartmask pointer */ -static inline int sbi_hartmask_test_hart(u32 h, struct sbi_hartmask *m) +static inline int sbi_hartmask_test_hart(u32 h, const struct sbi_hartmask *m) { if (h < SBI_HARTMASK_MAX_BITS) return __test_bit(h, m->bits); |