Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp401039rwb; Tue, 25 Jul 2023 18:11:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlHRYkF1nmxqrTyJAFd6ohCMPP1CaUzPe85EdVHUG0jppOwPG3vv3GI0FlsJ3tF9GIh1Ujql X-Received: by 2002:a05:6358:9212:b0:12f:213:b558 with SMTP id d18-20020a056358921200b0012f0213b558mr591959rwb.22.1690333870849; Tue, 25 Jul 2023 18:11:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690333870; cv=none; d=google.com; s=arc-20160816; b=K5HyLGXJlwWElF7OhjWfJlADeVSn4StgZaPhPgnX5gfkwXv3suABim3GXL3UVx3GDJ v7woyeIkIP92AxbRydwE+u1p3yRCq4KE51lvMcXDwH4yRf/NGouZ+fZtnLtvQolkJQin ohRLEtMbykr8L2kI5wOboEZ534SuhakoO9+m3gveaHgOk7gweGsiHzYQhMPYG5Tywgbp ZIKoxLXqZQjETKuyksP0IO1TFoxsFOpP1QbZt4B8cdE1w+oLDtrD+/H0Min/zKtcYTZU LfgI3y7LsxcG1T63v8iT81/dLckiIazlNqdZLgUUX8RpRU9zrVsR//156kmPrRfnEo84 fA9g== 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:cc :references:to:content-language:subject:mime-version:date :dkim-signature:message-id; bh=vOEjSRPghqZUXU6a9KIFU0/2bAuZPx1SXHj+MlsTBQk=; fh=7v3Fi4hUwVx3YHe4GedLuzbhOJAmCjdc4OpsU4v+DR8=; b=IzFb+YUhmigFXHi/Cpv0yp4f6cQgeDg3pNnM2bo5jlzh+uUfnblSp8bmHsNNjm77ag ov0z7VGwysiNfCeR1toM0wJ7WT547/GdzflvbAbFSbWoE/KEGzpSdg1hjtdXHrNcoyZZ 8aKaiRJIS1/8dnw8NTDs52zoTQWWEly0KuTdDNpgj6bGfre/si4sUmO4JWTF4KpHT4q9 zuF4C/y/6vkFkt5cKnC47igmh0hLUjvXBmxlioGguhF4XLXzTsPpsZv9zQyFnrBfWXtV yBPeDlu7qbzaDwSZQu9ISWtd0PN8WLdo239a7o3Lg3gRyiaMqY61TqocCYRUzhZBW+jN raTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=GJ9xevCE; 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 u11-20020a6540cb000000b0055337508370si12123996pgp.889.2023.07.25.18.10.58; Tue, 25 Jul 2023 18:11:10 -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=GJ9xevCE; 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 S231824AbjGYX3f (ORCPT + 99 others); Tue, 25 Jul 2023 19:29:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231646AbjGYX3b (ORCPT ); Tue, 25 Jul 2023 19:29:31 -0400 Received: from out-35.mta1.migadu.com (out-35.mta1.migadu.com [95.215.58.35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D84221BE2 for ; Tue, 25 Jul 2023 16:29:29 -0700 (PDT) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1690327768; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc: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=GJ9xevCEq1sj4q4o69h/sQv1iIDXDIAysRTshJHIo4iErGxicFq8ZauC/jMaNJ6wA6Q8Uo wpa1DKrj/9QkQiuc1N67YRt7AyxByTMojBAGQQj8QPMHvkiZV6fXq6xfxY7Z4Cd3LjuyVl +8TNH+5uypaT3rame/2Q5+oBXwZuwiM= Date: Tue, 25 Jul 2023 16:29:21 -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> Cc: masahiroy@kernel.org, nathan@kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org 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,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 >