From mboxrd@z Thu Jan 1 00:00:00 1970 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 CA0AEC001DE for ; Tue, 25 Jul 2023 21:40:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231362AbjGYVkX (ORCPT ); Tue, 25 Jul 2023 17:40:23 -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 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 >