Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp227057rwd; Mon, 15 May 2023 23:34:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Z7WspqQNaipwQsdVDyxWxKoh+2yoN2eoSYjhy+Vn9zbauk6rQ/SdNsNs9x2wNwswGWbsY X-Received: by 2002:a05:6a00:2343:b0:644:d775:60bb with SMTP id j3-20020a056a00234300b00644d77560bbmr43912747pfj.20.1684218855053; Mon, 15 May 2023 23:34:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684218855; cv=none; d=google.com; s=arc-20160816; b=YcrAjLr7I+Zb1paOqusrnEhSbGaDG8srV6BD7opMLltkdcIOsuRqRWUN4lUoE5Q438 EACe21lkdCKXBmXSpKnDdglz5Afc0tz9cp42LYNuJvs+x1gx+FwmaM+67GS2nyqvI3Yo jsN2/GhLjSea/ntFUxhxY2lIwwJK7O32VV+PqCukq1QQV9Xq5cJ4nT1utDkbk81wOXw4 xj+q6xpo3lfHQr6Ba+wUSljYhBGgg/C0jiCiS9NhkeI+s0Hs4oopW1xhkHi+QlJF3AIC JTtCbxKt/xYekbF1QTYjVfqZvtP9WHWBIU6vyKVzMVPHLGNY81VuKh8uk+jJrSb0gmnR kFag== 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=7+5m3eB7OCh57eoUmxS6u+YHj9ZR2Md0FnJisaNcwK0=; b=Xtl7j3/0QTs3f7mgT3JGi9TIE7HoGkgAByU0HF7Tf1RMBcMhoPV0Hlh3J1cRVv6qTK BwPEq59nKTljfELCwTy5VSkwmQiNR5AGN3PFREm/ZSp7TAoDTY6ETPhOxUdnM3qFZe6y uo04fG9J0zAqRCwxhNzE1lk9Rc8t3B69UrcRhYz8IeLz46bLYBEdeZhViu/q7YA01ZQH a4eP80Y4Mj55b5/Wspu+TOOWK4Sz23e3cCeBlLY4/hSmPAoy0ayInsZiuJwp/Dtj8RqG JVtr/FGt+b++8sFMWgR4woeb6fHZa96Ewv14SbVj+VYYJSUOWaSdIHtdr+n+LOXmz0Qq F7gg== 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 126-20020a620484000000b0063354a65327si17681693pfe.395.2023.05.15.23.34.00; Mon, 15 May 2023 23:34:15 -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 S230144AbjEPGVw (ORCPT + 99 others); Tue, 16 May 2023 02:21:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230098AbjEPGVg (ORCPT ); Tue, 16 May 2023 02:21:36 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 436192D43; Mon, 15 May 2023 23:21:35 -0700 (PDT) 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 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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-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. 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, -- 2.35.3