x86/kvm: Convert to new CPU match macros
The new macro set has a consistent namespace and uses C99 initializers instead of the grufty C89 ones. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://lkml.kernel.org/r/20200320131509.136884777@linutronix.de
This commit is contained in:
parent
ef37219ab8
commit
320debe5ef
|
@ -59,7 +59,7 @@ MODULE_AUTHOR("Qumranet");
|
|||
MODULE_LICENSE("GPL");
|
||||
|
||||
static const struct x86_cpu_id svm_cpu_id[] = {
|
||||
X86_FEATURE_MATCH(X86_FEATURE_SVM),
|
||||
X86_MATCH_FEATURE(X86_FEATURE_SVM, NULL),
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(x86cpu, svm_cpu_id);
|
||||
|
|
|
@ -66,7 +66,7 @@ MODULE_AUTHOR("Qumranet");
|
|||
MODULE_LICENSE("GPL");
|
||||
|
||||
static const struct x86_cpu_id vmx_cpu_id[] = {
|
||||
X86_FEATURE_MATCH(X86_FEATURE_VMX),
|
||||
X86_MATCH_FEATURE(X86_FEATURE_VMX, NULL),
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(x86cpu, vmx_cpu_id);
|
||||
|
|
Loading…
Reference in New Issue