Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp233940rwb; Tue, 25 Jul 2023 15:04:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlHfLjY78/Z7G8bvYJDJVrP0Qu86DZgR+Z3iO0uFVsegKilZNYnGcKCYcCG8GjYyfSdSY19p X-Received: by 2002:a05:6a00:cc8:b0:682:9162:7218 with SMTP id b8-20020a056a000cc800b0068291627218mr504072pfv.15.1690322657798; Tue, 25 Jul 2023 15:04:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690322657; cv=none; d=google.com; s=arc-20160816; b=qehVRsqUedgj6ZNwgIlkIOQvPQEXp6onsI15+arpB0mHA4BoD8hSOQii1igQ7tYoR+ oQ50Ocl60ktROK+Vb+4j9BFdGvl+dq/eKoDYsgXyo4eEiPTAVF0425lww8jE1IEBKlFX 0pQGAFSJFk1axR3/m0826z7yJfeE3iJd1BbqcIcwXDAI8Mv/sDPJh5vwZOViSOIB+i2y kkAzH5fDiyqWSJf9ubt62hvF8jEPfWwsYbOND16ZChjOSL3RO0wa2iVCMNKe7kaHLagX jftvL4OLibtPRUkw/15FTIENDRmmvP91B6Mbui7Z7jK0mwgQntz4m4O0Q6k3ZnDTkRcQ dzRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:mime-version:date :dkim-signature:message-id; bh=vOEjSRPghqZUXU6a9KIFU0/2bAuZPx1SXHj+MlsTBQk=; fh=9V2fvEzapQkBDzwhg0BfKPhdqe2WsbYGsoWRKRH7JnM=; b=WElvHU+agETAqSVN4zOIiN2tW2TCuNcz8C9FR82NRLaTSp+6XQeK20cfnjehkH2nGb PTxnM7ROdvybwaCI3QhQN1xggiRgEvmlBSOEDAJgR8/jyKAy/nNNnwmny3pLnD6AVv8B RQ1P3nKpvpIfqaIq6PtLpW2BUqPNgge5BbJqh3Yci6R5iYOvTNFYv/KZlAnHlPYnXE+P XIsc7teV1AwFDF+J/EGqyVwSeAwuAj60tjCZB00opUrvvt6kd/oafITzbWVzT5ODUTML /YQC3qwL+UO4xanneGBozeioZhy84C062eiD6n1yRXWDZvhnrUcOyuoQdvRkmw9FYEHm eWnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=EbhqHnGn; 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=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cq17-20020a056a00331100b00686b74796d8si977247pfb.57.2023.07.25.15.04.04; Tue, 25 Jul 2023 15:04:17 -0700 (PDT) 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=@linux.dev header.s=key1 header.b=EbhqHnGn; 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=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230450AbjGYVkW (ORCPT + 99 others); Tue, 25 Jul 2023 17:40:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229664AbjGYVkV (ORCPT ); Tue, 25 Jul 2023 17:40:21 -0400 Received: from out-3.mta0.migadu.com (out-3.mta0.migadu.com [91.218.175.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6B571FD2 for ; Tue, 25 Jul 2023 14:40:20 -0700 (PDT) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1690321219; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vOEjSRPghqZUXU6a9KIFU0/2bAuZPx1SXHj+MlsTBQk=; b=EbhqHnGncvrmlFFcR8t7lSlhxV5gWQn3lgR+yruJb6yVwSor0UZkbfyCFQntKjS0z9iIoP M+IXsJgb29Gy3Uwug0g4baC0PBz24poaWOIPHDPxsEMOcK4tv95xaTsmY7XuIhLzIK7wVI 8S1uKewp3Ru+5tqCMxxkHy508WhV9ns= Date: Tue, 25 Jul 2023 14:40:16 -0700 MIME-Version: 1.0 Subject: Re: [PATCH] btf: Remove unnecessary header file inclusions Content-Language: en-US To: George Guo References: <20230721075007.4100863-1-guodongtai@kylinos.cn> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Martin KaFai Lau In-Reply-To: <20230721075007.4100863-1-guodongtai@kylinos.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: X-Mailing-List: linux-kernel@vger.kernel.org On 7/21/23 12:50 AM, George Guo wrote: > Remove unnecessary header file inclusions in btf.c > > Signed-off-by: George Guo > --- > kernel/bpf/btf.c | 16 ---------------- > 1 file changed, 16 deletions(-) > > diff --git a/kernel/bpf/btf.c b/kernel/bpf/btf.c > index 817204d53372..e5ea729ba6b8 100644 > --- a/kernel/bpf/btf.c > +++ b/kernel/bpf/btf.c > @@ -1,20 +1,7 @@ > // SPDX-License-Identifier: GPL-2.0 > /* Copyright (c) 2018 Facebook */ > > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > #include > -#include > -#include > -#include > -#include > #include > #include > #include > @@ -22,9 +9,6 @@ > #include > #include > #include > -#include > -#include > -#include What is the reason that needs this change and only to this file? There are other files that can do this kind of removal. Are you planning to make all the changes also? afaict, they are here because this file is using something defined in them. Now it is depending on other header files implicitly including the removed headers. > > #include >