From patchwork Mon May 8 07:11:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13234122 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 0342FC77B75 for ; Mon, 8 May 2023 06:55:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8B81D900004; Mon, 8 May 2023 02:54:56 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 84CAF280001; Mon, 8 May 2023 02:54:56 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 57DDF900004; Mon, 8 May 2023 02:54:56 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 40ED0900002 for ; Mon, 8 May 2023 02:54:56 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 1076B40913 for ; Mon, 8 May 2023 06:54:56 +0000 (UTC) X-FDA: 80766175392.18.8FE9C2E Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf09.hostedemail.com (Postfix) with ESMTP id A4D62140003 for ; Mon, 8 May 2023 06:54:53 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf09.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=1683528894; 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=hCASaxZSrW5EQZRMkBRtEOue2/c6JM8AhFFtsAfKqas=; b=6nBYQoF9AacNUAyNraNiZzTUlWJ4xcUqnIRkHMNyYkBZgf5Mcbxv7XHnwr9jCz+OKgRrmN NttlQj6L9RQNkBy15hAJrtwVX3N0aJvgQSbXfLtqg2BgUnZ9Z+/RapVSZikYQ280BwFoAU AvXMz+XujwEkIyrsbiscqf+mQC2em0k= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf09.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1683528894; a=rsa-sha256; cv=none; b=zVq1k1G4oErfHRstHztWQiSP1khauPgrnQYtqlCWi8nYFrYxyI8uDMpF3ge4kdMWSgNboD lm5y6yIP3+b/4zJFao/jyjFbCSxMacZNqS9IJOsCTgnu3Essn0jp8xD5G+AIbRDa1WPHJ0 BD8Otoi7T4FfQE0gQaFQbEdiHAKqg28= Received: from dggpemm500001.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4QFBkH2Y1mzTkGx; Mon, 8 May 2023 14:50:15 +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; Mon, 8 May 2023 14:54:49 +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 06/12] mm: page_alloc: remove alloc_contig_dump_pages() stub Date: Mon, 8 May 2023 15:11:54 +0800 Message-ID: <20230508071200.123962-7-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20230508071200.123962-1-wangkefeng.wang@huawei.com> References: <20230508071200.123962-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-Stat-Signature: m1yn1463hheaxn3sk9fnqt1ofsenn7pz X-Rspam-User: X-Rspamd-Queue-Id: A4D62140003 X-Rspamd-Server: rspam07 X-HE-Tag: 1683528893-649827 X-HE-Meta: U2FsdGVkX1+9tXaGaDLnz26s4cKCXw/N9Fq4k92dc7FrnBDZPfkEIA06MVqQ+KbFZ3yLFmS+hL0W6giYRhPlgEppZsrKfyOI7tYfU+XbIXQH/YHSqoexYMb6eZdZW/8y0OP761iHgOm2fkoXXlAPxz8rqi3KZvpVx7TgD3zAXG1Vf7TjORBEqIBOcBSINRc52RubyMj+nAjw5AwsGerxuwJLvDDx+QAuF1zXWZUOTCoWE9/Z0tGU57D91++8dCJ/4P08rE3XKmMTyYjiXPa0YrRelZ9C+tENfeXQiqgD/8J1kRzBJEw1LQkmMeF7+jwF9OMuBczCiTGwLJsPbuqrX6bJwlP4409Mh7mapa+RiFDbRFn/VdTPE0jKaK8DKQqaCbY5OG5BxqgeAcZtYAZvcX08a7DB8EvRzz6VAmClRznFIy3R9ULA6EXCe75Ui/S7jGXhXyUkP1m6S/6hr3ndmcpg2HUWOHxCYQWELPsaNLWrEXguKd7wufilf6pt/bgmaTpc4s/iBoQPs8MDtm3T/FOvY2/lBwKlU89/0sRs68VscXmmh73k+uv9P+ehqRbbg2hHBR7tvUGKVclM7tusIANpAPvRLEw4092ZPo90cbYHTgbZKMKkyc6tpYcg5ASPIx9WyGSa061VLDs4BHoh8Wpk6B2j9/7I3iKCoiaXhnt40I38FZzylz6kRJfwxMrckRaZyUujNp4pszy4D/NnZy4RF2bDytRwzdnqNXLY3VUbNP01xU5R1bxvIQR+kdCD4OGGAdpsoK91Dzv6oaWM8/V+rXxg1y1GMlJ5+M2ADtmWhmAHD4f9iK/QkaajI/2W31y1+BJx1Fn39BE1c2pSzVdKBmtS9y579PcvkriQEeQhf5FJsihsQSf1JZWcTVewIxjoAWzsGay2Lz8B/wi3TdLJX8vfHhc3mKmvyAD6uYyYWms2AcasnTHMfcYTFOM5ElZ3lFkxA7uXGogV5tg FFPS7FAT LRvzDqReotrbNHEtOf3bxOANvoOnsl4X0vkbCaIQcjgDtbZFcg3GKlz7mwQ+UzFBz5xuHSkwZ40Rhg7XwUq2gR6B9RujTsJiikQIab9CCz/nHd2chJMbpaMAHxxXU55CnGSS3UYo6xAr5KdbHpa99HaJ3DiWUwhIsXY8v48ygN1pI0eweMWdX6pW7a346XrrqTKqR 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. Signed-off-by: Kefeng Wang Reviewed-by: Mike Rapoport (IBM) --- mm/page_alloc.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 348dcbaca757..bc453edbad21 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -6161,8 +6161,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) { @@ -6176,11 +6174,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,