Received: by 10.223.185.116 with SMTP id b49csp825607wrg; Fri, 23 Feb 2018 07:23:41 -0800 (PST) X-Google-Smtp-Source: AH8x2246Ax89R7FpStuWcqtHjP1Z01P2Qw8siql1VX7pwtZKMFosBkSKt0/ZsssoYgeOeDUDG39b X-Received: by 2002:a17:902:63:: with SMTP id 90-v6mr2020391pla.125.1519399421364; Fri, 23 Feb 2018 07:23:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519399421; cv=none; d=google.com; s=arc-20160816; b=YDGhepTBft9n39N4Lk+DTYBlQCQaf7bNfjYJ3dAvTZZ+Fn1pVpESFKVqGo8AoqKwpD maMNzQ8ncRwcDDHtDdrISc3kp9ZcKBIh87Br6usCF6q24cTAi1bM+K2t+Q+f+iZD9p1/ qRa1P5JxdRUHc2B4Nn80nIEz2MF1jD5vH02q8uMr/AbHCMLkHtc6p8umHj0alogjYBZ4 c57DICraTSU58KhXooe7hUlZhqPjvixYdMbZVL9RJbXdiDEIOGKdnfya3rXNE1X1GvI1 bmfreXEwdwXtkGG0dWXLz9k96CL2GJqdXdhaWa60mhb1at8Rj5BhUwcfoqt58uh4EL/F R2rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date:from :references:cc:to:subject:arc-authentication-results; bh=FaYNKhmuS68MxiSb+tDoGpMDvL3yXZJgbsAMYFFPPPI=; b=jPb8RqEUfUpZhnzQze5e2IOOBFMTHHv7mhGmYX4Or4FZvWQL7RfLpoNGjh5Y00lJEl KHSLz11QqOBXSjqx1wKKwL0rAb/VDGK/wyZRt8lgDpWQOqeDfRzKd1z5suf2Ky9jbppz RPj/UaKln47+8Ax4MgvbWp47oVhihwb7QSkeqwf9DOmqG6PRi8tKVhjlqWDXbrQvyKPt qkDGD936eZTw3BTLR8Qfcnj1cPzlpcQ6UC0bIia99SozMLPxo4FpyHgcNvaJWW6Ica0G kFXbpxrTU7sPSW6lLhNDW5VnGk7oom1jK/1DG6r4wHEZS4jLllsTR4v5lJtfWOO/0/OO N1ow== 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 o17si1625616pgc.665.2018.02.23.07.23.24; Fri, 23 Feb 2018 07:23:41 -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 S1751912AbeBWPVU (ORCPT + 99 others); Fri, 23 Feb 2018 10:21:20 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:58434 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751391AbeBWPVS (ORCPT ); Fri, 23 Feb 2018 10:21:18 -0500 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w1NFJCVf086611 for ; Fri, 23 Feb 2018 10:21:17 -0500 Received: from e06smtp15.uk.ibm.com (e06smtp15.uk.ibm.com [195.75.94.111]) by mx0b-001b2d01.pphosted.com with ESMTP id 2gahx9scyd-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 23 Feb 2018 10:21:17 -0500 Received: from localhost by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 23 Feb 2018 15:21:15 -0000 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp15.uk.ibm.com (192.168.101.145) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 23 Feb 2018 15:21:12 -0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w1NFLC2r42336362; Fri, 23 Feb 2018 15:21:12 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AFB40AE055; Fri, 23 Feb 2018 15:12:03 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7710AAE051; Fri, 23 Feb 2018 15:12:03 +0000 (GMT) Received: from oc7330422307.ibm.com (unknown [9.152.224.192]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 23 Feb 2018 15:12:03 +0000 (GMT) Subject: Re: [PATCH] kvm: fix warning for CONFIG_HAVE_KVM_EVENTFD builds To: Sebastian Ott , Paolo Bonzini , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org References: From: Christian Borntraeger Date: Fri, 23 Feb 2018 16:21:11 +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: 8bit X-TM-AS-GCONF: 00 x-cbid: 18022315-0020-0000-0000-000003FB0EF4 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18022315-0021-0000-0000-0000428F289F Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-23_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1802230190 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I can see this warnings as well and yes, kvm_arch_irq_routing_update seems to be available for CONFIG_HAVE_KVM_EVENTFD=y and =n. Seems that irqchip.c is compile independly from CONFIG_HAVE_KVM_EVENTFD, so Acked-by: Christian Borntraeger On 02/22/2018 01:05 PM, Sebastian Ott wrote: > 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) > { > /* >