mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-12-16 01:42:39 +00:00
hv: fix 'Space missing before or after binary operator'
This patch adds the necessary space before or after binary operator. v1 -> v2: * minor fix related to integer [i - 1] ====> [i - 1U] Tracked-On: #861 Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
This commit is contained in:
@@ -235,7 +235,7 @@ build_bitmap_clear(bitmap32_clear_lock, "l", uint32_t, BUS_LOCK)
|
||||
static inline bool bitmap_test(uint16_t nr_arg, const volatile uint64_t *addr)
|
||||
{
|
||||
uint16_t nr;
|
||||
int32_t ret=0;
|
||||
int32_t ret = 0;
|
||||
nr = nr_arg & 0x3fU;
|
||||
asm volatile("btq %q2,%1\n\tsbbl %0, %0"
|
||||
: "=r" (ret)
|
||||
@@ -247,7 +247,7 @@ static inline bool bitmap_test(uint16_t nr_arg, const volatile uint64_t *addr)
|
||||
static inline bool bitmap32_test(uint16_t nr_arg, const volatile uint32_t *addr)
|
||||
{
|
||||
uint16_t nr;
|
||||
int32_t ret=0;
|
||||
int32_t ret = 0;
|
||||
nr = nr_arg & 0x1fU;
|
||||
asm volatile("btl %2,%1\n\tsbbl %0, %0"
|
||||
: "=r" (ret)
|
||||
|
||||
Reference in New Issue
Block a user