Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp143483pxb; Tue, 28 Sep 2021 17:43:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTuqCLQAEQTQx9Q7b9xreiD/2NAb/RnYJ41+5TfiA/0n7W0KGVKbg1rBRmdma74WFbMwaS X-Received: by 2002:a63:4d20:: with SMTP id a32mr7101145pgb.247.1632876208710; Tue, 28 Sep 2021 17:43:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632876208; cv=none; d=google.com; s=arc-20160816; b=0GcFmWwBDqkpb4DaeMHfGnaNVWKgztWIbZHS+5OL/FUxt9Eru5tAXHq2ihoKv2jQF9 XXxTGApxRkDlhrjzNKFHZmCQ8jqy/py4QDRxUYFpeKpzIgb2DAIRTG+GRq1qixA+k5pZ jnGAQKnAVCa5T1g5tpV3aG3KdtDjdQjUJUq3qXdjQH05nxmwZ+Isy4Ob8srZREherYdM A4NVMFSHZUEa0MMZI1lMlpvUfOH08FFe4IoX26rzrk9zaCa0eXEsoNEyvLCchtdUgwg/ kM1PBVawna4H35kZ3Od1YWuPOn50MpVUOeilmvs2uYtXTkZUyDFuwq3yzCYMPsxdr6+R 3EAw== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=0NDdPIWItAajqsVDiPS/TdmTb2QMtSsGVEEyyc2hcjs=; b=LJqwip8ANpXovcPJ5iGH4VdmfUujTnBBt7Ag/MgiE5g0JAOpXhiuhngpiXMeQKsJFh lL7lJbVqMhOlPqSm08f2RC0gpjU7CblRBlCRceRmY+sEez4UB2Uq0DiukljBNYFJOjj1 XOlAnqy/ieFa651zpg8dMNSbMjRVn9iDBjXXMoMejlw9ADpMsTaOIQEqgbZGKodRT9Ig wW5Eka17nptVAX/GLevzopJp/qlzF1L4YEQa7XGNyDrl/I5CxUH7BBG+4LcR58NFeCq0 LT1+ZuK8M00nS/riTh5cUwdbMWC8qowFrx1ukhOpxxd1VXsO35wPaY6GMUp4HslDCB93 kQAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nSpkZYhY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oo10si788499pjb.169.2021.09.28.17.43.16; Tue, 28 Sep 2021 17:43:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nSpkZYhY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243435AbhI2Amq (ORCPT + 99 others); Tue, 28 Sep 2021 20:42:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:45350 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242626AbhI2Amp (ORCPT ); Tue, 28 Sep 2021 20:42:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 26D9260FBF; Wed, 29 Sep 2021 00:41:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632876065; bh=sy0qq7KHfQdVKkeOQD717wVZX8eSF8cMH0D/jJJxS5w=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=nSpkZYhYFkFJdBR4deD1skf88vM4/7/2tyoxsIyOJz85joRrE+AnAb/JGx+2j2Tn4 BigCk0DgyKOupOS712czoPiPxs6V88JLbSusBZ5HewXGm0E6dOC1jaQsEYA4ouban5 +BHQ+KoLsqVxdRCD6XJNAXii2mZPISoDru7j2ekrXgae8PMhzmv3sOGKpgA0WP4Hk1 kaM6BVRtjhjjZIV+pUJnwFxbcpZLpNuwFGs9XMJ14LaLA88q7I6MV7CRSkBZnVVa3O CiskHX7nQ6fWG1EvZ67oIo7vDvhwaTRHaaTZfgXmY/d2qaz1KTNjObR35CtOD/7KRv X5pbaXULMpAEQ== Date: Tue, 28 Sep 2021 17:41:04 -0700 From: Jakub Kicinski To: Mianhan Liu Cc: "David S. Miller" , Hideaki YOSHIFUJI , David Ahern , , Subject: Re: [PATCH -next] net/ipv4/datagram.c: remove superfluous header files from datagram.c Message-ID: <20210928174104.4c05448e@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20210928174943.8148-1-liumh1@shanghaitech.edu.cn> References: <20210928174943.8148-1-liumh1@shanghaitech.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 29 Sep 2021 01:49:43 +0800 Mianhan Liu wrote: > datagram.c hasn't use any macro or function declared in linux/ip.h, > and linux/module.h. > Thus, these files can be removed from datagram.c safely without > affecting the compilation of the net/ipv4 module > > Signed-off-by: Mianhan Liu > > --- > net/ipv4/datagram.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/net/ipv4/datagram.c b/net/ipv4/datagram.c > index 4a8550c49..2dc5f1890 100644 > --- a/net/ipv4/datagram.c > +++ b/net/ipv4/datagram.c > @@ -8,8 +8,6 @@ > */ > > #include > -#include If we remove this one we need to add an include for linux/export.h > -#include This indeed looks unnecessary. > #include > #include > #include