Both commit e21d10ee00c5 ("KVM: x86: Unify pr_fmt to use module name for all KVM modules") and commit 1567037614af ("KVM: VMX: Resurrect vmcs_conf sanitization for KVM-on-Hyper-V") define pr_fmt. Remove the pr_fmt that was defined in commit 1567037614af ("KVM: VMX: Resurrect vmcs_conf sanitization for KVM-on-Hyper-V"). With both defined I get this: arch/x86/kvm/vmx/hyperv.c:4:9: error: 'pr_fmt' macro redefined [-Werror,-Wmacro-redefined] ^ arch/x86/kvm/vmx/hyperv.c:2:9: note: previous definition is here ^ UPD arch/x86/kvm/kvm-asm-offsets.h AS arch/x86/kvm/vmx/vmenter.o AS arch/x86/kvm/svm/vmenter.o 1 error generated. Signed-off-by: Aaron Lewis <aaronlewis@xxxxxxxxxx> --- arch/x86/kvm/vmx/hyperv.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/kvm/vmx/hyperv.c b/arch/x86/kvm/vmx/hyperv.c index 398240a4327b5..2a26a0f27d489 100644 --- a/arch/x86/kvm/vmx/hyperv.c +++ b/arch/x86/kvm/vmx/hyperv.c @@ -1,8 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt -#define pr_fmt(fmt) "kvm/hyper-v: " fmt - #include <linux/errno.h> #include <linux/smp.h> -- 2.39.0.314.g84b9a713c41-goog