Message ID | 88d6a1d88764cca328610854f890a9ca1f4b029e.1670086246.git.christophe.jaillet@wanadoo.fr |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1446365wrr; Sat, 3 Dec 2022 08:55:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf5YtlyMD6GmTDZ9FGaLttj9KeTGuqcuFzQkzApezevLMTdfmMScPi0h9QzBqVVRS9fXA1dg X-Received: by 2002:a65:460e:0:b0:478:cae:3097 with SMTP id v14-20020a65460e000000b004780cae3097mr28403120pgq.389.1670086531849; Sat, 03 Dec 2022 08:55:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670086531; cv=none; d=google.com; s=arc-20160816; b=xZq7B8oIJBMCr37ELlwG5zyGFgrr84S8nifRkHDihvA/dOKzGZBv6RpHrk0PQp80HL 60mrGT+PJ1qNWZ6JMT1Vruitz4rgLWpdYxfR9CkJiXdBCLjvcz5I56Cr01GzVs5TvSvL H8Pfrq/K5WsLxnoRINpEfuNprVh5zyAZHrs6uN+cHvvXS13B0fmwa/OLoPAqiMfEINr+ iZr3iI3lt8JRKqX7K+QD9hT3nZ/cR7jfHhXuv5//KvRr1Ax0iofVCq32r86EdRsXF+kZ ZYu5HJDIKg7RppzYcbm8xePFJGoIahp2RPpVcRQdtUcsbaJMufM8SDHVUZyK1ox64cNA usaw== 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=eqbLy7NRgSV+z/MzQ6tHZBLJnZzMEgDaWMwc0eucZlg=; b=Psmy92t83qWrfkWsZw2xIiDDxiQq/OhNE8pN2VD1Q8AS+KXsaItEy250I5J4Wl3uta dTOkJ7EZKYRL2jJOkn7Cv7XnxFwozio3hawoNghFaZnrwKlP0LnKSb98M5tpRCV1i473 BJEeUw3pT73vg1DjvMN+BiP63Rjqbvgr+XXMBxYbrGWeHas9HkqCzj0leeMb2oT8zfwN 3AlStN14fL7GNt+HoPiS1ezukccDMxghw14Suy42JnAjioho1YzON5s+8VQCEyHW3Zvo Z+8V+piaspaZ0sazpKi3hxWxJUYQK1P0xJDn/L1cc6BTBWrUpu4S0RlFqO+hILVcRIfq NTNg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d9-20020a655889000000b00476c8632d24si10492598pgu.686.2022.12.03.08.55.18; Sat, 03 Dec 2022 08:55:31 -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 S229899AbiLCQvu (ORCPT <rfc822;lhua1029@gmail.com> + 99 others); Sat, 3 Dec 2022 11:51:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229895AbiLCQvm (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 3 Dec 2022 11:51:42 -0500 Received: from smtp.smtpout.orange.fr (smtp-22.smtpout.orange.fr [80.12.242.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79E972126C for <linux-kernel@vger.kernel.org>; Sat, 3 Dec 2022 08:51:10 -0800 (PST) Received: from pop-os.home ([86.243.100.34]) by smtp.orange.fr with ESMTPA id 1VjGpuTflbw2u1VjGpvypk; Sat, 03 Dec 2022 17:51:08 +0100 X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sat, 03 Dec 2022 17:51:08 +0100 X-ME-IP: 86.243.100.34 From: Christophe JAILLET <christophe.jaillet@wanadoo.fr> To: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= <bjorn@kernel.org>, Magnus Karlsson <magnus.karlsson@intel.com>, Maciej Fijalkowski <maciej.fijalkowski@intel.com>, Jonathan Lemon <jonathan.lemon@gmail.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Alexei Starovoitov <ast@kernel.org>, Daniel Borkmann <daniel@iogearbox.net>, Jesper Dangaard Brouer <hawk@kernel.org>, John Fastabend <john.fastabend@gmail.com> Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET <christophe.jaillet@wanadoo.fr>, netdev@vger.kernel.org, bpf@vger.kernel.org Subject: [PATCH] net: xsk: Don't include <linux/rculist.h> Date: Sat, 3 Dec 2022 17:51:04 +0100 Message-Id: <88d6a1d88764cca328610854f890a9ca1f4b029e.1670086246.git.christophe.jaillet@wanadoo.fr> 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=ham 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751212655001624952?= X-GMAIL-MSGID: =?utf-8?q?1751212655001624952?= |
Series |
net: xsk: Don't include <linux/rculist.h>
|
|
Commit Message
Christophe JAILLET
Dec. 3, 2022, 4:51 p.m. UTC
There is no need to include <linux/rculist.h> here.
Prefer the less invasive <linux/types.h> which is needed for 'hlist_head'.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
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/xdp.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Christophe JAILLET wrote: > There is no need to include <linux/rculist.h> here. > > Prefer the less invasive <linux/types.h> which is needed for 'hlist_head'. > > Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> > --- > 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/xdp.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/net/netns/xdp.h b/include/net/netns/xdp.h > index e5734261ba0a..21a4f25a187a 100644 > --- a/include/net/netns/xdp.h > +++ b/include/net/netns/xdp.h > @@ -2,8 +2,8 @@ > #ifndef __NETNS_XDP_H__ > #define __NETNS_XDP_H__ > > -#include <linux/rculist.h> > #include <linux/mutex.h> > +#include <linux/types.h> > > struct netns_xdp { > struct mutex lock; > -- > 2.34.1 > Acked-by: John Fastabend <john.fastabend@gmail.com>
Hello: This patch was applied to bpf/bpf-next.git (master) by Alexei Starovoitov <ast@kernel.org>: On Sat, 3 Dec 2022 17:51:04 +0100 you wrote: > There is no need to include <linux/rculist.h> here. > > Prefer the less invasive <linux/types.h> which is needed for 'hlist_head'. > > Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> > --- > Let see if build-bots agree with me! > > [...] Here is the summary with links: - net: xsk: Don't include <linux/rculist.h> https://git.kernel.org/bpf/bpf-next/c/e9b4aeed5669 You are awesome, thank you!
diff --git a/include/net/netns/xdp.h b/include/net/netns/xdp.h index e5734261ba0a..21a4f25a187a 100644 --- a/include/net/netns/xdp.h +++ b/include/net/netns/xdp.h @@ -2,8 +2,8 @@ #ifndef __NETNS_XDP_H__ #define __NETNS_XDP_H__ -#include <linux/rculist.h> #include <linux/mutex.h> +#include <linux/types.h> struct netns_xdp { struct mutex lock;