Received: by 2002:ac0:b7d5:0:0:0:0:0 with SMTP id v21csp88505ime; Thu, 28 Jul 2022 18:10:23 -0700 (PDT) X-Google-Smtp-Source: AA6agR5s/tbojThe8qk4PQcEGePJBHfWu4aw2FH8rK4sUS1Z+O5/Jq5u3Bhtx8qOEyXj+eHzHwvV X-Received: by 2002:a17:902:e5d2:b0:16d:82dd:8c3e with SMTP id u18-20020a170902e5d200b0016d82dd8c3emr1516770plf.30.1659057023532; Thu, 28 Jul 2022 18:10:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659057023; cv=none; d=google.com; s=arc-20160816; b=jX2B8msuenioCsJqwTl+D3BTgc89xVIPqH93D5LUju5YTuleJhZztGghMqdJMxpybS iMy/jHyBH0DubhFtVW7vTAYLL3suz7B7TEWVSJdDRfGZ6855YRZQbRHBvZN7DVFB5s4B LVv2bkeCedi/Oz6yIaoiJgg2E7VgGj7eZEm/kIwzcMQ+a2a97Pg7K3QOGKTlHdT2ZxKC 5O7uhnc6M5pnySP9Slb9Ajd2JO/vFYEc0Rd9adGmq2EXa1IspnL604eXdb020kXSzBGV 7o2Bti8Iew4QWs2StVZixpnnkoX9xF/gmZizGGE5/BEsjgbEtFSrKKZ8/p6j70CB7/o5 MluA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=0jXyaBqsICzriP87acO0dcf9SGWXbIXLVTvH7pFxjvE=; b=Xn34Bk+ChhB+wTVleXXNoI2G+vCHI9QqvPSH1HJcGMTtzJtyUF0foy3pXrETxPJD8G snJg9lgdxlxOY5gPt4DDRT2od4vFNpVQHV2BSDNsOj9dgE5QllnFWWg9B3i6dvPlvVT6 kBY1fsAuEqjC+i0mH/WI26AmNxpt0ubyyj3k+8dxyKdlpznQFj12Cc+YepfvLm7cNorN LSy2CYUOVJv5Hk9xAc912yUt4i+1zQyE0lWIZrWk0DivOu2Y3cYR6WMh7F8fy+rCL6kq Pwvs0/Zb/9GnaluXEBADOaqVN13vuJtxx3g9TKeH032cKIo2vbKYJIWwEHGU75dLjAfU o7UQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u2-20020a17090a5e4200b001efc839b577si5881469pji.45.2022.07.28.18.10.08; Thu, 28 Jul 2022 18:10:23 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232742AbiG2BHT (ORCPT + 99 others); Thu, 28 Jul 2022 21:07:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbiG2BHR (ORCPT ); Thu, 28 Jul 2022 21:07:17 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F9704BD1A for ; Thu, 28 Jul 2022 18:07:15 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Lv8Rj6y3pzjXXh; Fri, 29 Jul 2022 09:04:17 +0800 (CST) Received: from [10.174.177.76] (10.174.177.76) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 29 Jul 2022 09:07:13 +0800 Subject: Re: [PATCH 2/6] hugetlb_cgroup: remove unneeded header file To: Mina Almasry CC: , , , References: <20220728121949.20985-1-linmiaohe@huawei.com> <20220728121949.20985-3-linmiaohe@huawei.com> From: Miaohe Lin Message-ID: <23841f02-2611-6945-868f-f8f15c325219@huawei.com> Date: Fri, 29 Jul 2022 09:07:12 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.177.76] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS 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 2022/7/29 2:02, Mina Almasry wrote: > On Thu, Jul 28, 2022 at 10:45 AM Mina Almasry wrote: >> >> On Thu, Jul 28, 2022 at 5:20 AM Miaohe Lin wrote: >>> >>> The header file slab.h is unneeded now. Remove it. >>> >>> Signed-off-by: Miaohe Lin >> >> Acked-by: Mina Almasry >> > > Actually, sorry, but this file calls kzalloc_node() which comes from > linux/slab.h, no? Can we keep the include then? slab.h is probably > included by other include files but for clarity it's better that > hugetlb_cgroup.c to include slab.h if it is calling functions declared > there. I have browsed the code to verify it but I still missed kzalloc_node in this file. Will drop this patch. Many thanks for your review. > >>> --- >>> mm/hugetlb_cgroup.c | 1 - >>> 1 file changed, 1 deletion(-) >>> >>> diff --git a/mm/hugetlb_cgroup.c b/mm/hugetlb_cgroup.c >>> index d16eb00c947d..99e9a367e1e5 100644 >>> --- a/mm/hugetlb_cgroup.c >>> +++ b/mm/hugetlb_cgroup.c >>> @@ -19,7 +19,6 @@ >>> >>> #include >>> #include >>> -#include >>> #include >>> #include >>> >>> -- >>> 2.23.0 >>> > . >