]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
LoongArch: KVM: Move some variable declarations to paravirt.h
authorBibo Mao <maobibo@loongson.cn>
Fri, 22 May 2026 07:05:12 +0000 (15:05 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Fri, 22 May 2026 07:05:12 +0000 (15:05 +0800)
commit4a09f4a23a3003d31f8545dd0770f2b3b0f54d8b
treed8af4f1f69384bae692b0dc56158140d27ceaf14
parent1c856e158fd34ef2c4475a81c1dc386329989938
LoongArch: KVM: Move some variable declarations to paravirt.h

Some variables relative with paravirt feature are declared in the header
file asm/qspinlock.h, however this file can be included only when option
CONFIG_SMP is on. There is compiling warnings if CONFIG_SMP is off since
variables are not declared.

Move these variable declarations to header file asm/paravirt.h to avoid
compiling warnings.

Fixes: c43dce6f13fb ("LoongArch: KVM: Make vcpu_is_preempted() as a macro rather than function")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202605061313.O8Hswm2b-lkp@intel.com/
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/include/asm/paravirt.h
arch/loongarch/include/asm/qspinlock.h