From patchwork Tue May 16 06:38:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13242579 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3C605C7EE2C for ; Tue, 16 May 2023 06:21:45 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A565E280002; Tue, 16 May 2023 02:21:39 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9BA93280004; Tue, 16 May 2023 02:21:39 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 881E1280002; Tue, 16 May 2023 02:21:39 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 6A7B4280004 for ; Tue, 16 May 2023 02:21:39 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 3D343AEBCB for ; Tue, 16 May 2023 06:21:39 +0000 (UTC) X-FDA: 80795121918.05.1E0EE20 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf11.hostedemail.com (Postfix) with ESMTP id EDBFB40005 for ; Tue, 16 May 2023 06:21:36 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf11.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1684218097; h=from:from:sender: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=7+5m3eB7OCh57eoUmxS6u+YHj9ZR2Md0FnJisaNcwK0=; b=IebEdjEK1dQFC3EGXkjjDA6BJqFvNJDoCivwo2tyNHe0SY7jq90Gekh54Ufb+QwBWHbICR eEVpSnxhyUR/QE0dp3YdHHxA+HsL3z/W5CD8rwQCUUF05zONx/C9Yo3PcBSckQ/nXz+4wi /WKf1Yzg5c6Ebob9SCLlm43bpUQWY/s= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1684218097; a=rsa-sha256; cv=none; b=UnwvU+xxuabIsteIBdiqvPAEwkRXlfmc0EwvyOJZ7uj4wSNaCekzoEZ4wowlPXVhCs/G1o YQmMGyNGLyyuwfB18QGxwTe+jpjwxdDa4bwNBng3g7WL7oFoQzecFv2CgGZFlJK45Qt4DC kDiEEWBZldgX4xyYPVPVrgPXJNUK8co= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf11.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com Received: from dggpemm500001.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4QL5f86GbJzLq3D; Tue, 16 May 2023 14:18:40 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 16 May 2023 14:21:32 +0800 From: Kefeng Wang To: Andrew Morton , Mike Rapoport , CC: David Hildenbrand , Oscar Salvador , "Rafael J. Wysocki" , Pavel Machek , Len Brown , Luis Chamberlain , Kees Cook , Iurii Zaikin , , , , , Kefeng Wang Subject: [PATCH v2 06/13] mm: page_alloc: remove alloc_contig_dump_pages() stub Date: Tue, 16 May 2023 14:38:14 +0800 Message-ID: <20230516063821.121844-7-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20230516063821.121844-1-wangkefeng.wang@huawei.com> References: <20230516063821.121844-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-Stat-Signature: fqm6x8co4mey5fxqofj19ipfgkixqejq X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: EDBFB40005 X-Rspam-User: X-HE-Tag: 1684218096-33405 X-HE-Meta: U2FsdGVkX19cbrAfy7NPaVe3tD+AFwutmslFfhEUhahXXuTw9RhenoOlCvOBMfihSejOpgS8Iw6ZZLZlgKBvq3TIqQeECK5A5zgHuBMqmjFUuFTY5BDflhdpRIH1etDJ5OqOniana9rJn7PAwPV8jFSC8DlrDw6uf/MOnhDcs9pQXuKM1Fon/LFkJwsZGBkk7wVWnDW5I6eOo2SC54cKzWNxs8iSJYBGtYfnHouGJ6QEOX27bxvgthyUMDPJOQyNfOoX7btq17JQtX0WNeSq8z1YGi7eHZCfKd9jxznOYspp3H719++sDFZ7nZwNZ3gE1X0v5s9+kqqfaeoNKGnRrguYmOY+UnSN+9Aj4PWABUxtaU+Dj/LroFPCUnoiOmoZJicEDD/uOkocsyZEDrTIE53qzFBe5WtEsz4fqThrtUflOQOp9MN9/Iwz2noAry0k2BNC93xaFhxLb3jI2EjxA37xFvlYSaB/IEdkdfK1XLR8pQqgTIvxrkd9XlVCocq1hphjgsIPQh4o10DRsZ2oNrq23THwPUjQqy0tqx2nZicxeHYLqBOlBGzZEH14GobwPBibSy3F7tFxOwN3HkPFlrLQ9hiBHpskAOv4jsfDoXDsblIXfq8tzFR8XEFkPLPwaYOaLZqxfsmbo8wuE0oeo+u/6t2UVS54n1L/nNPrRUL3jT7/vbLpvVV8Gzkak4ZZpJI1Qc9JId4djIsFdHjoW4S1350X8EXgz5rRSGz5VRfoCFXL42D+Xc5y+b4NP1i8UQZ+H8qnMkWDIZAyADeJKk1GBK93FWfxZjisuQPLqoH3XwrQfNll+KIwO8rdwtBPLteepyEaopRW05n8paWmMG25NyB1RLq0WkCcoMJUwv7wTM1kq0RkkpdEVafwi4R9NbzH5F5JoRgk1yOxjVaGutxdmy+Q8oC0nSOS21hG2WYRVLol2Qbu8exNz7YC6dDX5hUHop0Oo40Sm+2aJwb phGVvazV fVUIMTSKw/8cEW1SPPQCUiGD+me+L/B4FMFhmtz92G1BtnsXc+PR5+vdtWiWJ/ZJdE2sIZP+OPomOyXXKmJBd9rtple/OrpUmCu5P2Fdkhl2e6HZ08Y+BTE1II7gbSlFXEfPGooNAwt5ObSF5XIt5Nl4imNjx7UPfHrqo9cSxzAwSKUXEzgEwRc7qjvvzVc17xahSF1dcDOcbcFuuyrm0OoL/FHA8mwokfq4jot2189EhhzGt95beg+P/VIB/lXYTr+9m X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: DEFINE_DYNAMIC_DEBUG_METADATA and DYNAMIC_DEBUG_BRANCH already has stub definitions without dynamic debug feature, remove unnecessary alloc_contig_dump_pages() stub. Reviewed-by: Mike Rapoport (IBM) Signed-off-by: Kefeng Wang --- mm/page_alloc.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 1bd8b7832d40..aa3cdfd88393 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -6250,8 +6250,6 @@ int percpu_pagelist_high_fraction_sysctl_handler(struct ctl_table *table, } #ifdef CONFIG_CONTIG_ALLOC -#if defined(CONFIG_DYNAMIC_DEBUG) || \ - (defined(CONFIG_DYNAMIC_DEBUG_CORE) && defined(DYNAMIC_DEBUG_MODULE)) /* Usage: See admin-guide/dynamic-debug-howto.rst */ static void alloc_contig_dump_pages(struct list_head *page_list) { @@ -6265,11 +6263,6 @@ static void alloc_contig_dump_pages(struct list_head *page_list) dump_page(page, "migration failure"); } } -#else -static inline void alloc_contig_dump_pages(struct list_head *page_list) -{ -} -#endif /* [start, end) must belong to a single zone. */ int __alloc_contig_migrate_range(struct compact_control *cc,