Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4712568pxb; Tue, 25 Jan 2022 17:18:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJx04DwDdmQg+bCfOgdTS3s9CBhYfveQBwMsxeWJ64rdJKny/rPInVTSm6A4b4zwQhO3Yid0 X-Received: by 2002:a50:cf86:: with SMTP id h6mr23378421edk.82.1643159880740; Tue, 25 Jan 2022 17:18:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643159880; cv=none; d=google.com; s=arc-20160816; b=nRhJWGPDgE41TturZy7/Abwx+PwgMh2SZnhEb/C1EUxkIVtbOH4Xj59VH7GD/P3mf/ vyfRd430HWwXX9DaF88YK1oiZyT8sbpXk+gjWSOCWPT9KYiHryrxL54lRb0p+qvPMw9s tM/t1FWQ2Ex5k/6HHEgbFc89sebOgfaVu3HpfLz8XKo2y3WGIQm9Ptq8HD7sJh6eq07B 7B+S8hxuXoHB+SUJMTs++22lhJ8f/1xmF+l5XLnm6F5nPre7jn9xfV/NiAfkHDLLHP+j +US4PitJ6xsaq/EWF1yfFUUa4Lo3fjwjXSD/qcMvPg7MK2wTU+KFxqFJm8Ek/WxcIHzd yuGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=cNqYyYM/iBn+DAAAtNRM27AQBCsK9dS6alJG9G0Mm8Y=; b=H9CRy3nMeQPzVCZaQkuxf/jsJ3H0b800m36/HZr021Tx0ATOuGSivGjoMtSdU7fwrg LeslFFGValhtEzL0jFDjU7zmb9wM99CWu+B/k8wqo/3s9phExKWyQ3dX6W45vBzjcdPN UEyPYyUa8lAXD/JFhwHULySUcWZ38kWMlLXG+yTQYq/hulEHiCkXDzbH12Gtd83Gqi1r fmdmauH1OsQCTlYlmNtV/TlsbonVj7cIxWVpyanMRuNoP54HCMWXo1866yCNteLd9V9J sJo5szPsDLxooHS07jWcXJRCIEehoFc0OnCQ/zoZQDiUZ8nEsRclLPGbXHEbFd9cqwgi ZQow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="fn/Op55S"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dr3si5757480ejc.277.2022.01.25.17.17.36; Tue, 25 Jan 2022 17:18:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="fn/Op55S"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1584066AbiAYQgx (ORCPT + 99 others); Tue, 25 Jan 2022 11:36:53 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:25546 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237089AbiAYQcR (ORCPT ); Tue, 25 Jan 2022 11:32:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1643128331; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cNqYyYM/iBn+DAAAtNRM27AQBCsK9dS6alJG9G0Mm8Y=; b=fn/Op55SJXc/YE148E/l6ZYrhPDMduq/JHf+ogbr24ZSuAwoGS7pOscJ6srEox3393kqgS 5CxwYDwjxGJqFyoa8qExHIqHnbmiMq2sniLyQmtoM/3uSdObNSIpL2cephYMJzESAlZ09Q eIOw5XV7e8EVJbEmDUFC4mtxDL7L5uw= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-396-CzCj5Ym6Mdy9cE_xRMjAOQ-1; Tue, 25 Jan 2022 11:32:10 -0500 X-MC-Unique: CzCj5Ym6Mdy9cE_xRMjAOQ-1 Received: by mail-ed1-f70.google.com with SMTP id j1-20020aa7c341000000b0040417b84efeso15233055edr.21 for ; Tue, 25 Jan 2022 08:32:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=cNqYyYM/iBn+DAAAtNRM27AQBCsK9dS6alJG9G0Mm8Y=; b=INzJQ7LrfxCMyxVqKjh7Ym5B1NEC1vpcNWhO7DN6q7XFsBOt1dSg4BUvZJEuLp35fl qTCujr/jgF/YD7OuF1Y3jxepHr5yWxZ1ycWFb2HqxU4yWfW2TW+6Tat0Sq4gIgWMJK0n F1MUBll7s83TvfAVEHiEaE+84UkfOa9uZGpk4LF5iZspIepPA4JMBX7QZWrJZEhaSXVM GRUJmPPk9P+D3cfezD3FIMXM6lTHrRs1CJWMTqAcgJ27fMUDU6w/U/CYVE6n8RmoW9Z7 QlGYFbJpQPS8ieIglIE0aC4IQJKz2GlJCH+KVnnjgwPDy0uuxv+eiey7e93f+OKbJiBg o57A== X-Gm-Message-State: AOAM532cW+7KK5b81kxzQMi5ig9MyuW2/AYrCrQvu1Kq1NL3lsqcK6pS PyH9KLZILu424ffiH99iegpllkupWUnfsXyeteUePvYexH2DspHYBb/hTu5o8WLNR9kiZsuPFaS LHVrshIsYOzzB5rdrBPrN366W X-Received: by 2002:a50:a6ce:: with SMTP id f14mr20928074edc.105.1643128328929; Tue, 25 Jan 2022 08:32:08 -0800 (PST) X-Received: by 2002:a50:a6ce:: with SMTP id f14mr20928057edc.105.1643128328738; Tue, 25 Jan 2022 08:32:08 -0800 (PST) Received: from ?IPV6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.googlemail.com with ESMTPSA id gz12sm6412927ejc.124.2022.01.25.08.32.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 Jan 2022 08:32:08 -0800 (PST) Message-ID: <1e36f9f1-e019-354f-7002-7b127353c321@redhat.com> Date: Tue, 25 Jan 2022 17:32:03 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Subject: Re: [PATCH 00/19] KVM: x86: Bulk removal of unused function parameters Content-Language: en-US To: Jinrong Liang Cc: Xianting Tian , Jim Mattson , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220125095909.38122-1-cloudliang@tencent.com> From: Paolo Bonzini In-Reply-To: <20220125095909.38122-1-cloudliang@tencent.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/25/22 10:58, Jinrong Liang wrote: > From: Like Xu > > Hi, > > This patch set is a follow up to a similar patch [1], and may > hopefully help to improve the code quality of KVM. > > Basically, the cleanup is triggered by a compiler feature[2], but obviously > there are a lot of false positives here, and so far we may apply at least > this changset, which also helps the related developers to think more > carefully about why these functions were declared that way in the first > place or what is left after a series of loosely-coupled clean-ups. > > [1] https://lore.kernel.org/kvm/20220124020456.156386-1-xianting.tian@linux.alibaba.com/ > [2] ccflags-y += -Wunused-parameter > > Thanks, > Like Xu > > Jinrong Liang (19): > KVM: x86/mmu: Remove unused "kvm" of kvm_mmu_unlink_parents() > KVM: x86/mmu: Remove unused "kvm" of __rmap_write_protect() > KVM: x86/mmu: Remove unused "vcpu" of > reset_{tdp,ept}_shadow_zero_bits_mask() > KVM: x86/tdp_mmu: Remove unused "kvm" of kvm_tdp_mmu_get_root() > KVM: x86/mmu_audit: Remove unused "level" of audit_spte_after_sync() > KVM: x86/svm: Remove unused "vcpu" of svm_check_exit_valid() > KVM: x86/svm: Remove unused "vcpu" of nested_svm_check_tlb_ctl() > KVM: x86/svm: Remove unused "vcpu" of kvm_after_interrupt() > KVM: x86/sev: Remove unused "svm" of sev_es_prepare_guest_switch() > KVM: x86/sev: Remove unused "kvm" of sev_unbind_asid() > KVM: x86/sev: Remove unused "vector" of sev_vcpu_deliver_sipi_vector() > KVM: x86/i8259: Remove unused "addr" of elcr_ioport_{read,write}() > KVM: x86/ioapic: Remove unused "addr" and "length" of > ioapic_read_indirect() > KVM: x86/emulate: Remove unused "ctxt" of setup_syscalls_segments() > KVM: x86/emulate: Remove unused "ctxt" of task_switch_{16, 32}() > KVM: x86: Remove unused "vcpu" of kvm_arch_tsc_has_attr() > KVM: x86: Remove unused "vcpu" of kvm_scale_tsc() > KVM: Remove unused "kvm" of kvm_make_vcpu_request() > KVM: Remove unused "flags" of kvm_pv_kick_cpu_op() > > arch/x86/include/asm/kvm_host.h | 2 +- > arch/x86/kvm/emulate.c | 20 ++++++++------------ > arch/x86/kvm/i8259.c | 8 ++++---- > arch/x86/kvm/ioapic.c | 6 ++---- > arch/x86/kvm/mmu/mmu.c | 23 ++++++++++------------- > arch/x86/kvm/mmu/mmu_audit.c | 4 ++-- > arch/x86/kvm/mmu/tdp_mmu.c | 4 ++-- > arch/x86/kvm/mmu/tdp_mmu.h | 3 +-- > arch/x86/kvm/svm/nested.c | 4 ++-- > arch/x86/kvm/svm/sev.c | 12 ++++++------ > arch/x86/kvm/svm/svm.c | 10 +++++----- > arch/x86/kvm/svm/svm.h | 4 ++-- > arch/x86/kvm/vmx/vmx.c | 2 +- > arch/x86/kvm/x86.c | 25 ++++++++++++------------- > arch/x86/kvm/x86.h | 2 +- > virt/kvm/kvm_main.c | 9 ++++----- > 16 files changed, 63 insertions(+), 75 deletions(-) > Queued the patches I didn't comment on, thanks. Paolo