From patchwork Mon Aug 14 14:03:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 135494 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp2797845vqi; Mon, 14 Aug 2023 07:56:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGbcuHiFDGnqdBvlmFeagNxUlHD+I+PTLwVpmYg5EZlst7FocQsGo+BFqFpszrpqLCNf2Hg X-Received: by 2002:a05:6a20:d405:b0:135:62b8:2a35 with SMTP id il5-20020a056a20d40500b0013562b82a35mr9419622pzb.32.1692024965265; Mon, 14 Aug 2023 07:56:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692024965; cv=none; d=google.com; s=arc-20160816; b=oNIc6sSUocBDsVnHCnvj0UsZ90NR7b7FUBtXfqjRYlrjJl1mp8UgeV3ZnUL6Zf9zQW b+fG0mDoeLQdPU5lNWUAOS5qv7onXUA3kb1273VbdRyK4uzrp72imKrznf6htFWF1LUk i6gXs+QmGn1JIs9GxRHsL2qIUUlohXadd9Vhd+IGijS1NeBeV62KvJi0WFg3HkrrbtfN eNrr0x3cxXu+cEIJSvs3PS/cZiE5vFc4w25xmCB8sfcgnU0hU55XVDSBsS+X7FEbrSxx yneS8rwOH0Po7Y1r/eBdgyoSBNAg4NrlwN73mnPU2mRTL/WjEMpjCvt7p0yqSlaCrb9I jBBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=YnzPGbAYpJN5EDU1dD7alUuLVweQsIBXOswvhymYCNo=; fh=zicEWjd1VysLqeK0lIC8NilRSjE7WjZH0W1e9ZI8Eok=; b=uH+SGX3bFlgMG5qooaenkC4ConVd/wMNpLdCNHfmMKmCXJ2kPRKTp6oLJ6hIkMmHgD l0VhDpGGRakKroFCfyJyiSlYar2u9ZjhbxqfY3xDxPNR9htu4R9kVFa2SLV3c2BgPByL r/tAfsU+QqwByflVSG3p4IwVOqvja22LE0vKGinYv6+qTOqBoGfo2kAUb4GA5NqRUVzw UZuvZ6xmBMuSr45jbhiPy+QhpOladLbGDk/ygZPtxvb7Biq6riFlM8jLcRGMa34tCD0t oGSXvhb57IfgGdtPZp7jhg4S3eJoT2/9EyzvT9z+Zv4cudLJsNeN2Xd2b7T/l6lcGlbV ZL8Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w15-20020a63af0f000000b0055ba8970e7asi7967716pge.616.2023.08.14.07.55.51; Mon, 14 Aug 2023 07:56:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230429AbjHNOFV (ORCPT + 99 others); Mon, 14 Aug 2023 10:05:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229725AbjHNOEv (ORCPT ); Mon, 14 Aug 2023 10:04:51 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFC1CE6D; Mon, 14 Aug 2023 07:04:50 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.57]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4RPbhV3zSlz1GDbN; Mon, 14 Aug 2023 22:03:06 +0800 (CST) Received: from localhost (10.174.179.215) by canpemm500007.china.huawei.com (7.192.104.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Mon, 14 Aug 2023 22:04:24 +0800 From: Yue Haibing To: , CC: , , , , Subject: [PATCH v2 -next] kvm_host: Remove unused declarations Date: Mon, 14 Aug 2023 22:03:39 +0800 Message-ID: <20230814140339.47732-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.179.215] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To canpemm500007.china.huawei.com (7.192.104.62) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774216770159722193 X-GMAIL-MSGID: 1774216770159722193 Commit 07f0a7bdec5c ("kvm: destroy emulated devices on VM exit") removed the functions but not these declarations. Commit 7ee30bc132c6 ("KVM: x86: deliver KVM IOAPIC scan request to target vCPUs") declared but never implemented kvm_make_cpus_request_mask() Signed-off-by: Yue Haibing --- v2: Also remove kvm_make_cpus_request_mask() --- include/linux/kvm_host.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index cb86108c624d..c354874519e8 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -190,8 +190,6 @@ bool kvm_make_vcpus_request_mask(struct kvm *kvm, unsigned int req, bool kvm_make_all_cpus_request(struct kvm *kvm, unsigned int req); bool kvm_make_all_cpus_request_except(struct kvm *kvm, unsigned int req, struct kvm_vcpu *except); -bool kvm_make_cpus_request_mask(struct kvm *kvm, unsigned int req, - unsigned long *vcpu_bitmap); #define KVM_USERSPACE_IRQ_SOURCE_ID 0 #define KVM_IRQFD_RESAMPLE_IRQ_SOURCE_ID 1 @@ -2167,8 +2165,6 @@ struct kvm_device_ops { int (*mmap)(struct kvm_device *dev, struct vm_area_struct *vma); }; -void kvm_device_get(struct kvm_device *dev); -void kvm_device_put(struct kvm_device *dev); struct kvm_device *kvm_device_from_filp(struct file *filp); int kvm_register_device_ops(const struct kvm_device_ops *ops, u32 type); void kvm_unregister_device_ops(u32 type);