Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9B9C1C61DA0 for ; Thu, 26 Jan 2023 07:14:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233546AbjAZHOf (ORCPT ); Thu, 26 Jan 2023 02:14:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233283AbjAZHOc (ORCPT ); Thu, 26 Jan 2023 02:14:32 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 112664A1F2 for ; Wed, 25 Jan 2023 23:14:31 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B62B7B81CC6 for ; Thu, 26 Jan 2023 07:14:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27363C433A7; Thu, 26 Jan 2023 07:14:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674717268; bh=41/N6LtRk6c8HHuj5ty3hxm5Z1MeaEyhWU8v1NLK7ZE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sgjxgCKAjuaYZbsyPkG0fwNc78pk4JbbOqWszTV4eiOn+sPHJoUaohRkwUDG8c1Rp erwrGIJSdP0CWptuCNmqUWE7qNtUWWCYAcnH8Lp3ZPzCDy2+9lnQmPjyYFpS8+VNxJ /6DBBV4RTCgPpLP6jYQj61FTYvSNDxhY7KaEqT0eQgmOsF/8NzF9LvQvr2Fp9sldV/ ObIEZ+FS2jhz0ZfpDQBYXriJFe6aXt0vcqdMUjcG9Ey29IozVioWjgUzSbihxzV2aO O58M9ohR9S82XQMH97dY5xel+N2BKuOtS8HCpqI+t6Mn3lYnKQCHtb2N2sfTb3gBBO rnr9HqesjdDWQ== From: Jakub Kicinski To: davem@davemloft.net Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, Jakub Kicinski , imagedong@tencent.com Subject: [PATCH net-next 02/11] net: skbuff: drop the linux/net.h include Date: Wed, 25 Jan 2023 23:14:15 -0800 Message-Id: <20230126071424.1250056-3-kuba@kernel.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230126071424.1250056-1-kuba@kernel.org> References: <20230126071424.1250056-1-kuba@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org It appears nothing needs it. The kernel builds fine with this include removed, building an otherwise empty source file with: #include #ifdef _LINUX_NET_H #error linux/net.h is back #endif works too (meaning net.h is not just pulled in indirectly). This gives us a slight 0.5% reduction in the pre-processed size of skbuff.h. Signed-off-by: Jakub Kicinski --- CC: imagedong@tencent.com --- include/linux/skbuff.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 4c8492401a10..b93818e11da0 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #include -- 2.39.1