Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3304922ybn; Fri, 27 Sep 2019 04:28:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqyo06Z2FpxxrTLT9Zsa015eu6PTbOor5ih9LiiD/pR+mnE9LPi85v9pgNS51pP57kjJt5XE X-Received: by 2002:a50:b501:: with SMTP id y1mr3815018edd.167.1569583683018; Fri, 27 Sep 2019 04:28:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569583683; cv=none; d=google.com; s=arc-20160816; b=hmROqRUYc4r4pn0PnOVVTR8WLcy97+lQNthRZb2EAhtlCQnfhOEmzJ4N3N4vL/uEqT CV2czZN7DUsRg3n6h9zCSy5+gwcH1gtZ/4WwB6kqq8L2hnFLU0XkSyZH9AOSEQcnZseG BxCgFg+oxgqKxvVWsv+vxVdU+2QF86+cnJA2Xq32ObJHBjapjbDK6hEMgGyVo8h+2FmF BxE5UyJ3aVlc9NuUn8tQgLRruClHBZKUKXsulsgLq+TjJhEonpWsXNitbzk7YrddEGnW qUBOg8HqTYv7SP2Drm4PvF5ygeBj5HtrJc1C+WydpDZCr1zJ8jrjbU529JMTp8bV50ES T+Yg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=1rNMNhpDco8Czx/N4KzbQdkMsT0rRSgrLvLQaDZpGFI=; b=uzhjjCDFMlxa8/hEO1Dq6zPxbil/HyRtyuJ1NFhZkLzWQNV/w+GM4pVsiVk6Jwr2VW WAolsltZiq1Tp+Q4dXlfnbp/H0MgYoyEIRDgKCLw56TkUkqFfkONpctCVgEABKdo0+jP XCn6rrLq0HJt//d0STzUAWRx9thiqUZHPB/UrWrgVJuJLZWaiuGD3X9q2DCSREIY5Vh1 hCYJM77lBiNhZ8vK3M8AhOLMOsbx+P8fCNVgsey0TigrimoOrQG5YL//IF4t6RZ29B4t BW7cwEVhaLqj7gZDEyeL6jq0v16TiPqqiF6yreoYjlz3BhTNRDzFedjz/M4M3FBhdwRh CYmA== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t37si1567373edd.25.2019.09.27.04.27.38; Fri, 27 Sep 2019 04:28:03 -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; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727230AbfI0L1X (ORCPT + 99 others); Fri, 27 Sep 2019 07:27:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39806 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725890AbfI0L1W (ORCPT ); Fri, 27 Sep 2019 07:27:22 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BD24A8A1CA7; Fri, 27 Sep 2019 11:27:21 +0000 (UTC) Received: from steredhat.redhat.com (ovpn-117-249.ams2.redhat.com [10.36.117.249]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3F2445D9C3; Fri, 27 Sep 2019 11:27:17 +0000 (UTC) From: Stefano Garzarella To: netdev@vger.kernel.org Cc: linux-hyperv@vger.kernel.org, "K. Y. Srinivasan" , Stefan Hajnoczi , Sasha Levin , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, "David S. Miller" , virtualization@lists.linux-foundation.org, Stephen Hemminger , Jason Wang , "Michael S. Tsirkin" , Haiyang Zhang , Dexuan Cui , Jorgen Hansen Subject: [RFC PATCH 01/13] vsock/vmci: remove unused VSOCK_DEFAULT_CONNECT_TIMEOUT Date: Fri, 27 Sep 2019 13:26:51 +0200 Message-Id: <20190927112703.17745-2-sgarzare@redhat.com> In-Reply-To: <20190927112703.17745-1-sgarzare@redhat.com> References: <20190927112703.17745-1-sgarzare@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.69]); Fri, 27 Sep 2019 11:27:21 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The VSOCK_DEFAULT_CONNECT_TIMEOUT definition was introduced with commit d021c344051af ("VSOCK: Introduce VM Sockets"), but it is never used in the net/vmw_vsock/vmci_transport.c. VSOCK_DEFAULT_CONNECT_TIMEOUT is used and defined in net/vmw_vsock/af_vsock.c Signed-off-by: Stefano Garzarella --- net/vmw_vsock/vmci_transport.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/net/vmw_vsock/vmci_transport.c b/net/vmw_vsock/vmci_transport.c index 8c9c4ed90fa7..f8e3131ac480 100644 --- a/net/vmw_vsock/vmci_transport.c +++ b/net/vmw_vsock/vmci_transport.c @@ -78,11 +78,6 @@ static int PROTOCOL_OVERRIDE = -1; #define VMCI_TRANSPORT_DEFAULT_QP_SIZE 262144 #define VMCI_TRANSPORT_DEFAULT_QP_SIZE_MAX 262144 -/* The default peer timeout indicates how long we will wait for a peer response - * to a control message. - */ -#define VSOCK_DEFAULT_CONNECT_TIMEOUT (2 * HZ) - /* Helper function to convert from a VMCI error code to a VSock error code. */ static s32 vmci_transport_error_to_vsock_error(s32 vmci_error) -- 2.21.0