From ac89fe6ce3150dc651238991235b7f2e8ac93aec Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Thu, 22 Sep 2022 15:31:42 -0700 Subject: [PATCH] Fix unused-function warning on sometimes-used function cto --- riscv/processor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riscv/processor.h b/riscv/processor.h index 7fc4be77..441e5221 100644 --- a/riscv/processor.h +++ b/riscv/processor.h @@ -220,7 +220,7 @@ struct state_t }; // Count number of contiguous 1 bits starting from the LSB. -static int cto(reg_t val) +static inline int cto(reg_t val) { int res = 0; while ((val & 1) == 1)