Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1731228rwn; Fri, 9 Sep 2022 03:14:42 -0700 (PDT) X-Google-Smtp-Source: AA6agR7kZTJ2RX+UpUFSmAygIAW5yVkgVLHiestMYxnVTC9dNNONxXmwL2jA4q85fLs4lrSxmpCP X-Received: by 2002:a05:6512:b01:b0:48b:a065:2a8b with SMTP id w1-20020a0565120b0100b0048ba0652a8bmr3873797lfu.401.1662718482126; Fri, 09 Sep 2022 03:14:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662718482; cv=none; d=google.com; s=arc-20160816; b=ENZzWjVO61pFF7V3cwW41n7GeB+BXCVydY+tS6Z6Z+IJbvLHsAEGoutkfmhBjRA6hN n8VPvA7AksGOmWr8/Y3YU5IOPUzEEH2MBME0mZ0DgXjK3l20ZwAicpHUWgsfYmVUsaXT 4sRFwSSHk8ajvDSV6fZaGntCAuP9dS83vU/9Kga8ql557/dLYZ+bnubRWJYpnjUILcTI vSr/fr2hbhZs1lE5fImwAq1hWyGaGse3Z1EOyNGQSK7hedmnu5KKgGLBWYuXF+JBL/Ra Sl6NCGjLm3/Fu930SC2JMUI5Q5zjK7XPVeTViTfJua9gZpNf/evrNDzPiJNEe7OfuIoR FpOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=6ClknPMIJjcyhR1VjHURl+6UwsDU/kO0RSblL1/ag3s=; b=K5AcvWvNA/ZM7N0Fp1gIHzsreHeQvVtZenk27tknH+7kNsE6DowaPUUHiz8h886vIV lf0uMe3z5p4L30NygtosrJNbfy3HQ0IzjE6+ffcl0iXWFL3/PUA95wGRFc3ixgt3YKXt iPVAKJs8iYL1GJaDOK4n8eMekK5YNKDigqjfXhaTudvV11kZHG9iXyiuipiZiaIPcyhZ aDatZrSr0oX1njxD3rd9S8wRmnh2RC5FHiXELrdJRQ30xz03/tpcpxvOFXmiuLQMUBb4 Xpnd11PiOG2cUgDfNuTlTTygOpsBth/tjLCYy1CTdC8VIWQbi27kcu6V1Blf2HUZdIWb zUTQ== 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 f10-20020a05651232ca00b0049461ea0231si83119lfg.156.2022.09.09.03.14.13; Fri, 09 Sep 2022 03:14:42 -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 S231871AbiIIJ1U (ORCPT + 99 others); Fri, 9 Sep 2022 05:27:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230038AbiIIJ0y (ORCPT ); Fri, 9 Sep 2022 05:26:54 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCBDF481D7 for ; Fri, 9 Sep 2022 02:25:27 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.54]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4MP9XJ6SsqzHnh1; Fri, 9 Sep 2022 17:23:28 +0800 (CST) Received: from huawei.com (10.175.124.27) 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, 9 Sep 2022 17:25:25 +0800 From: Miaohe Lin To: CC: , , , , Subject: [PATCH 00/16] A few cleanup patches for mm Date: Fri, 9 Sep 2022 17:24:35 +0800 Message-ID: <20220909092451.24883-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.27] 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,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 Hi everyone, This series contains a few cleanup patches to remove the obsolete comments and functions, use helper macro to improve readability and so on. More details can be found in the respective changelogs. Thanks! Miaohe Lin (16): mm/page_alloc: ensure kswapd doesn't accidentally go to sleep mm/page_alloc: make zone_pcp_update() static mm: remove obsolete macro NR_PCP_ORDER_MASK mm/page_alloc: remove obsolete comment in zone_statistics() mm/page_alloc: add __init annotations to init_mem_debugging_and_hardening() mm/page_alloc: fix freeing static percpu memory mm: remove obsolete pgdat_is_empty() mm/page_alloc: add missing is_migrate_isolate() check in set_page_guard() mm/page_alloc: use local variable zone_idx directly mm, memory_hotplug: remove obsolete generic_free_nodedata() mm/page_alloc: make boot_nodestats static mm/page_alloc: use helper macro SZ_1{K,M} mm/page_alloc: init local variable buddy_pfn mm/page_alloc: use costly_order in WARN_ON_ONCE_GFP() mm/page_alloc: remove obsolete gfpflags_normal_context() mm/page_alloc: fix obsolete comment in deferred_pfn_valid() include/linux/gfp.h | 23 ------------- include/linux/memory_hotplug.h | 8 ----- include/linux/mm.h | 2 +- include/linux/mmzone.h | 6 ---- mm/internal.h | 3 -- mm/page_alloc.c | 60 ++++++++++++++++------------------ 6 files changed, 30 insertions(+), 72 deletions(-) -- 2.23.0