Received: by 10.223.185.116 with SMTP id b49csp1838783wrg; Thu, 22 Feb 2018 04:06:02 -0800 (PST) X-Google-Smtp-Source: AH8x2246G+mHUQC2mO159koeen1MvqrL5KvbrbWZ0ja+ullwyEgwDl3Z+8KtNKYqf6y4rpoexptd X-Received: by 10.99.63.9 with SMTP id m9mr5684042pga.247.1519301162369; Thu, 22 Feb 2018 04:06:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519301162; cv=none; d=google.com; s=arc-20160816; b=tRbMDXNnb46eQVj8ck1zMcniyelIF8uBa0ShcUAR7LeSHINk4bbY43ISAAnbCLmJfZ 7nKH1PotDaFStbXjtNdhAGlE7lXpy1tsFbPCYuTpO9ydOcoa5XvX5Aue+OEOfQ2bwm3h gvDlI9fQT6EclWzd3Eq4euaStJb4WpZcTRyDgMZGszJ+OpRxvCnoECtAs8M4hbpaBHbS LvMMqmTX+abzTMxKu9VWcb7u6Wbq+Rbi8F3VX2odHL7+iJMcyqR74HI/OgSpL1Q7G1Wg unfwYBZ86OAj9ToKMf2+8xM6wVTGUBDBvr+2kKfiR+frFrllRcQzXRPEiHJQXr31FGMg iulA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:mime-version:organization :user-agent:subject:cc:to:from:date:arc-authentication-results; bh=ywjqkgWpic4Q/kDRbwY2SJULE0qWIqDJyr9fe6bSN8I=; b=qRuMcJL81IXsHTsnDtCuyIJkVUOUIFKWZXrP3USSlKszi1mA0O4PnwirLCV9uzfBWj EGV9Ri1mK6Ho0xSwHcjfMRccjxn/5NW7PArD1rHgyhq9BNVS/RmBpWmc/pJqhsytE0xr MMStl6s4Q9NEM3LwBm45QvJcdddmz6Tcm0GjXGH8tdl0ny2GDrGU8C3MTxZaOtLGbrAO POmwsw+Emlpz/8zs2mrfN7VFcYqKdckqKw++klX4KqLiMvG5Vvss9cwctLUHcwX7v6ww hMz3InA/nUFVKrxzuiK+2MHxTr3UaKGwM1OTijDAQ9B99xc50hxLKXAbc0t2JMfWCHWa QgIg== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s22si3253140pfh.340.2018.02.22.04.05.47; Thu, 22 Feb 2018 04:06:02 -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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932323AbeBVMEt (ORCPT + 99 others); Thu, 22 Feb 2018 07:04:49 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:45304 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753649AbeBVMEq (ORCPT ); Thu, 22 Feb 2018 07:04:46 -0500 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w1MC4Rat030149 for ; Thu, 22 Feb 2018 07:04:46 -0500 Received: from e06smtp10.uk.ibm.com (e06smtp10.uk.ibm.com [195.75.94.106]) by mx0a-001b2d01.pphosted.com with ESMTP id 2g9td3r5he-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 22 Feb 2018 07:04:46 -0500 Received: from localhost by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 22 Feb 2018 12:04:43 -0000 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp10.uk.ibm.com (192.168.101.140) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 22 Feb 2018 12:04:41 -0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w1MC4eif59113586; Thu, 22 Feb 2018 12:04:40 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CC245A4053; Thu, 22 Feb 2018 11:57:49 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9B63DA405B; Thu, 22 Feb 2018 11:57:49 +0000 (GMT) Received: from dyn-9-152-212-171.boeblingen.de.ibm.com (unknown [9.152.212.171]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Thu, 22 Feb 2018 11:57:49 +0000 (GMT) Date: Thu, 22 Feb 2018 13:04:39 +0100 (CET) From: Sebastian Ott X-X-Sender: sebott@schleppi To: Paolo Bonzini , =?ISO-8859-2?Q?Radim_Kr=E8m=E1=F8?= cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] kvm: fix warning for non-x86 builds User-Agent: Alpine 2.21 (LFD 202 2017-01-01) Organization: =?ISO-8859-15?Q?=22IBM_Deutschland_Research_&_Development_GmbH?= =?ISO-8859-15?Q?_=2F_Vorsitzende_des_Aufsichtsrats=3A_Martina?= =?ISO-8859-15?Q?_Koederitz_Gesch=E4ftsf=FChrung=3A_Dirk_Wittkopp?= =?ISO-8859-15?Q?_Sitz_der_Gesellschaft=3A_B=F6blingen_=2F_Reg?= =?ISO-8859-15?Q?istergericht=3A_Amtsgericht_Stuttgart=2C_HRB_2432?= =?ISO-8859-15?Q?94=22?= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-TM-AS-GCONF: 00 x-cbid: 18022212-0040-0000-0000-000004157638 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18022212-0041-0000-0000-000026188B6B Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-22_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=3 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1802220155 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.13.4