]> www.infradead.org Git - users/jedix/linux-maple.git/commit
locking/pvqspinlock: Correct the type of "old" variable in pv_kick_node()
authorUros Bizjak <ubizjak@gmail.com>
Sun, 21 Jul 2024 16:45:41 +0000 (18:45 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 29 Jul 2024 10:16:21 +0000 (12:16 +0200)
commit6623b0217d0c9bed80bfa43b778ce1c0eb03b497
tree61e7cd88c5bc6c955cae62e8f1a9cc9e96072c79
parent8400291e289ee6b2bf9779ff1c83a291501f017b
locking/pvqspinlock: Correct the type of "old" variable in pv_kick_node()

"enum vcpu_state" is not compatible with "u8" type for all targets,
resulting in:

error: initialization of 'u8 *' {aka 'unsigned char *'} from incompatible pointer type 'enum vcpu_state *'

for LoongArch. Correct the type of "old" variable to "u8".

Fixes: fea0e1820b51 ("locking/pvqspinlock: Use try_cmpxchg() in qspinlock_paravirt.h")
Closes: https://lore.kernel.org/lkml/20240719024010.3296488-1-maobibo@loongson.cn/
Reported-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Waiman Long <longman@redhat.com>
Link: https://lore.kernel.org/r/20240721164552.50175-1-ubizjak@gmail.com
kernel/locking/qspinlock_paravirt.h