From patchwork Thu May 30 14:18:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petre Ovidiu PIRCALABU X-Patchwork-Id: 10968917 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D7744912 for ; Thu, 30 May 2019 14:19:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C85CE28382 for ; Thu, 30 May 2019 14:19:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BC1E228B11; Thu, 30 May 2019 14:19:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DB89828972 for ; Thu, 30 May 2019 14:19:44 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hWLt0-00037B-Dd; Thu, 30 May 2019 14:18:30 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hWLsy-00036e-Mt for xen-devel@lists.xenproject.org; Thu, 30 May 2019 14:18:28 +0000 X-Inumbo-ID: c9e581c6-82e5-11e9-8980-bc764e045a96 Received: from mx01.bbu.dsd.mx.bitdefender.com (unknown [91.199.104.161]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id c9e581c6-82e5-11e9-8980-bc764e045a96; Thu, 30 May 2019 14:18:26 +0000 (UTC) Received: from smtp.bitdefender.com (smtp02.buh.bitdefender.net [10.17.80.76]) by mx01.bbu.dsd.mx.bitdefender.com (Postfix) with ESMTPS id 371AD305FFA3; Thu, 30 May 2019 17:18:25 +0300 (EEST) Received: from bitdefender.com (unknown [195.189.155.70]) by smtp.bitdefender.com (Postfix) with ESMTPSA id 250DD3086D01; Thu, 30 May 2019 17:18:25 +0300 (EEST) From: Petre Pircalabu To: xen-devel@lists.xenproject.org Date: Thu, 30 May 2019 17:18:17 +0300 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: MIME-Version: 1.0 Subject: [Xen-devel] =?utf-8?b?W1BBVENIIDMvOV0gdm1fZXZlbnQ6IE1ha2Ug4oCYbG9j?= =?utf-8?b?YWzigJkgZnVuY3Rpb25zIOKAmHN0YXRpY+KAmQ==?= X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Petre Pircalabu , Tamas K Lengyel , Razvan Cojocaru Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP vm_event_get_response, vm_event_resume, and vm_event_mark_and_pause are used only in xen/common/vm_event.c. Signed-off-by: Petre Pircalabu Reviewed-by: Andrew Cooper Acked-by: Tamas K Lengyel --- xen/common/vm_event.c | 6 +++--- xen/include/xen/vm_event.h | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/xen/common/vm_event.c b/xen/common/vm_event.c index d7c5f22..3505589 100644 --- a/xen/common/vm_event.c +++ b/xen/common/vm_event.c @@ -252,7 +252,7 @@ static inline void vm_event_release_slot(struct domain *d, * vm_event_mark_and_pause() tags vcpu and put it to sleep. * The vcpu will resume execution in vm_event_wake_blocked(). */ -void vm_event_mark_and_pause(struct vcpu *v, struct vm_event_domain *ved) +static void vm_event_mark_and_pause(struct vcpu *v, struct vm_event_domain *ved) { if ( !test_and_set_bit(ved->pause_flag, &v->pause_flags) ) { @@ -324,8 +324,8 @@ void vm_event_put_request(struct domain *d, notify_via_xen_event_channel(d, ved->xen_port); } -int vm_event_get_response(struct domain *d, struct vm_event_domain *ved, - vm_event_response_t *rsp) +static int vm_event_get_response(struct domain *d, struct vm_event_domain *ved, + vm_event_response_t *rsp) { vm_event_front_ring_t *front_ring; RING_IDX rsp_cons; diff --git a/xen/include/xen/vm_event.h b/xen/include/xen/vm_event.h index 53af2d5..7f6fb6d 100644 --- a/xen/include/xen/vm_event.h +++ b/xen/include/xen/vm_event.h @@ -64,9 +64,6 @@ void vm_event_cancel_slot(struct domain *d, struct vm_event_domain *ved); void vm_event_put_request(struct domain *d, struct vm_event_domain *ved, vm_event_request_t *req); -int vm_event_get_response(struct domain *d, struct vm_event_domain *ved, - vm_event_response_t *rsp); - int vm_event_domctl(struct domain *d, struct xen_domctl_vm_event_op *vec, XEN_GUEST_HANDLE_PARAM(void) u_domctl);