Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2233981ybi; Thu, 20 Jun 2019 11:19:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgT8KKN6TqTpa+11g4cAbXpc5gJ+y2GPdQdr9zka2xcMBNegEeyX8DiYCk7v0qPcUu3B3k X-Received: by 2002:a63:2109:: with SMTP id h9mr14159726pgh.51.1561054752911; Thu, 20 Jun 2019 11:19:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561054752; cv=none; d=google.com; s=arc-20160816; b=buzlMEVr1bxAPruBKDo4j0Bb0ZesNFKwy6pDO56nknfSKXnNjrNMiWEFA7vCKrlGOf mNnm2LAWDaice6sagzjBtDYHrU8h5UWJAHgyDpge/dPuS2tInZ1dDT0jVcYxXPPCZa5q n64U1bvN58f6ndv5sYXpBGLvKt0mBtDEGuqnGo1hXTOm/DsJCW+8xp/qCz/dOR112jEz kquy26E47sdm9GnmTh9Tk/zQpUQntgI9bblwQrbcYxkavC2cXjXDbzy0RYLbQ7HJ6ywI mwO+8/6V8CFUjpNmQY62otFZnkVvRtB9KfED87KmtEvzJQntINT7FfamWDvUdPpM2OMy dIzQ== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=re8boLqNpbNAQ+Qw9pvSN1HjuiAnpZkyZxBJ+nxNU1s=; b=Pc8NTCHcq3qs1Zu4s8f946mYwcntiE+KPKmRDXCWlufZIiT7AwwjQY+YkaXNss0Puz TPTpxwK3hW2Lge9o/dN/eWy6Y2lZPYK5VjWwaXzYQXAd/u2OKPR1cFhZN7QC3JIjogCt 0S1ZMsLd3J7JB+NqwItbeSaDJ9Wlr3L5lU6ZZYGNsnf4yPkA+K0kmHAASFVaqQ5+7hE5 ww/MBq8bTNArZUEQ7B6TdqcDQCj8nRY26C0pv1OkXDSj8Ay8aiShZaQ8uFLBQ9f8Vo9F YLEz5d9dRfQG7DRompvOyhNYzzx7qErzIo+iuWsQEaQKFhVzi0foCEeNJ/UYCMHrVhrv PUxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=H1CwF9NN; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bf7si315175plb.216.2019.06.20.11.18.58; Thu, 20 Jun 2019 11:19:12 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=H1CwF9NN; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729589AbfFTSSr (ORCPT + 99 others); Thu, 20 Jun 2019 14:18:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:45196 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729715AbfFTSQG (ORCPT ); Thu, 20 Jun 2019 14:16:06 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B97D5205F4; Thu, 20 Jun 2019 18:16:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561054565; bh=3T6C3k901ZrP7BGeSMVXb5XHs7JW+gMCCSvDAWJ0UoQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H1CwF9NN0B67S+4O2j25gYB0yywp51fblJU1GGUR6Upo0vabKlI1FCHYg5jX8SnyW Z2+75PJT3+w0Zgh+EJE8X/+wY7Z3IHrg1CzHvrC1Yj0aIQHlN3xNbalgqN9nldEjAQ FIYM1M9Z4yR4v0a4oYomsfvfdSx0lvfUePO3v7jE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, YueHaibing , Juergen Gross , Boris Ostrovsky , Sasha Levin Subject: [PATCH 5.1 72/98] xen/pvcalls: Remove set but not used variable Date: Thu, 20 Jun 2019 19:57:39 +0200 Message-Id: <20190620174352.811294321@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190620174349.443386789@linuxfoundation.org> References: <20190620174349.443386789@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 41349672e3cbc2e8349831f21253509c3415aa2b ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/xen/pvcalls-front.c: In function pvcalls_front_sendmsg: drivers/xen/pvcalls-front.c:543:25: warning: variable bedata set but not used [-Wunused-but-set-variable] drivers/xen/pvcalls-front.c: In function pvcalls_front_recvmsg: drivers/xen/pvcalls-front.c:638:25: warning: variable bedata set but not used [-Wunused-but-set-variable] They are never used since introduction. Signed-off-by: YueHaibing Reviewed-by: Juergen Gross Signed-off-by: Boris Ostrovsky Signed-off-by: Sasha Levin --- drivers/xen/pvcalls-front.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/xen/pvcalls-front.c b/drivers/xen/pvcalls-front.c index 8a249c95c193..d7438fdc5706 100644 --- a/drivers/xen/pvcalls-front.c +++ b/drivers/xen/pvcalls-front.c @@ -540,7 +540,6 @@ static int __write_ring(struct pvcalls_data_intf *intf, int pvcalls_front_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) { - struct pvcalls_bedata *bedata; struct sock_mapping *map; int sent, tot_sent = 0; int count = 0, flags; @@ -552,7 +551,6 @@ int pvcalls_front_sendmsg(struct socket *sock, struct msghdr *msg, map = pvcalls_enter_sock(sock); if (IS_ERR(map)) return PTR_ERR(map); - bedata = dev_get_drvdata(&pvcalls_front_dev->dev); mutex_lock(&map->active.out_mutex); if ((flags & MSG_DONTWAIT) && !pvcalls_front_write_todo(map)) { @@ -635,7 +633,6 @@ static int __read_ring(struct pvcalls_data_intf *intf, int pvcalls_front_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, int flags) { - struct pvcalls_bedata *bedata; int ret; struct sock_mapping *map; @@ -645,7 +642,6 @@ int pvcalls_front_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, map = pvcalls_enter_sock(sock); if (IS_ERR(map)) return PTR_ERR(map); - bedata = dev_get_drvdata(&pvcalls_front_dev->dev); mutex_lock(&map->active.in_mutex); if (len > XEN_FLEX_RING_SIZE(PVCALLS_RING_ORDER)) -- 2.20.1