Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp3947503rwr; Sun, 7 May 2023 23:56:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5CJbQb7hqwfPQNvV6WUKTVP78j+0B4koKCoW0cDA3YUD0Vbf1Cq+tJxllVQ87mds7nFqGq X-Received: by 2002:a05:6a20:a10c:b0:ec:a118:6471 with SMTP id q12-20020a056a20a10c00b000eca1186471mr10454195pzk.50.1683529017339; Sun, 07 May 2023 23:56:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683529017; cv=none; d=google.com; s=arc-20160816; b=0Mw5GANXJ/e6ACqrdo8+kh5M71QFtco9VQdm+0Lzz7Gy53vqEDOMFO2hz3sNF5ikyt p4LvTu1gZQ4Ob9ZkdtoD2U+xdb+CscDv2av9dy2D8ed4JCVuaTGcpykkMX23bgyjDqEh 3aO3MVqLse95wWse/Zzh8C4WaWIKve6jdcz2ZzxjJNTugbjpgOz4o8cuO/jQgBFE1aSz 00gOj1YBPd7qCVxttGI8YWlDK6Zso3XHRfW9inlfgnuOMQh/8q7RDOvDOdG845RjdPT6 j4AN2PTpJ06AtoXjf0lGJR9Wu4NWqKq1dRDEPIa6AiXa0U7jHKY6KxiWsVLb9F/KQaEf XjIQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=hCASaxZSrW5EQZRMkBRtEOue2/c6JM8AhFFtsAfKqas=; b=MIUhq6ABXyq8QIlt0YWCDUEGoZRYc8wgp7bnwXWtXwU63wx6deUKXx2bWwek0DjoaR 6C2XnrAb46xX3iOUTWJcIsdsWHdljJzQLisDFmROIsdnzAPY+71dPgI7Qoz4vo1rAlI2 M8f1e5DmhqBP2Cup0fIIk5QkGMnzI7ctorEUh0//aobu4LmH+MQtRZdz9VVEznUqxLPF BQnGweU5zFT62rW416leQWBOYdS7ZM7rz0BipwzThAvbBk0O3NfsQpUo1hilOCG77HV5 yz7Xb2iXJxnc0vRiOilGyyggOHZezwzSsKb31qpqCHhvRf6IjVOw4oeEEId9W6WPaF5z /vsg== 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 d2-20020a621d02000000b0063cf9718a24si8086382pfd.388.2023.05.07.23.56.44; Sun, 07 May 2023 23:56:57 -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 S230452AbjEHGzL (ORCPT + 99 others); Mon, 8 May 2023 02:55:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232967AbjEHGyx (ORCPT ); Mon, 8 May 2023 02:54:53 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF0B812497; Sun, 7 May 2023 23:54:51 -0700 (PDT) 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 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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-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 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 --- 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, -- 2.35.3