Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5989489ybp; Tue, 15 Oct 2019 08:02:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqxcCn/MXSbxVjtqP5SZ02fm9fuCb+T1bSDgOjDZQCxtwn85Ar4n8jsrW4oatkdP378eZxPO X-Received: by 2002:a50:c90d:: with SMTP id o13mr33873480edh.85.1571151734394; Tue, 15 Oct 2019 08:02:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571151734; cv=none; d=google.com; s=arc-20160816; b=YeX2c2sxTgtv1UVEs7TFEoqpOOcgwt0rvkrjT0/nDMEwhgvkvvKafNT+JJj5ZcsJj6 52CwyiFyxbXUdht49PGpgLlVXj86hmn1aT5rGBDWBV4WJ+na82ged1GSQGnk6roenRab 0+QQpLWH/ACINWHFbDMCPdVs3Oa/E2dIyM0YtbWrxjPBna7GlUErUPd4TjeNLefcm+jW +BfS00R7uqOvVCA8UQA0C/sknBKF0BaCxVkLpBN7xG69OEbyIExU/4xgnQWXsUtUeOV5 VFwq24fKzhEIs/YbPPkJpk3PO8IbzsOYXWdwfQ2V07XPOGCV6j9LWymIrAopgSzXXrpt a8OQ== 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 :message-id:date:subject:cc:to:from; bh=DdisdBW2UaGWSmd5nd5VMFdFNMscZw3QH4uv2hHIbBA=; b=HHKWt/C9I3Cb68608bkVX2OPmQzM/8b35YQSkPIwN9fJyJ3G81AiLz1dlInQhB0NLx hOTS+C35Ej/t0ZveIILy2uod34Lr16dgJDMHSTtW4djY6sJ02eZHC2gOrz6BxyFcVupi I3IK/cEvjR6018TnLpgRkYG5tV0j/nZWgtCm5h8lF99JvJlr9HZcV3WW+7btY6XqS0dQ 0H0FS2ui5Vkodd8SVKgsztj3LlQVk2b+m/xbyUHADnZFjgKfh1eawkXWbxbLMq74gqCZ Y0czZFQlqPmIz/OcuHcstiH6KsBJVJW2n7Hx2GbKV3LTTgLWqCq5Jh7uKiukUMpnjqwV Bc8g== 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 e12si15707052edb.262.2019.10.15.08.01.48; Tue, 15 Oct 2019 08:02:14 -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 S1733214AbfJOPBA (ORCPT + 99 others); Tue, 15 Oct 2019 11:01:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53448 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726523AbfJOPA7 (ORCPT ); Tue, 15 Oct 2019 11:00:59 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C47B9308A98C; Tue, 15 Oct 2019 15:00:59 +0000 (UTC) Received: from steredhat.redhat.com (ovpn-116-56.ams2.redhat.com [10.36.116.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6CE31194BE; Tue, 15 Oct 2019 15:00:52 +0000 (UTC) From: Stefano Garzarella To: virtualization@lists.linux-foundation.org Cc: kvm@vger.kernel.org, Stefan Hajnoczi , "Michael S. Tsirkin" , Jason Wang , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH] vsock/virtio: remove unused 'work' field from 'struct virtio_vsock_pkt' Date: Tue, 15 Oct 2019 17:00:51 +0200 Message-Id: <20191015150051.104631-1-sgarzare@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Tue, 15 Oct 2019 15:00:59 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The 'work' field was introduced with commit 06a8fc78367d0 ("VSOCK: Introduce virtio_vsock_common.ko") but it is never used in the code, so we can remove it to save memory allocated in the per-packet 'struct virtio_vsock_pkt' Suggested-by: Michael S. Tsirkin Signed-off-by: Stefano Garzarella --- include/linux/virtio_vsock.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/virtio_vsock.h b/include/linux/virtio_vsock.h index 4c7781f4b29b..07875ccc7bb5 100644 --- a/include/linux/virtio_vsock.h +++ b/include/linux/virtio_vsock.h @@ -48,7 +48,6 @@ struct virtio_vsock_sock { struct virtio_vsock_pkt { struct virtio_vsock_hdr hdr; - struct work_struct work; struct list_head list; /* socket refcnt not held, only use for cancellation */ struct vsock_sock *vsk; -- 2.21.0