diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/sbi/riscv_locks.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sbi/riscv_locks.h b/include/sbi/riscv_locks.h index 55da7c0..faa9676 100644 --- a/include/sbi/riscv_locks.h +++ b/include/sbi/riscv_locks.h @@ -16,7 +16,7 @@ typedef struct { #define __RISCV_SPIN_UNLOCKED 0 -#define SPIN_LOCK_INIT(_lptr) (_lptr)->lock = __RISCV_SPIN_UNLOCKED +#define SPIN_LOCK_INIT(x) (x).lock = __RISCV_SPIN_UNLOCKED #define SPIN_LOCK_INITIALIZER \ { \ |