Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3706522rwb; Sat, 3 Dec 2022 09:15:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf5BcOvX92TAusu7G7CRJ83DfVpp0c9v4+XrobgUSB9a93yOHJRjB4kdPfpkG14CewsWR9HY X-Received: by 2002:a05:6402:298f:b0:468:f142:3040 with SMTP id eq15-20020a056402298f00b00468f1423040mr67393848edb.107.1670087727999; Sat, 03 Dec 2022 09:15:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670087727; cv=none; d=google.com; s=arc-20160816; b=ixbJhCoZaB/S+tFI6q9Ji63JINZ/rph/ucpZbHMzfkZ7/s8oC+vZ0v22gGCzg4p9xF nxexbki3s4pKW7h2Rgod4yK2/elNCIiESHmaOpPKruBZNOtfzsRlPJEJNrV+6i3RhbPG 6lbbFzTLSghVyfC6jc7H9RIAWRI5Tx3tUQGsQw/fE3G+MCDzfTNKlcC9kcc8MCihTYuo BPD3Ribdx7H89OODW18Ng8YnOTuKHfiscQNdDYRmHbEuFTLoyUxEVv1mHKATtxS+ESKf 10BAJj8KFy0BEow5JHIi5+u3WMmMZEQlqDsbpRltViwXRr7lfbb2X4XaZmItgYB1Ar1a GdkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=laARktXzsCWWxQ47wAwjRlPa+Mst81sopb4J1Rps3oc=; b=BGbULc3QupolYyp2aAJZFl57DupYDHSrciAijpuLFSNd2wfALRPG7I2MEhwLQgF9tp KyT9nPajBGt13UYD+YuHU1W1swYtuP7p/hYzgfLnKRh0vOxcTxkFst3vFdDZcjIQfVy6 hRONIIeHuC9tgE7eF/+rQhhmyQDKfBjY9/o9OdcAcFaGBiUJVuhntP//G6MsEa/ii3QP gPHYfhx3p4PJIpWqGPnBgHshmr7cOvKoU6xGqmOVS0GJmrEXKJKGqp0Rw6GvLVIqrMMT bJ8ry+pr+pQRVW/EZiM+jxs5tINjcjPo93zm6RqmIvMNF2pzP94WL79oZLSPB5q7xRra 3eeA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n21-20020aa7db55000000b004572618668asi7712936edt.461.2022.12.03.09.15.06; Sat, 03 Dec 2022 09:15:27 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229436AbiLCQty (ORCPT + 82 others); Sat, 3 Dec 2022 11:49:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229756AbiLCQtx (ORCPT ); Sat, 3 Dec 2022 11:49:53 -0500 Received: from smtp.smtpout.orange.fr (smtp-11.smtpout.orange.fr [80.12.242.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CAE820BD4 for ; Sat, 3 Dec 2022 08:49:50 -0800 (PST) Received: from pop-os.home ([86.243.100.34]) by smtp.orange.fr with ESMTPA id 1VhypqniCap0Y1VhypzTXS; Sat, 03 Dec 2022 17:49:48 +0100 X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sat, 03 Dec 2022 17:49:48 +0100 X-ME-IP: 86.243.100.34 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] packet: Don't include Date: Sat, 3 Dec 2022 17:49:44 +0100 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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 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! Just declaring 'struct mutex' and 'struct hlist_head' would also be an option. It would remove the need of any include, but is more likely to break something. --- 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; -- 2.34.1