From patchwork Thu Sep 28 03:28:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: KaiLong Wang X-Patchwork-Id: 145724 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp3051364vqu; Wed, 27 Sep 2023 20:42:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFk/+Hx+pTGQNo96VTRGx1u+UKZVWoANFvVx8Adsa78pjQgDcXSROG31qCjF4e2WpwKaDlo X-Received: by 2002:a17:90b:1a89:b0:274:77b3:64d0 with SMTP id ng9-20020a17090b1a8900b0027477b364d0mr115969pjb.17.1695872567739; Wed, 27 Sep 2023 20:42:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695872567; cv=none; d=google.com; s=arc-20160816; b=06pibaSHjuVJ9YOpHedFYn7iylJmWXq8Zq9DtLh7TvsncAOt23ES0PR1CwWimTZzL9 As69NyLhluL+H4Iv/u+Xu2lzFuzMSiq3RrLLkjBI+/E+zuyPl5iVwv3Q+RaWoCRiThzm Z6EzMrStbg5pf2XPeK30Lfh3qd4jWeWnH5hn4R//VTaczICThMN31ogplUHF+AUB9ysv 5Fso/Q/MRtsAcF9riGchNlcM5cL4cJqG3OotIXS2jLF9EtNGGpgwYN6yOXn1i+wa/KkB RTD8aTB7UZBnTflSMsNKnAvc0azEibmv8siN+zfHnpdvpcEih3/2LVorbS2GdICq89yP xAnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:mime-version :content-transfer-encoding:subject:cc:to:from:date; bh=yPIjTdMtmqB5k5j4QF/P59qTbu0A8ArF4pq+fZd2yBY=; fh=YxaQX7GTjfBsN7A2Jl+A9yP6mmGOQanoqU6QROKhVaA=; b=R5bAN/rLuCthlxxQFLkieClGvprhmACpjEEVYTEYYsIHeDNnRCpN26IMK+JMc1a2sm I6IaxwXNsASwFeNAn8TJO/InaJxidnYf0EV4bES24+3eyUVoneaO58LdesRMCgNg0Npx EEJPcOYKHYxAdwem1ojc+LUDSElj+NXDXlr6d2g/d09dVTWZSkGvq5ziEGw1IZ9g+SZi pKBgLmqTEaE20eLQCUO+D0mqN4cpod+HnZxPssbZ/tJzGQUeXGSPvKX5yGYuBDnE9vLr gcW8nL/1UXX/+KCoJNoe3mP2IUbgg+Vt6bhkKlz3kAloUu6+EdDgx1bIZsEGvTYfzXxE vsWg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id l9-20020a654c49000000b00578b37ad24bsi17520910pgr.619.2023.09.27.20.42.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 20:42:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id C4BE680D1DD4; Wed, 27 Sep 2023 20:29:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230083AbjI1D3l (ORCPT + 20 others); Wed, 27 Sep 2023 23:29:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjI1D3j (ORCPT ); Wed, 27 Sep 2023 23:29:39 -0400 Received: from jari.cn (unknown [218.92.28.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C79EB94 for ; Wed, 27 Sep 2023 20:29:37 -0700 (PDT) Received: from wangkailong$jari.cn ( [182.148.12.64] ) by ajax-webmail-localhost.localdomain (Coremail) ; Thu, 28 Sep 2023 11:28:18 +0800 (GMT+08:00) X-Originating-IP: [182.148.12.64] Date: Thu, 28 Sep 2023 11:28:18 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: "KaiLong Wang" To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH] mm/gup: Clean up errors in gup.c X-Priority: 3 X-Mailer: Coremail Webmail Server Version 2023.1-cmXT6 build 20230419(ff23bf83) Copyright (c) 2002-2023 www.mailtech.cn mispb-4e503810-ca60-4ec8-a188-7102c18937cf-zhkzyfz.cn MIME-Version: 1.0 Message-ID: <1748b504.8b0.18ad9d487ae.Coremail.wangkailong@jari.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: AQAAfwDXaD7S8hRl2YK+AA--.587W X-CM-SenderInfo: 5zdqwypdlo00nj6mt2flof0/1tbiAQAIB2UT+K8AFwAPs3 X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWxJw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_PBL,RDNS_NONE,T_SPF_HELO_PERMERROR,T_SPF_PERMERROR autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 27 Sep 2023 20:29:44 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778251273253929332 X-GMAIL-MSGID: 1778251273253929332 Fix the following errors reported by checkpatch: ERROR: else should follow close brace '}' Signed-off-by: KaiLong Wang --- mm/gup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/gup.c b/mm/gup.c index 2f8a2d89fde1..aed327450250 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -1480,8 +1480,7 @@ static __always_inline long __get_user_pages_locked(struct mm_struct *mm, return -EAGAIN; must_unlock = true; *locked = 1; - } - else + } else mmap_assert_locked(mm); if (flags & FOLL_PIN)