Received: by 10.223.185.116 with SMTP id b49csp1001567wrg; Fri, 23 Feb 2018 10:08:03 -0800 (PST) X-Google-Smtp-Source: AH8x2271HdcAmfR2sshP0iHkMyTN2faaJVYT8xHly/OniOj3Bo6Du/28UmLnA4CXMUkhbaiCa8dV X-Received: by 2002:a17:902:8646:: with SMTP id y6-v6mr2534664plt.406.1519409283277; Fri, 23 Feb 2018 10:08:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519409283; cv=none; d=google.com; s=arc-20160816; b=YTjY7QCYC7HvE3oUtt3FwIHCFJqXB1U/lw6hNrnbKVg2lJlBxjp1/RUe57NDs5vWgd ebjuui4GAd0fu0VqDaTY7pScxGCGPYcelLDmCGEZp9UC0CtXJ4hFWT+pwuyiAjlMAnNF JgCQnlDl/BXcKJWJFKjAcLoPXza8+jGHdIhL3Kpy5ouKsZ1mvGxysts8sDZEk5x/8dNm 7t1JA4IGxOXRIqV+ZNRncWj9H9aSqZPx++eomQKlVYBeq7/5gBe5LKHxTUoCiwu5FzVZ NGp/0ASA95yDdHo3hB6gIQovOY3rffeCG6HrDd7h8Ea2lKX1Dc8KauwZ0h36TPG5BhuA jMXA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=pkYEL0TSyIO3B7CmJPu+Yzj43dRq+MTRfKsQEyhhYWM=; b=B0Lc3uH1Nl133lrYPmp20xsmuonuL6HHHSJ7oHBSOtd7f6xTuVYoVnp7xUofsruxwq nOoWZRq/QdQ+FaIEwxSy19wI6yZFjBADDpHMbKDUbfzzNkLl69tywChmkRP1VdVvDeM4 omD43OH54dhL4/pgRa5OuRr7+meONEBhmS1S6kg7O3pD8dIYVjaKW1Swr3TsZJiXarlI J334KweK4VRDULcbUDsRXvMP3d/EXP6rsE7pgqcs6amqDeK9w9Bux99WbDuvKOTQzvBQ sUtEpMdRKDSEabs+IMA5pYvBbrINMWfadDjwB3ZL1izYRfjkCBjlps6KbKrzxC+wC7Eu V1aA== 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 13-v6si2110303plb.515.2018.02.23.10.07.48; Fri, 23 Feb 2018 10:08:03 -0800 (PST) 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 S1752118AbeBWSG4 (ORCPT + 99 others); Fri, 23 Feb 2018 13:06:56 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:46144 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751587AbeBWSGz (ORCPT ); Fri, 23 Feb 2018 13:06:55 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E2459EB71C; Fri, 23 Feb 2018 18:06:54 +0000 (UTC) Received: from [10.36.117.249] (ovpn-117-249.ams2.redhat.com [10.36.117.249]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 17DE02024CAB; Fri, 23 Feb 2018 18:06:53 +0000 (UTC) Subject: Re: [PATCH] kvm: fix warning for non-x86 builds To: Sebastian Ott , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org References: From: Paolo Bonzini Message-ID: <7825efa7-da58-ad95-1d41-71eefb9784c3@redhat.com> Date: Fri, 23 Feb 2018 19:06:52 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Fri, 23 Feb 2018 18:06:54 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Fri, 23 Feb 2018 18:06:54 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'pbonzini@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22/02/2018 13:04, Sebastian Ott wrote: > Fix the following sparse warning by moving the prototype > of kvm_arch_mmu_notifier_invalidate_range() to linux/kvm_host.h . > > CHECK arch/s390/kvm/../../../virt/kvm/kvm_main.c > arch/s390/kvm/../../../virt/kvm/kvm_main.c:138:13: warning: symbol 'kvm_arch_mmu_notifier_invalidate_range' was not declared. Should it be static? > > Signed-off-by: Sebastian Ott > --- > arch/x86/include/asm/kvm_host.h | 3 --- > include/linux/kvm_host.h | 3 +++ > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h > index dd6f57a54a26..0a9e330b34f0 100644 > --- a/arch/x86/include/asm/kvm_host.h > +++ b/arch/x86/include/asm/kvm_host.h > @@ -1464,7 +1464,4 @@ static inline int kvm_cpu_get_apicid(int mps_cpu) > #define put_smstate(type, buf, offset, val) \ > *(type *)((buf) + (offset) - 0x7e00) = val > > -void kvm_arch_mmu_notifier_invalidate_range(struct kvm *kvm, > - unsigned long start, unsigned long end); > - > #endif /* _ASM_X86_KVM_HOST_H */ > diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h > index ac0062b74aed..ed3d4ddbaff3 100644 > --- a/include/linux/kvm_host.h > +++ b/include/linux/kvm_host.h > @@ -1272,4 +1272,7 @@ static inline long kvm_arch_vcpu_async_ioctl(struct file *filp, > } > #endif /* CONFIG_HAVE_KVM_VCPU_ASYNC_IOCTL */ > > +void kvm_arch_mmu_notifier_invalidate_range(struct kvm *kvm, > + unsigned long start, unsigned long end); > + > #endif > Queued, thanks. Paolo