Remove useless arguments kvm_dev and name. Signed-off-by: Wanlong Gao <gaowanlong@xxxxxxxxxxxxxx> --- tools/kvm/include/kvm/kvm.h | 2 +- tools/kvm/kvm.c | 2 +- tools/kvm/powerpc/kvm.c | 2 +- tools/kvm/x86/kvm.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/kvm/include/kvm/kvm.h b/tools/kvm/include/kvm/kvm.h index a3ea1c9..eabaf07 100644 --- a/tools/kvm/include/kvm/kvm.h +++ b/tools/kvm/include/kvm/kvm.h @@ -55,7 +55,7 @@ int kvm__enumerate_instances(int (*callback)(const char *name, int pid)); void kvm__remove_socket(const char *name); void kvm__arch_set_cmdline(char *cmdline, bool video); -void kvm__arch_init(struct kvm *kvm, const char *kvm_dev, const char *hugetlbfs_path, u64 ram_size, const char *name); +void kvm__arch_init(struct kvm *kvm, const char *hugetlbfs_path, u64 ram_size); int kvm__arch_setup_firmware(struct kvm *kvm); bool kvm__arch_cpu_supports_vm(void); void kvm__arch_periodic_poll(struct kvm *kvm); diff --git a/tools/kvm/kvm.c b/tools/kvm/kvm.c index 08df4ca..29cc4b4 100644 --- a/tools/kvm/kvm.c +++ b/tools/kvm/kvm.c @@ -353,7 +353,7 @@ struct kvm *kvm__init(const char *kvm_dev, const char *hugetlbfs_path, u64 ram_s if (kvm__check_extensions(kvm)) die("A required KVM extention is not supported by OS"); - kvm__arch_init(kvm, kvm_dev, hugetlbfs_path, ram_size, name); + kvm__arch_init(kvm, hugetlbfs_path, ram_size); kvm->name = name; diff --git a/tools/kvm/powerpc/kvm.c b/tools/kvm/powerpc/kvm.c index abab622..1955ad9 100644 --- a/tools/kvm/powerpc/kvm.c +++ b/tools/kvm/powerpc/kvm.c @@ -69,7 +69,7 @@ void kvm__arch_set_cmdline(char *cmdline, bool video) } /* Architecture-specific KVM init */ -void kvm__arch_init(struct kvm *kvm, const char *kvm_dev, const char *hugetlbfs_path, u64 ram_size, const char *name) +void kvm__arch_init(struct kvm *kvm, const char *hugetlbfs_path, u64 ram_size) { int cap_ppc_rma; diff --git a/tools/kvm/x86/kvm.c b/tools/kvm/x86/kvm.c index e6cb621..54c590a 100644 --- a/tools/kvm/x86/kvm.c +++ b/tools/kvm/x86/kvm.c @@ -142,7 +142,7 @@ static void *mmap_anon_or_hugetlbfs(const char *hugetlbfs_path, u64 size) } /* Architecture-specific KVM init */ -void kvm__arch_init(struct kvm *kvm, const char *kvm_dev, const char *hugetlbfs_path, u64 ram_size, const char *name) +void kvm__arch_init(struct kvm *kvm, const char *hugetlbfs_path, u64 ram_size) { struct kvm_pit_config pit_config = { .flags = 0, }; int ret; -- 1.7.8 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html