Message ID | 20230802093741.2333325-8-shikemeng@huaweicloud.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f41:0:b0:3e4:2afc:c1 with SMTP id v1csp140998vqx; Tue, 1 Aug 2023 18:53:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlHZ2IjtnKDkwyvFblTCjK8GbxEW1eki02nD7N+8IBjAtl6Av55N8KXweVOWZFOqmrSiG1B7 X-Received: by 2002:a05:620a:2ac2:b0:76c:a3a6:6edd with SMTP id bn2-20020a05620a2ac200b0076ca3a66eddmr10605669qkb.34.1690941225023; Tue, 01 Aug 2023 18:53:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690941224; cv=none; d=google.com; s=arc-20160816; b=Onitgx/wAJQaiNfXOGWkAq/AyjqpJXDyvmf9bx2BLdE8Q49I7V93qMdQ1CI7VKuZdC An344G6lg7EgWXrMKXCPtQSvmhTn5IqMAbcfAHp7I0syGMgCLS8l16Il2yDExRFZ46+r lsIKHVB1U/Vms8chdBJycO8OV3rfduLa4cpeZlVonu3R2oWjUEFfWOLKvhUwraTf+wO1 KApk+64ur3njufa9iuKYfy67lkY0/031xdnFJ9DK22lG0lgaGS75trYEHHvCePAF4dEb Ue8z+jWXSsNzSJSrVR4B9SILI8P+T7nPkgPfwPyS4s9+Nfn4JP+6TCssp7UaShIvl6xk T23A== 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=UtV/YKltSAJUyOWW5/p3KEWmnAsx16rvcSp42ZO7nwU=; fh=zpCCF/J8Z0sUUNZfCNdnaRvm94yhXPVxl9PzV22VU6k=; b=z0lFnpF4D7852auDheebE4WtA3aXshvMjnydEj66G1NggyabIw5IxaI9skynbYkXXA qCxHQBwJkmYA+JXCeLvDP/4JXjzLFQbRsVZCR11ODvjCR3XcS3Q/TqHiKwjVoowmg4V/ IeMk92fy79m2mo8U8PrZzDnyJIhW4EMaESxuA+vDC9vcy78XYAoWwo6Y+kwkYhzhwL4k LeafzevwTyssxAdAxc8ramz0bKDy6Rdj6XActOMZsr/qIwg23sBVFORQZ/IsEmnNk872 ZTyGlz9rWBh/HgCpFJwNVGgqjcoCBjkPBjNslT7JEknj2VxK3loAbS+S+j1QCtJMU5nB Sb7w== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p22-20020a63c156000000b005572b563e65si9628355pgi.305.2023.08.01.18.53.32; Tue, 01 Aug 2023 18:53:44 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231616AbjHBBh6 (ORCPT <rfc822;maxi.paulin@gmail.com> + 99 others); Tue, 1 Aug 2023 21:37:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231308AbjHBBhc (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 1 Aug 2023 21:37:32 -0400 Received: from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8A98210D for <linux-kernel@vger.kernel.org>; Tue, 1 Aug 2023 18:37:31 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4RFvjh4ps8z4f3pCB for <linux-kernel@vger.kernel.org>; Wed, 2 Aug 2023 09:37:28 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.124.27]) by APP4 (Coremail) with SMTP id gCh0CgAXzrFTs8lkvrtvPQ--.56352S9; Wed, 02 Aug 2023 09:37:29 +0800 (CST) From: Kemeng Shi <shikemeng@huaweicloud.com> To: linux-mm@kvack.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, baolin.wang@linux.alibaba.com, mgorman@techsingularity.net, david@redhat.com Cc: shikemeng@huaweicloud.com Subject: [PATCH v2 7/8] mm/compaction: remove unnecessary return for void function Date: Wed, 2 Aug 2023 17:37:40 +0800 Message-Id: <20230802093741.2333325-8-shikemeng@huaweicloud.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20230802093741.2333325-1-shikemeng@huaweicloud.com> References: <20230802093741.2333325-1-shikemeng@huaweicloud.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: gCh0CgAXzrFTs8lkvrtvPQ--.56352S9 X-Coremail-Antispam: 1UD129KBjvdXoWrtryxtr1UAF4UZry3Kr1UAwb_yoWDCFX_Jr yIyrWFqw4Yvr18AFnxCF4avrykGF4DCr1aqa1DXr1fAa4qya1vv3srZr13X3yYqa9rur9x G3WkZFs2kF1avjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbDAFF20E14v26rWj6s0DM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M280x2IEY4vEnII2IxkI6r1a6r45M28IrcIa0xkI8V A2jI8067AKxVWUAVCq3wA2048vs2IY020Ec7CjxVAFwI0_Xr0E3s1l8cAvFVAK0II2c7xJ M28CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW7JVWDJwA2z4x0Y4vE2I x0cI8IcVCY1x0267AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK 6I8E87Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4 xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8 JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lF7I21c0EjII2zVCS5cI20V AGYxC7MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAF wI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc4 0Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1I6r4UMIIF0xvE2Ix0cI8IcVCY1x0267AK xVWxJVW8Jr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r 4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x0pRvJPtU UUUU= X-CM-SenderInfo: 5vklyvpphqwq5kxd4v5lfo033gof0z/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_06_12, SPF_HELO_NONE,SPF_NONE,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: INBOX X-GMAIL-THRID: 1773080386198753579 X-GMAIL-MSGID: 1773080386198753579 |
Series |
Fixes and cleanups to compaction
|
|
Commit Message
Kemeng Shi
Aug. 2, 2023, 9:37 a.m. UTC
Remove unnecessary return for void function Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com> Reviewed-by: David Hildenbrand <david@redhat.com> Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com> --- mm/compaction.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/mm/compaction.c b/mm/compaction.c index 5581e4cccac5..a1cc327d1b32 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -1423,8 +1423,6 @@ fast_isolate_around(struct compact_control *cc, unsigned long pfn) /* Skip this pageblock in the future as it's full or nearly full */ if (start_pfn >= end_pfn) set_pageblock_skip(page); - - return; } /* Search orders in round-robin fashion */ @@ -2878,7 +2876,7 @@ int compaction_register_node(struct node *node) void compaction_unregister_node(struct node *node) { - return device_remove_file(&node->dev, &dev_attr_compact); + device_remove_file(&node->dev, &dev_attr_compact); } #endif /* CONFIG_SYSFS && CONFIG_NUMA */