From patchwork Mon Sep 2 05:27:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: JeongHyeon Lee X-Patchwork-Id: 13786720 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 7E620C54FC6 for ; Mon, 2 Sep 2024 05:27:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0FAE28D0075; Mon, 2 Sep 2024 01:27:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0AC718D002D; Mon, 2 Sep 2024 01:27:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E8D948D0075; Mon, 2 Sep 2024 01:27:39 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id C12028D002D for ; Mon, 2 Sep 2024 01:27:39 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 6717BAB0B9 for ; Mon, 2 Sep 2024 05:27:39 +0000 (UTC) X-FDA: 82518665838.03.9B8AD6B Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by imf18.hostedemail.com (Postfix) with ESMTP id 5716B1C0004 for ; Mon, 2 Sep 2024 05:27:35 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=samsung.com header.s=mail20170921 header.b=GFZi7ATm; spf=pass (imf18.hostedemail.com: domain of jhs2.lee@samsung.com designates 203.254.224.34 as permitted sender) smtp.mailfrom=jhs2.lee@samsung.com; dmarc=pass (policy=none) header.from=samsung.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1725254733; 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-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:references:dkim-signature; bh=ITWBx7yf8vNGJ6PCnSt1wbV1pwh0Fe1mZqd+MoIc/+U=; b=rjVYULIRpdzsxlbSmzO4v5RD57bzvCkQQiwvpn8VCL8ke4WHOhBHCuW8yGxu6qmPm2wmyX GrOomRWBdJr2X3pMRMY46kWFFTXcHCZ2R9a4gms8Hn2mlefHcyNz5BVdBdMfLCAm9sCJJ8 LM/T8qEMXTD5RAbVExGdAnr997pKXiU= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=samsung.com header.s=mail20170921 header.b=GFZi7ATm; spf=pass (imf18.hostedemail.com: domain of jhs2.lee@samsung.com designates 203.254.224.34 as permitted sender) smtp.mailfrom=jhs2.lee@samsung.com; dmarc=pass (policy=none) header.from=samsung.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1725254733; a=rsa-sha256; cv=none; b=4bY8seHmGDcAz1+YT3m5pndnTpmaB6b9/AlYUzsh+nJT0p9I3PtXPi46oCOOYwx6qSEJ0W wqBGRej0ZOHOP0IlTIrCQJFLFcjCskUGB9dxPjHruRJvaROPW+hGoT3JAQjPExDbhKsXb5 +SU+y4wwIuX8hXgw8ei/ursJBCP2OeE= Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20240902052732epoutp04c892eafc766e558bab765a91aeedc926~xViXAYHCb2151121511epoutp04V for ; Mon, 2 Sep 2024 05:27:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20240902052732epoutp04c892eafc766e558bab765a91aeedc926~xViXAYHCb2151121511epoutp04V DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1725254852; bh=ITWBx7yf8vNGJ6PCnSt1wbV1pwh0Fe1mZqd+MoIc/+U=; h=From:To:Cc:Subject:Date:References:From; b=GFZi7ATmZgtn+Am2jR2+rveLA4H+1vIeDbZ0pLHQusO/L0P2L3OX/b6p90o8E8r2d 13TNqcMzc6/VCWER7gWVnxuMf1gh1XOPa6+Mug7AZ1NebsJ9pz5EbysCLNtauM3eQL 4ySao4dYgS4PSRyLbel+wmEh7aTuJISeCNaPoazA= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20240902052731epcas1p49d379406402c5839792baddde54db32d~xViWnrsHc2288922889epcas1p4J; Mon, 2 Sep 2024 05:27:31 +0000 (GMT) Received: from epsmges1p5.samsung.com (unknown [182.195.36.225]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4Wxy1v4ZxPz4x9QK; Mon, 2 Sep 2024 05:27:31 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p5.samsung.com (Symantec Messaging Gateway) with SMTP id 55.21.09734.CBC45D66; Mon, 2 Sep 2024 14:27:24 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p1.samsung.com (KnoxPortal) with ESMTPA id 20240902052723epcas1p14bde943e61f9e61c81db72245cb74c79~xViPF2rUT3215632156epcas1p1X; Mon, 2 Sep 2024 05:27:23 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20240902052723epsmtrp19a2c48f5b29c627bfc9cfe2ce998ce0c~xViPFVTzH0602906029epsmtrp16; Mon, 2 Sep 2024 05:27:23 +0000 (GMT) X-AuditID: b6c32a39-b5dfa70000002606-a4-66d54cbcb7fe Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 0F.F1.08456.BBC45D66; Mon, 2 Sep 2024 14:27:23 +0900 (KST) Received: from localhost.localdomain (unknown [10.253.57.249]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20240902052723epsmtip27bcd84de0c4b95ba04aee288a1ba2648~xViO7LIzF1571715717epsmtip2w; Mon, 2 Sep 2024 05:27:23 +0000 (GMT) From: JeongHyeon Lee To: akpm@linux-foundation.org, jhs2.lee@samsung.com Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH] mm/mempolicy: fix issues detected by checkpatch Date: Mon, 2 Sep 2024 14:27:20 +0900 Message-Id: <20240902052720.754717-1-jhs2.lee@samsung.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrHKsWRmVeSWpSXmKPExsWy7bCmnu4en6tpBkdm8FnMWb+GzeLS/Tus Fpd3zWGzuLfmP6sDi8emT5PYPU7M+M3i0bdlFaPH501yASxR2TYZqYkpqUUKqXnJ+SmZeem2 St7B8c7xpmYGhrqGlhbmSgp5ibmptkouPgG6bpk5QCuVFMoSc0qBQgGJxcVK+nY2RfmlJakK GfnFJbZKqQUpOQVmBXrFibnFpXnpenmpJVaGBgZGpkCFCdkZ3cvb2Qr6OCuajvSwNTD+Zuti 5OSQEDCR2D1jAWMXIxeHkMAORolHZy8zQTifGCVuTtjHDOF8Y5S4f2k3I0zLrIevoVr2Mkr8 2LyVBcL5zCjRsvs1O0gVm4C2xO2WTWC2iICxRNfO8ywgNjNQ9/3Wh6xdjBwcwgIOEjObeEHC LAKqEpM/LQW7iVfASmLa9eOsEMvkJWZe+s4OEReUODnzCdQYeYnmrbPBrpMQ2MYuser3UaiH XCS2LHgIZQtLvDq+hR3ClpJ42d8GZVdL7Fl3GKp5AqNE6+lzYAdJCNhLLDllB2IyC2hKrN+l D7GLT+Ld1x6oCl6JjjYhiClKEiv+XWOBsCUkNhzuhtrqIbFzNkicAxgksRLX/phNYJSbheSB WUgemIWwawEj8ypGsdSC4tz01GLDAlN4PCbn525iBCc0LcsdjNPfftA7xMjEwX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ZPujdfbuYl7b2q r95OEMlOXHdmxiWlS97CvscTBJROCB0Jj/CY8PfutX83RFWX/k/fXhuv8vpJ5r+uBaqyamYm CfM/hX6c2vDg/L4PMWaf1/7ob9llWBT5ZE+RS/Tyfwte/D5Vwbc8zSNZjCt6bcHH810S3asn hj8LlhRgt0swWt0bw/i1f5blrKVbav58tm36mb3gj7pU5L1owel7Jc49+LyhcRVPbcAsn6ZM ZsNfP3wyP/OvkBa88qdN/azZ0zmb7jKyfZ4gJ2D5x+DrlP6WS5OTy4T3PfM9r/PWLa1RyE2J pTgj0VCLuag4EQDxxpnzqgIAAA== X-CMS-MailID: 20240902052723epcas1p14bde943e61f9e61c81db72245cb74c79 X-Msg-Generator: CA CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20240902052723epcas1p14bde943e61f9e61c81db72245cb74c79 References: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 5716B1C0004 X-Stat-Signature: p9dd7b9ewxbgwx7d3yf8zb3p4n4i9sh9 X-Rspam-User: X-HE-Tag: 1725254855-217346 X-HE-Meta: U2FsdGVkX1/sI8NfKGrEqsYtVQp6sicLrGAfw5whvVuHb8nK1mBRxvpQM9YyQ6ki0SgwnFYld3zjp2StE4tVxJJ4fHkXcruZWTjGE9SxB9bty3kVE77i0ayPFYFzuPkRAK+Cvqqa4e/Jv+dEHNN+pGVYsbOXk9X6LGQkRuawMwTN6GXEB0FrsnNdHDeJX3+PujpULsLJ5pipBAwLSr47vhJeR7UV783K7RA8dg6whLEdaAmxNC2uwsaEDJHPkCSN/dHFkD8iVmEGqo4A3Bz66R5dCuxKV+SWLTMFaw5QfNWocuuHTVk/P4FoLGDom7vlG9JyIr4/ZbCxK+tagW/ht0rncPPRt/sYt/bsnZir17ujbqBMUks65oAmDUnUEpsjGeoi7M6KysdbsvfnBdZwAaUv+M/RYx+bWtOnSvdZFHptxrjODYmW+l2HW1AaQzD2Heyu1xmS7dnFlIeTPi6EmVDoycBLjnmIKcilrCIhC+ji+m77+rhLstYwqq8uEs+gVYxRPePZTmx5Xhu10hH7LGnUfkqvNBy31BwB1f1PPvlzBZkZJOK/F7wGMWLLjv/GgV+HqlEQ6PHO43j1i2FetmzOacQUzw+cxs/LbE2Nw1OSM4/TJTFpPp8+m/q16KU4GwJl9d/LzXWCHQRpyUuA33z6yrhjKtJ86BJMCWAknWRDn5LqVCS34sVDGq/N+s/nF12zR+OPLw3w+Ejb1shQTtupzTPWssOClHfJTNf8zaoTDJERN9T2E8vrsHx3ncni1/olpm42BNnIuKsN3wrhBBX9jRS8fktRLyyaxwoxwASKYGX/Ej9eOG6bBGIQXHaeDOo+Sps6qvLT1D5ZlrTZFtRXYAKk0u3O0v2lE5imOU+GK2Fr8P923iE+IC0J3O69X5wpdV3fjVsWdkmnhxgX3yBFHw9vqG72+fAdAuLyyF6aWgy+t8JyU0VeKiPq6syYkUdjmo7cCc6Aek/ZtbU ZY36Oxw8 kBoaLOoo/XwjLljlSNXqw5FvSgw2f5P3A5TVcOPeERAJciPh1P5cbQodRKYNFDVz/CBjFeE8S+FZkCy2I+GqVan/udw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: - ERROR: code indent should use tabs where possible - ERROR: that open brace { should be on the previous line Signed-off-by: JeongHyeon Lee --- mm/mempolicy.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mm/mempolicy.c b/mm/mempolicy.c index b646fab3e45e..840da8ff9b9b 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c @@ -1161,7 +1161,7 @@ int do_migrate_pages(struct mm_struct *mm, const nodemask_t *from, * do_migrate_pages() tries to maintain the relative * node relationship of the pages established between * threads and memory areas. - * + * * However if the number of source nodes is not equal to * the number of destination nodes we can not preserve * this node relative relationship. In that case, skip @@ -3148,8 +3148,7 @@ void numa_default_policy(void) /* * Parse and format mempolicy from/to strings */ -static const char * const policy_modes[] = -{ +static const char * const policy_modes[] = { [MPOL_DEFAULT] = "default", [MPOL_PREFERRED] = "prefer", [MPOL_BIND] = "bind",