From patchwork Thu Aug 22 06:48:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 13772743 X-Patchwork-Delegate: kuba@kernel.org Received: from msa.smtpout.orange.fr (smtp-81.smtpout.orange.fr [80.12.242.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A6B1881727; Thu, 22 Aug 2024 06:48:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.12.242.81 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724309306; cv=none; b=dd6j4aOYJT4DF+ZnMKAqtwvx66DQZ3gGMp8YZJ1pXhPiJ66Wl4wUDhS+SnyxLphSIGelr9F1TKeu9BOHSjS1Nu4UNKKHpSG+VTgh/WtCnNhlKnTMtY2XM2FB/mzVtPZwoGdUTl6kUnf2ySrchv+kP+1u0isjrnY52F1bjGj4Auo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724309306; c=relaxed/simple; bh=Vv+JFD2CzkTAfMbhy5w7mtzbTJmq3u64ky+VpulKiJk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mLr9b1NA7yzQhg2GrQ3UE3uKqYGkjXYEDO+z1G/2eN17o3suB1mRjlwlkr0FPeOLeTSiFXvt4voAzdmio2Rq5wrTt98lu+TAojQ7zFybgj7xz4bVy68lyoguxa8mRfp0OfUCKkhVbnkegWOFNGVfoDERsiwN6/J3eQd/Ys35LdQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wanadoo.fr; spf=pass smtp.mailfrom=wanadoo.fr; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b=pIBOMqcw; arc=none smtp.client-ip=80.12.242.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wanadoo.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wanadoo.fr Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b="pIBOMqcw" Received: from fedora.home ([90.11.132.44]) by smtp.orange.fr with ESMTPA id h1cJsOmCubNNsh1cKsvK1R; Thu, 22 Aug 2024 08:48:21 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1724309301; bh=gZvRex1A2ur/vW3xkDlKJFyOKmg+Ssh3nUW61ACjodo=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=pIBOMqcwXP0nUBUNua+0sxM4VSHBxoTg7p6ZZJhLl4ThgGCnhyueJmg+Pc/E8hol5 4RjAd97yCultEiBCQAkUl6J16ZpvSd7epGKJVE5QVQWhrHH2eIWnTPXqpsGGMPAaSg gemmynbBiz5lQTHN5AZdHnavWolp+FcwEBXLHax0smFq3QgG/C2OjUcK3musLpTC8+ bbUIfU1jPTAHlEY1qrODHs1oYb3WohRki2ARzeN7SJC/vHp6Edb9zoNPvUgNAsWkdZ XCdIIhu4PoRFtr2we1woMVeopZq6iF8caWKDmSVK0fkgyQLYmfpJsKagNn+95gz4ik vcVoE5MUUiKCg== X-ME-Helo: fedora.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Thu, 22 Aug 2024 08:48:21 +0200 X-ME-IP: 90.11.132.44 From: Christophe JAILLET To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , netdev@vger.kernel.org Subject: [PATCH ne]t-next net: netlink: Remove the dump_cb_mutex field from struct netlink_sock Date: Thu, 22 Aug 2024 08:48:15 +0200 Message-ID: X-Mailer: git-send-email 2.46.0 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org Commit 5fbf57a937f4 ("net: netlink: remove the cb_mutex "injection" from netlink core") has removed the usage of the 'dump_cb_mutex' field from the struct netlink_sock. Remove the field itself now. It saves a few bytes in the structure. Signed-off-by: Christophe JAILLET --- Compile tested only --- net/netlink/af_netlink.h | 1 - 1 file changed, 1 deletion(-) diff --git a/net/netlink/af_netlink.h b/net/netlink/af_netlink.h index 9751e29d4bbb..5b0e4e62ab8b 100644 --- a/net/netlink/af_netlink.h +++ b/net/netlink/af_netlink.h @@ -41,7 +41,6 @@ struct netlink_sock { struct netlink_callback cb; struct mutex nl_cb_mutex; - struct mutex *dump_cb_mutex; void (*netlink_rcv)(struct sk_buff *skb); int (*netlink_bind)(struct net *net, int group); void (*netlink_unbind)(struct net *net, int group);