lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Mon, 9 Aug 2021 17:34:10 +0800 From: Like Xu <like.xu.linux@...il.com> To: Paolo Bonzini <pbonzini@...hat.com> Cc: Sean Christopherson <seanjc@...gle.com>, Vitaly Kuznetsov <vkuznets@...hat.com>, Wanpeng Li <wanpengli@...cent.com>, Jim Mattson <jmattson@...gle.com>, Joerg Roedel <joro@...tes.org>, Ingo Molnar <mingo@...hat.com>, kvm@...r.kernel.org, linux-kernel@...r.kernel.org Subject: [PATCH 5/5] KVM: x86: Clean up redundant pr_fmt(fmt) macro definition for svm From: Like Xu <likexu@...cent.com> The svm specific pr_fmt(fmt) macro is repeatedly defined in svm code and the new one has never been used outside the svm context. Let's move it to svm.h without any intended functional changes. Signed-off-by: Like Xu <likexu@...cent.com> --- arch/x86/kvm/svm/avic.c | 2 -- arch/x86/kvm/svm/nested.c | 2 -- arch/x86/kvm/svm/svm.c | 2 -- arch/x86/kvm/svm/svm.h | 3 +++ 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/arch/x86/kvm/svm/avic.c b/arch/x86/kvm/svm/avic.c index a8ad78a2faa1..8b055f9ad9fe 100644 --- a/arch/x86/kvm/svm/avic.c +++ b/arch/x86/kvm/svm/avic.c @@ -12,8 +12,6 @@ * Avi Kivity <avi@...ranet.com> */ -#define pr_fmt(fmt) "SVM: " fmt - #include <linux/kvm_types.h> #include <linux/hashtable.h> #include <linux/amd-iommu.h> diff --git a/arch/x86/kvm/svm/nested.c b/arch/x86/kvm/svm/nested.c index 57c288ba6ef0..3080776a55a5 100644 --- a/arch/x86/kvm/svm/nested.c +++ b/arch/x86/kvm/svm/nested.c @@ -12,8 +12,6 @@ * Avi Kivity <avi@...ranet.com> */ -#define pr_fmt(fmt) "SVM: " fmt - #include <linux/kvm_types.h> #include <linux/kvm_host.h> #include <linux/kernel.h> diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c index 2b6632d4c76f..4a3f8ef56daa 100644 --- a/arch/x86/kvm/svm/svm.c +++ b/arch/x86/kvm/svm/svm.c @@ -1,5 +1,3 @@ -#define pr_fmt(fmt) "SVM: " fmt - #include <linux/kvm_host.h> #include "irq.h" diff --git a/arch/x86/kvm/svm/svm.h b/arch/x86/kvm/svm/svm.h index bd0fe94c2920..76d5fe3f00dc 100644 --- a/arch/x86/kvm/svm/svm.h +++ b/arch/x86/kvm/svm/svm.h @@ -15,6 +15,9 @@ #ifndef __SVM_SVM_H #define __SVM_SVM_H +#undef pr_fmt +#define pr_fmt(fmt) "SVM: " fmt + #include <linux/kvm_types.h> #include <linux/kvm_host.h> #include <linux/bits.h> -- 2.32.0
Powered by blists - more mailing lists