Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5431227rwb; Sun, 4 Dec 2022 21:45:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf66GGyGGKaKR9q7o/wqgaG167FxnoKwZG9o/UHGk/16nnR/74w/CVPocWhMIaofxuLD0ysy X-Received: by 2002:a05:6a00:24c1:b0:56e:a001:8cb0 with SMTP id d1-20020a056a0024c100b0056ea0018cb0mr64084667pfv.60.1670219132044; Sun, 04 Dec 2022 21:45:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670219132; cv=none; d=google.com; s=arc-20160816; b=GzHcMblU+1HOrxOL6SM9Z4fg6GpeeU9TOoS9xAnfb+UvR7M5C2d83qIzPGGsbYIspq QsZDxn/r3ETSHfct1NKDGUG0Qa0UbcUI3HtGutQ1BsHlTKKaktkVeF0RkZypUu6Y/zmb lFZu7eg8KfQv/GNnLwwCfk4C88a1xbjRg7aATZRVt9VyGUoWIPPYrwCQ707aHYkh0rWA P/xs0ZXdbcV19riLmhJS61cTFzT/70Bg1ylO4Uh1w3Nw0Oi6h7tw8HEdEs3LMOq0Z5z1 6YWL+W+xeOCeht6LlpILpxOjRNhwIgUatU/k2r4tUYHbu5iY9sG5mdwPrEu/OyYjRbla +UYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=h8AkiS2Qfxp4kAJlb5zxEpYsW01DD5z1qyB1/NcGlCU=; b=SyM0THfVJbADOlqVA6pwkBi6eNMkInh+t4352t7t/FiC1MlywLZ2VdGuLRscIK+jWm ugwEiNCQRRnin86fAcFugODXhzupfxCPAKdHMXIepg0kh8HWDrtNNRdt0SZkvHTxHCEo WaCH5pvUCN8IjdQVqpUpzyFVYXZVjCg8tZWLa+S7Sc4sOBvvVSISjRTPqOCkE7UjlEwq XffUXo0Ug+gegS8EQ1MxbNNnxyYubZkf647b6i6gyb8VwHZlnvl1dmjgi/4OakLBq9sU wsDY2GX9XOB+Zu0x2ATQpVPAoBBkbtUj6CkJybNRb+lfoLPwXhCL/NRLTC37dTRu3lwk Jogg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=jRMfCPVI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id eb19-20020a056a004c9300b0056cb8f6f027si13757007pfb.357.2022.12.04.21.45.20; Sun, 04 Dec 2022 21:45:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=jRMfCPVI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231334AbiLEF0C (ORCPT + 83 others); Mon, 5 Dec 2022 00:26:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231760AbiLEFZb (ORCPT ); Mon, 5 Dec 2022 00:25:31 -0500 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A44F010049 for ; Sun, 4 Dec 2022 21:25:02 -0800 (PST) Received: by mail-yb1-xb2d.google.com with SMTP id 7so13103568ybp.13 for ; Sun, 04 Dec 2022 21:25:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=h8AkiS2Qfxp4kAJlb5zxEpYsW01DD5z1qyB1/NcGlCU=; b=jRMfCPVIXHdaUPlDFQX14oqQwK/ECBMzc+1qN6zwVN90FJM+Uee6n6QODpuu3UhVfY 1klgUmDInvjv/yf5Fd79wrynLJeg0sfU7gtF+0iawuIY8wYTib+HWsyDuBQc0psygD1L q8V3Ltl3iEXghaA1Crzyg8EnHSBfUGBT9ll+7xoX9ZH55t+YNIWGk79B8Lt9m1Qe+yGf Qgc2teWHmNo5j3rvOccKHA1orS36SbOKU1vN/o+LjOudpRy72n42CzPgjzkmGeTe8Z/9 91Aku0G41bWd2XJZJotted3NkqW0UybR64KuC7l0EOk18PPyzWyHlQn+mLackLiAVPvm aZ9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=h8AkiS2Qfxp4kAJlb5zxEpYsW01DD5z1qyB1/NcGlCU=; b=dcm8cEZjx1N/2Y0bTUAGcpIgHQF8dSye7i5UySXlATshn0zDccgSE61A9OfrW+zfj2 WPSpm7boBHVrfPGb19JXOKL0kRaKR6zFFwF7pkShZb8/tNmOTzrMq2jP+cZSa+lQPTWw CqLcycpqwThk+K1dOHlERVB9fzK9TwFPV/0aLK6VGIOInd8OHYVJLSU7uJGo6vAd/C/a o71eKEIA02mbqb9+itTsj5OrJTQ+OU0m1tXfGeSKXJLYYJ6OL/PJ//P1daJwF5cPH8al eiOEbgYAdaR4CXoi0mMGQQI38Tq47KRvIsUmQEKzWq1V8dqhdoqFMpGSpMcdm6FQo+9t 0O8w== X-Gm-Message-State: ANoB5pkClsS7ijtSwFbyFESzYFp/kf7IJfbPn0nyw4E73qi9lL1pjOQi PKXK8kfkonARLOVv0N84KTW3clkVS181GgkKPmBFdw== X-Received: by 2002:a25:d655:0:b0:6fc:1c96:c9fe with SMTP id n82-20020a25d655000000b006fc1c96c9femr16557533ybg.36.1670217901547; Sun, 04 Dec 2022 21:25:01 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Eric Dumazet Date: Mon, 5 Dec 2022 06:24:50 +0100 Message-ID: Subject: Re: [PATCH] packet: Don't include To: Christophe JAILLET Cc: "David S. Miller" , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, netdev@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Dec 3, 2022 at 5:49 PM Christophe JAILLET wrote: > > There is no need to include here. > > Prefer the less invasive which is needed for 'hlist_head'. > > Signed-off-by: Christophe JAILLET > --- > Let see if build-bots agree with me! > net/packet/af_packet.c does not explicitly include linux/rculist.h It might be provided by include/linux/netdevice.h, but I wonder if this is best practice. > Just declaring 'struct mutex' and 'struct hlist_head' would also be an > option. I do not get it, see [1] > It would remove the need of any include, but is more likely to break > something. I do not see why you are even trying this ? > --- > include/net/netns/packet.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/net/netns/packet.h b/include/net/netns/packet.h > index aae69bb43cde..74750865df36 100644 > --- a/include/net/netns/packet.h > +++ b/include/net/netns/packet.h > @@ -5,8 +5,8 @@ > #ifndef __NETNS_PACKET_H__ > #define __NETNS_PACKET_H__ > > -#include > #include > +#include > > struct netns_packet { > struct mutex sklist_lock; [1] Definition of 'struct mutex' is definitely needed here. > -- > 2.34.1 >