Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6031660rwd; Mon, 19 Jun 2023 00:59:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4bZacZn1nyUHS1M3hxvoRz6SnYLl0gKSUq6qVmsqdEoiGkq3TFv8apWW7ZQmr2zHRSIvU1 X-Received: by 2002:a05:6808:3a5:b0:39a:aff8:a64c with SMTP id n5-20020a05680803a500b0039aaff8a64cmr8400101oie.23.1687161577894; Mon, 19 Jun 2023 00:59:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687161577; cv=none; d=google.com; s=arc-20160816; b=mbj95qdr/VkQoPE2KXcKf5lOWUZz/agS3uW6LO9XwqmWxumqvpXR35IMknfGP+SqVi znmPzBMM86TSClBqzVgjaGopAe2tYBeqsC6cPreX8tWrubjbYirSKuyWlKZ7q/CgnoZ/ 3fE1IG62ylvvk5ja4VkyUbjp69rDIuGFBxV6kxnzRBmZ/4b0POvn6BP0i9puhcocl3Rq 7hPe+qcNpxDBg4nkbn4HhaQeyE9mmHRN5/t0e6f7cfWOjQNsOzglSkDigwEIgiJsV+lL Eb3BKQhnKemMqkOO3nxdbTkqLbtj8f+q6zJ2/wlizipV8rWFV/wxMrG1ZaqqFSlMx7+w u+5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GDE22N6RhZJ008soRf2pb0Es9I9DW+ry9z9nMBOE6Qs=; b=zUehgb1N4EL88zTcmU7AplzfrhaSDaG1+jbBUbJYhSYKVKGyaotQwvj1mPVRC1daED zwNSL1S5Hxhfm7XFdQ8XRHUA4kwbVDdIHqh1padC7Zza3/UCA55vZ7zqX47hutOgv0iI VCSbCZGyxSzcW19Yk76lhCK1eGvNopVYEG+px6G9Y9QpJkD91Q1a6/sySTC2GuUalg+m VMW4LC3H96GSWk5HR6a7kU12Zo/NL0xHBtSfJIO838pAW/8JxkQIup5r+5LAS1+pZGEL Pvs2uQplavzxV+DRcZNUgvyX9MqVkbzLIy7FuKzEy52W4MAdtgefEgNu0PYyvk5qChMW 2Dww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=GIP9IjQe; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i15-20020a17090adc0f00b0024dec043858si6774032pjv.74.2023.06.19.00.59.23; Mon, 19 Jun 2023 00:59:37 -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=@suse.com header.s=susede1 header.b=GIP9IjQe; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229552AbjFSHTv (ORCPT + 99 others); Mon, 19 Jun 2023 03:19:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229553AbjFSHTt (ORCPT ); Mon, 19 Jun 2023 03:19:49 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7345B1A4; Mon, 19 Jun 2023 00:19:47 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 244021F38D; Mon, 19 Jun 2023 07:19:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1687159186; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=GDE22N6RhZJ008soRf2pb0Es9I9DW+ry9z9nMBOE6Qs=; b=GIP9IjQevaWuqsO9XKJc0QPPQQxbsj457qjoQ/Jq9JjZyaVqo02HuYv28wkIPbskWuRoj6 rPPkhzIkTk1xQYcqXuYrg/bazd3S40oCZ04mFdwzlKWloaOe1i3PHk0Doy1lv207fqbPbU HXlv+iPFOCBtv1Ul82ato2iLLjC99OI= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id E6C0A138E8; Mon, 19 Jun 2023 07:19:45 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id W78ANpEBkGRhdQAAMHmgww (envelope-from ); Mon, 19 Jun 2023 07:19:45 +0000 Date: Mon, 19 Jun 2023 09:19:45 +0200 From: Michal Hocko To: Miaohe Lin Cc: hannes@cmpxchg.org, roman.gushchin@linux.dev, shakeelb@google.com, akpm@linux-foundation.org, muchun.song@linux.dev, cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] memcg: remove unneeded header files Message-ID: References: <20230617072658.1826560-1-linmiaohe@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230617072658.1826560-1-linmiaohe@huawei.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Sat 17-06-23 15:26:58, Miaohe Lin wrote: > Remove some unneeded header files. No functional change intended. Header inclusion cleanups are certainly welcome but it would be much more preferred to explain why those are not needed. As build test follow ups show this is much more subtle than it seems. > > Signed-off-by: Miaohe Lin > --- > mm/memcontrol.c | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/mm/memcontrol.c b/mm/memcontrol.c > index d42742edfeac..a2c82a18745d 100644 > --- a/mm/memcontrol.c > +++ b/mm/memcontrol.c > @@ -30,14 +30,10 @@ > #include > #include > #include > -#include > -#include > #include > #include > #include > #include > -#include > -#include > #include > #include > #include > @@ -66,7 +62,6 @@ > #include > #include "internal.h" > #include > -#include > #include "slab.h" > #include "swap.h" > > -- > 2.27.0 -- Michal Hocko SUSE Labs