From patchwork Tue Nov 19 11:59:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: winterver <295107659@qq.com> X-Patchwork-Id: 13879792 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 3CCB7D44148 for ; Tue, 19 Nov 2024 12:02:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 920296B0098; Tue, 19 Nov 2024 07:02:12 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 8CFEE6B0099; Tue, 19 Nov 2024 07:02:12 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7BFEA6B009B; Tue, 19 Nov 2024 07:02:12 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 5F1146B0098 for ; Tue, 19 Nov 2024 07:02:12 -0500 (EST) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 18920A019F for ; Tue, 19 Nov 2024 12:02:12 +0000 (UTC) X-FDA: 82802703942.03.25C637C Received: from out203-205-221-192.mail.qq.com (out203-205-221-192.mail.qq.com [203.205.221.192]) by imf03.hostedemail.com (Postfix) with ESMTP id 4749720002 for ; Tue, 19 Nov 2024 12:01:44 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=qq.com header.s=s201512 header.b="bn+t+H8/"; spf=pass (imf03.hostedemail.com: domain of 295107659@qq.com designates 203.205.221.192 as permitted sender) smtp.mailfrom=295107659@qq.com; dmarc=pass (policy=quarantine) header.from=qq.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1732017580; 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-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=KFNPhJewrH3SEkj8gWwUntmsvmz2hvW9KUI7i+AvKjY=; b=qb1AK+ldy5WgNSXuyv7Pur7zeQ11bpqVQ22WuPa73AwC1mkY0J4upxn0Jo/joOfVJc0C6p zCxncXaVyKhMEMKvkoyND4nu99+QwzGbZZxiqKZyrZUnsFk8eKE766lpQFTXfSN8WIe30p hqL+skzUe/7c5CKBtR7hmsue4K1gORg= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1732017580; a=rsa-sha256; cv=none; b=LTFaQbTeXRyfTHzL2PO9A1aCLOfh49NCIMc6vbSmJD+9pwGZX8aGpG6LkMAT4oHH6drs5I VNVYX7DmZzZzUKzHerrJn49R5wEVQl9N9fMOnhOq9QaWabUFAL3mryFF2FZq5lXJxbFLk/ i6Mh1GPjmUXFOA/NebQhm9ZE5UH00vg= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=qq.com header.s=s201512 header.b="bn+t+H8/"; spf=pass (imf03.hostedemail.com: domain of 295107659@qq.com designates 203.205.221.192 as permitted sender) smtp.mailfrom=295107659@qq.com; dmarc=pass (policy=quarantine) header.from=qq.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1732017719; bh=KFNPhJewrH3SEkj8gWwUntmsvmz2hvW9KUI7i+AvKjY=; h=From:To:Cc:Subject:Date; b=bn+t+H8/Btqq/e+Tqf7VDCL102dSJoVUg7Iyn7hLPm3BMBsXaX26cpT/b7/CwnwMM cU9j6OrwPQ5ekrD09Gzwyi4IOBbpUrMTVaMDfL2MYl/zEIZjyuCpeMmHrmzI7iBAnn OcTN75zvEik5eecNqnDFGG6Az2XDW956JVoYQgB8= Received: from LAPTOP-58DOKDH3.localdomain ([218.95.110.191]) by newxmesmtplogicsvrsza15-1.qq.com (NewEsmtp) with SMTP id 743D0F2; Tue, 19 Nov 2024 20:01:52 +0800 X-QQ-mid: xmsmtpt1732017712tfq137wu8 Message-ID: X-QQ-XMAILINFO: NyTsQ4JOu2J2KyZCsnVHbTa/tTB9CsEX19D5cYVnuzw04LatcgolDVPEGBtuKY +DkDpX4Wp11TXHbLun503p4ddEObhG7r9nZGMPudmqg76YYxUDboT4jn/r0zeBeqbK1w5BI8Do7B FrmA8UKN9SUh6SWNLGgUdgWTpF8AzZo2TsH/WjhjZAD4s2L8mbIqe7A2BR8B+rc0qxSFpozA60Cq kgySKjZ4OUkTxSrKTmuM1XEmnnwCEdV5+2NF49PvKMm8J4xI2lgSBVKKGPpdvn3BdXRfY5/5W8aL 8ARE8JbImNPxLl9AZgF4lzjOJMfcNSnHf32MlfMZIi7Gps4gi7J0vH0+kDpHQ7ubEm7Blr5Tc4HY ifwQlZGlnAygUZ7iQhIcaptchJkOKweWUu2sQdhBgNIru5E4UnuEiKvuKsq3EWzyflfUkNGH4N/a 8zDQMVQLqMbCfwFbgVJDm9S3Im9iSak66ZFE6OBDuPbJTWm/GylYZeo4PBbNFpNaN1XOO730WxhC Se8BsN30muN2+FuCog4Cu2k1k8I8w116AWAxYw1zgg+BFBG/wvPRqlxk/sHUcwUVyzKMogJBCUPS 1QyjUc3zr3o2lgkytDNpWwSuToAZg+iJMj5xiO/WIzoEVWNnzFy1U3QcrSU78GhyxCaWfy2BTfcL Lqke4RpMas4lmVqKDwlxF7RLl2z3O42YqaTZ3liKT+kMNhF69IslGEPK+yrg8Zsqf1OXv7L+1Gbn xD5wEpAZyxIobfXs0aV1EC4KWqEngOV/kq5jycMSbKtQbfbsujERuuuLDZ7Fd55s8/rSwlUBgDYA QkjFdrEstnXDpSeDeHENSRBrAG2JTo6agfT0A7bogIIGi12FzgCrj/qxk/Zrb57WKxmnaCBKmS4N TYmOjCOT7yZrMe4h9x2ocRaCIIL+mhS/c6OqSIz1Ihs8hOkCNqydUu5MckIcbiRg== X-QQ-XMRINFO: OD9hHCdaPRBwq3WW+NvGbIU= From: winterver <295107659@qq.com> To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Jiale Yang <295107659@qq.com> Subject: [PATCH] mm: Remove 'return;' at the end of void cma_activate_area() Date: Tue, 19 Nov 2024 19:59:40 +0800 X-OQ-MSGID: <20241119115939.16838-2-295107659@qq.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 4749720002 X-Stat-Signature: x4k34u7jbi5w115o7n6eskbbhh4ncxeh X-HE-Tag: 1732017704-754213 X-HE-Meta: U2FsdGVkX18dppFTQpzEYGAjbB7zGC/qBU8fNr2yCJRfJysggfAg4+L1G6dgrj+/BGw3HvJwYGfL+zLAZisXetXEOaemnJiuIjxgYvy6PCbLCH1ScnOo1JfmxlsHTd3/ddD5Bt+6cUDczgJvOYfNRhozaAOkSqncZwzfqbymQFLULUBUC7BNlcfXancBE0lVVqShbQTMPafVgglT3Uc0UR0MQhHjw4OvvsMOqYwkxpju9/u8Ez9Rpe7JGYF1hxFg4zz1KaevW9WDdGVbYBPR8RG5X2y58Ak9hr2eWZX/0g5RtIPKQby6OqnQ6w3mc+X3aPDtl1wZvVrw1NzY9ZxYtuTi8KOkjg/+GUZqHmZoFHgU7L/ETpJy+IKGyHykTkw2iGbSntnsRDNbbzx3h6RUQvHeJFCxLzs7UwyCXtph9N1DxyzKUN5ug4ie0AO71OhHVOo6v/YkM5V1KrXaCerFiT+lKPAIROT6YTwYOkhxxPXkNOX5t8JdDSWaQSgEVS6ASbUolQaKTiH6cUymAbkCbZrqDbVZAAGwCk0dvn6L8G8wA0eOKl8tWtUh3RzAwuvQhIEn4n5jOAiRDRhCNrtfWfDzC58rtSwy7MU3Ej4aich3EsOvvUdSaQZlZRqZJsQBttPDyOknMfN7jc+VDAh6d23ujix81XDMhRm90dlF1dNYkJzaSMMJY3HkTL5Lj+hcyWgtAx0TXTmZiiWsFqxhT/cz3Y6eMqIPIJ/MRDjwAv38aJ2Gd2J4S+UD1jGlwyOrIsHtLGbKsuncJDfPK7QadSeRbPO/MAjXSOuReX8yO8ssHNRl3L+olmWFy8pu51ALoBa2hGfANgwdDNiDGruXxtH9nYlKYxYYVPrEWdZXNjujGaptglH4F84P92z3KKyiDE+L62IanRjnwaGtA+17WltstXN6EEuPtpUk3GdtasmVphjtve80+lt2MiJqXhH5GA94itKbnIcyImbvk/N iywu1M/0 HTaIhK5QjbYcK6Swfk+UlYHLJcXW1CBwTPvHthX6JsmGoBHniwWcC+jO5ujhoWlWpXw67Ns8aQMJ3V9p48wouxYJqqD4wYHs1aJ0llnUjjRCh+4jf06KW1PjQrgzfpkVcHOEi8RWpa/IUfikV1/9lP33mFyW+V5eb/AZRVpPhjz6mAPtlb2E9EVpNOoAMzfvPyPvhOxfYD3dDRBR8mVA9Qtxgw0NFXBIhlVSKJBKroNJMQ0qZbyc3RxkEzlJqKw3sEBJYXKHv0srgEM1oKxp6bvLZyQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.413347, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: From: Jiale Yang <295107659@qq.com> Remove 'return;' at the end of void cma_activate_area(). It's a void function, so an ending return statement is unnecessary. Signed-off-by: Jiale Yang <295107659@qq.com> Reviewed-by: David Hildenbrand --- mm/cma.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/cma.c b/mm/cma.c index 2d9fae939..070399bce 100644 --- a/mm/cma.c +++ b/mm/cma.c @@ -135,7 +135,6 @@ static void __init cma_activate_area(struct cma *cma) totalcma_pages -= cma->count; cma->count = 0; pr_err("CMA area %s could not be activated\n", cma->name); - return; } static int __init cma_init_reserved_areas(void)