Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp2468799ybj; Mon, 23 Sep 2019 04:29:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqymYWg8MAO7GGEg8ITvIYUqgS9QLZ+SctWHBLqpziLr24I7Rl2PlgPyPlRCHnpIms85DTYm X-Received: by 2002:a50:d49c:: with SMTP id s28mr36259235edi.101.1569238153286; Mon, 23 Sep 2019 04:29:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569238153; cv=none; d=google.com; s=arc-20160816; b=IUNKVlmrTCWQH1+mjWQn/Fld1hVBj9AePywpovsIFu6p/p+GJ54AtDvk8ACc5+Wk92 GG9Mh7dwuKSskt/mTSnyGosrYZk8iPOSLdz9MYAF5U9S6rcXYiBB9yxT/Ngs59WoGUXa EtdQkcrsGjg7zFGFF1OstRe1LBk6SyxLKuEKgqsfuNjIytwEo8wZgmWrcyils8oz0/qh 5IEmsYkcuMw4bNYdI4fadwoSnkSf3vhUt7ZQag6URk/N4IQZGHrGkDUpcHapJCa4I8ta oT+JSB91mnUid2i0PLOwKM4dTD7tzkFQ4JosbCESCJvR1wUtsCZdILZl3o24HuZqk1Em wSEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=rrvDhmjoDP1UadqzYMZ53TvP9EZs8uo31J8i0tegjeE=; b=CjNHWUlGoWIAWE0jOP+rP7J+CaEkOHNPdJiCDQGhrZZW1CT+Ij1/5t+/xjqKuqViU1 3OO7Brbd6iKDEY8p1k39sy4Kz9e8pUJNm1IW3vwWHUKRv7El7fjQ8XYhoeja7y5JFR2f VuZhcNJGwg2I/rHfItyR9P8hQgK6+6kh6cEB8zWyZ/si5LlHcioGq7RDpf67uRyi4w2t E2Vg2ZX+S6jbWwPJFh3dNBp1vQSAEBK6zTV4u9hkpW4Ad8eokdC09FbgIc45hSc1jFOX p7O26T//iDvF8nlEF7bSTP1r63do3I6XBU4iMMbYWmxbFCpBWaA5YO5aOPVQn8Qpvk7a oXjw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l22si6119880edq.174.2019.09.23.04.28.49; Mon, 23 Sep 2019 04:29:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393853AbfITVZU (ORCPT + 99 others); Fri, 20 Sep 2019 17:25:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57066 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393802AbfITVZQ (ORCPT ); Fri, 20 Sep 2019 17:25:16 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CD8DCC054C52; Fri, 20 Sep 2019 21:25:15 +0000 (UTC) Received: from mail (ovpn-120-159.rdu2.redhat.com [10.10.120.159]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 80AAB60BF4; Fri, 20 Sep 2019 21:25:13 +0000 (UTC) From: Andrea Arcangeli To: Paolo Bonzini Cc: Vitaly Kuznetsov , "Dr. David Alan Gilbert" , Marcelo Tosatti , Peter Xu , kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 07/17] KVM: monolithic: x86: adjust the section prefixes Date: Fri, 20 Sep 2019 17:24:59 -0400 Message-Id: <20190920212509.2578-8-aarcange@redhat.com> In-Reply-To: <20190920212509.2578-1-aarcange@redhat.com> References: <20190920212509.2578-1-aarcange@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Fri, 20 Sep 2019 21:25:15 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adjusts the section prefixes of some KVM common code function because with the monolithic methods the section checker can now do a more accurate analysis at build time and this allows to build without CONFIG_SECTION_MISMATCH_WARN_ONLY=n. Signed-off-by: Andrea Arcangeli --- arch/x86/kvm/svm.c | 2 +- arch/x86/kvm/vmx/vmx.c | 2 +- arch/x86/kvm/x86.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 3041abbd643b..5a48beb58083 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c @@ -1407,7 +1407,7 @@ static __init int svm_hardware_setup(void) return r; } -static __exit void svm_hardware_unsetup(void) +static void svm_hardware_unsetup(void) { int cpu; diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c index 9fc3969f6443..09e6a477e06f 100644 --- a/arch/x86/kvm/vmx/vmx.c +++ b/arch/x86/kvm/vmx/vmx.c @@ -7642,7 +7642,7 @@ static __init int hardware_setup(void) return r; } -static __exit void hardware_unsetup(void) +static void hardware_unsetup(void) { if (nested) nested_vmx_hardware_unsetup(); diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index dfd641243568..c04894b61384 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -9206,7 +9206,7 @@ void kvm_arch_hardware_disable(void) drop_user_return_notifiers(); } -int kvm_arch_hardware_setup(void) +__init int kvm_arch_hardware_setup(void) { int r; @@ -9237,7 +9237,7 @@ void kvm_arch_hardware_unsetup(void) kvm_x86_ops->hardware_unsetup(); } -int kvm_arch_check_processor_compat(void) +__init int kvm_arch_check_processor_compat(void) { return kvm_x86_ops->check_processor_compatibility(); }