Message ID | 20230508071200.123962-7-wangkefeng.wang@huawei.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1958366vqo; Sun, 7 May 2023 23:56:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6xu0ZXshmiLrzB7kKfxNhcUz6qhhWDCETm3x0TA1Hay4xkRh23y/wdE2kJFn6fPEWyM9iq X-Received: by 2002:a05:6a20:6a15:b0:fa:3347:6e1 with SMTP id p21-20020a056a206a1500b000fa334706e1mr12155169pzk.51.1683528982786; Sun, 07 May 2023 23:56:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683528982; cv=none; d=google.com; s=arc-20160816; b=JXUaBR46oQyrNEQzKHoMnyIYMISVoUf8XDVFRFUhvlysgZAlPfCeejCKFeQULrDFK2 Z+5wB+0G6WvDH7znwMU10MRs/M8i7V4SpmKdwoLenO4kkO+odKqyO5ddzFvWQuhorBH7 8b8MfZZ7RuXddj6K85xrBNmoV9FH4neQMjD2k4NFxyVcx9EAr+yAzDF6t7ug5ituPPZv tqhcjQkor19Ju5FLf+RV6lKthvME0+QMa/lHZAeouRsdwRy+SvNOR1gFUr82jv/DcHdY ROLyBwiVY84oxJ5VBl6XYPRpCcVLGmARmI8kksHMV26i+Zxuk6drOErxfVOiUJGoUrZp 8dAQ== 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 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.10; Sun, 07 May 2023 23:56:22 -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 S233079AbjEHGzM (ORCPT <rfc822;baris.duru.linux@gmail.com> + 99 others); Mon, 8 May 2023 02:55:12 -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 <rfc822;linux-kernel@vger.kernel.org>); 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 <wangkefeng.wang@huawei.com> To: Andrew Morton <akpm@linux-foundation.org>, Mike Rapoport <rppt@kernel.org>, <linux-mm@kvack.org> CC: David Hildenbrand <david@redhat.com>, Oscar Salvador <osalvador@suse.de>, "Rafael J. Wysocki" <rafael@kernel.org>, Pavel Machek <pavel@ucw.cz>, Len Brown <len.brown@intel.com>, Luis Chamberlain <mcgrof@kernel.org>, Kees Cook <keescook@chromium.org>, Iurii Zaikin <yzaikin@google.com>, <linux-kernel@vger.kernel.org>, <linux-pm@vger.kernel.org>, <linux-fsdevel@vger.kernel.org>, Kefeng Wang <wangkefeng.wang@huawei.com> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765308086731701654?= X-GMAIL-MSGID: =?utf-8?q?1765308086731701654?= |
Series |
mm: page_alloc: misc cleanup and refector
|
|
Commit Message
Kefeng Wang
May 8, 2023, 7:11 a.m. UTC
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 <wangkefeng.wang@huawei.com>
---
mm/page_alloc.c | 7 -------
1 file changed, 7 deletions(-)
Comments
On Mon, May 08, 2023 at 03:11:54PM +0800, Kefeng Wang wrote: > 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 <wangkefeng.wang@huawei.com> Reviewed-by: Mike Rapoport (IBM) <rppt@kernel.org> > --- > 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 >
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,