Received: by 10.223.185.116 with SMTP id b49csp1842396wrg; Thu, 22 Feb 2018 04:09:13 -0800 (PST) X-Google-Smtp-Source: AH8x2244mTRWf84oxuzv7MKa0mGfekYCy5DJsWWVx3JpIW1nLAHq4tPTjXFeZpAL3K+TIEzXUSTS X-Received: by 10.101.97.175 with SMTP id i15mr5394352pgv.55.1519301353177; Thu, 22 Feb 2018 04:09:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519301353; cv=none; d=google.com; s=arc-20160816; b=G8R0l8h8JzV14t1wkVBR2YpGUym5jwIElZwamZED4Rex7lQphBwx2xtL38VhwZ9QN7 r0DyZdinWhib/bJ6iscZ5Rn+Sxtzdhs4QfLmtkzj4vfhIsX24kp7TyzSG3YKg7raPfga a0DY1PMHSzy+pJ1JnDlGPb4XZP3FLr8ewEgYp2mvKux7Rtt9SJNif8l1TPsW9npqUHNK X5fSOGPMOFnehtVXs5T5KC2J1r4XiYtP1FoiGAm7sJQ/wqL5nOaci3+W7k55Tz3ygsVH 2ohSkcISnVYD5VPFoSX3meVllj7gl5JQqc4unTQlfneKQ9y0iVNwObYGzA/IsfYtRASB c9ig== 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=otTlxzdFRlCZXXWYRoPXAoaQP9cuL01zOjUTZrY1GMY=; b=UgHts71rwjI5G5urc+jrlNvb/PDiSqvoVOvilQnGL2L4MvEvKM9oJ8l+D4/hHa2jtw 6Pt68uEr9NXfdH9eTO8DzWEnEjlk27dXImVoCrB3gulPnJc3AyJuPaBOAHt/U3nbkKvJ p2l2nqg7J4tkajIGA6MsRRB9T4iyRlqW2Dg9nDruXrV2Zv9kjUHabRvVBg0LY2QvR9cn TAPh2f8qAIOxYj9nKgoDjvElnDwQZEgeDwVEaGKl2puQ1N1K0TniglIzAq+tsN2NyUbR bhRlqgSh+ogHf0taGHLhOsvuNQ8Il4ipjsxu/0hhPGviYCxqmdss2lH07BkEq42lbpaD G5sg== 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 61-v6si2645547plz.417.2018.02.22.04.08.58; Thu, 22 Feb 2018 04:09:13 -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 S932291AbeBVMFz (ORCPT + 99 others); Thu, 22 Feb 2018 07:05:55 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:35978 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753609AbeBVMFw (ORCPT ); Thu, 22 Feb 2018 07:05:52 -0500 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w1MC50gq117765 for ; Thu, 22 Feb 2018 07:05:52 -0500 Received: from e06smtp11.uk.ibm.com (e06smtp11.uk.ibm.com [195.75.94.107]) by mx0a-001b2d01.pphosted.com with ESMTP id 2g9tqtfbpv-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 22 Feb 2018 07:05:52 -0500 Received: from localhost by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 22 Feb 2018 12:05:45 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp11.uk.ibm.com (192.168.101.141) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 22 Feb 2018 12:05:43 -0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w1MC5ho247054988; Thu, 22 Feb 2018 12:05:43 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 09F8A11C05C; Thu, 22 Feb 2018 11:58:45 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C6B4911C05B; Thu, 22 Feb 2018 11:58:44 +0000 (GMT) Received: from dyn-9-152-212-171.boeblingen.de.ibm.com (unknown [9.152.212.171]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Thu, 22 Feb 2018 11:58:44 +0000 (GMT) Date: Thu, 22 Feb 2018 13:05:41 +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 CONFIG_HAVE_KVM_EVENTFD 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-000004367FDB X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18022212-0041-0000-0000-000020D898DA 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 Move the kvm_arch_irq_routing_update() prototype outside of ifdef CONFIG_HAVE_KVM_EVENTFD guards to fix the following sparse warning: arch/s390/kvm/../../../virt/kvm/irqchip.c:171:28: warning: symbol 'kvm_arch_irq_routing_update' was not declared. Should it be static? Signed-off-by: Sebastian Ott --- include/linux/kvm_host.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index ed3d4ddbaff3..6930c63126c7 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -1105,7 +1105,6 @@ static inline void kvm_irq_routing_update(struct kvm *kvm) { } #endif -void kvm_arch_irq_routing_update(struct kvm *kvm); static inline int kvm_ioeventfd(struct kvm *kvm, struct kvm_ioeventfd *args) { @@ -1114,6 +1113,8 @@ static inline int kvm_ioeventfd(struct kvm *kvm, struct kvm_ioeventfd *args) #endif /* CONFIG_HAVE_KVM_EVENTFD */ +void kvm_arch_irq_routing_update(struct kvm *kvm); + static inline void kvm_make_request(int req, struct kvm_vcpu *vcpu) { /* -- 2.13.4