Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1255503rdb; Mon, 2 Oct 2023 04:21:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGiziLIlA38rI0eIoXCudj4FXmbwWTaGMiHiwxHP9Dkvvjk/72BjCk+ez47l1HZfPCYLWjp X-Received: by 2002:a05:6808:1a23:b0:3ae:2362:7137 with SMTP id bk35-20020a0568081a2300b003ae23627137mr13602567oib.59.1696245713477; Mon, 02 Oct 2023 04:21:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696245713; cv=none; d=google.com; s=arc-20160816; b=H3VWgSlWM17TJ1QHYFhnzsb/ABXBpjNpIU7dipEv/6Ryeh6LxuvfVzNF3aSKOw3VYc SV0mu+jZEHBcTasHNM3vrdoeMNsq95khAeDxSWZkkfcf0NgW3AKRWGH9Wxr+syZ/A2fL wcwf+aDYZnOXEzV4Q0yoQH2LXzEYRCsvJtG87qPxQ2Uf8Jz7Qk7ngIR//aWVikH5HDHg UZCXSmtUhPvbIP1bpxLvciwzToF9Q4rKvqKB8cGsBPj//a1ngRlavIrLy/YJy9TrTQcv jA/NnSIHziinai7j0XTrsTH/RTc9JCWVDENsIczogPGN/TwhDURwV6HRVenV5dHm2D5r 3J2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=vloWIm8roEEtkpE7kohbeVMYbuY6qmZVGsigEMAa8jk=; fh=ph4Oj0CEdiZ2mvcQm0/wyZmAfNfxNE421NzjGsuNGCk=; b=Z/gQ4r1x+GnMxpnWF7hn/IM0UZYFezpm3QCkbH/lbtcmEiTzFdUBjbT1f/pF/GSyGA HXnUV7EvQ+tQ08zDCcQhisCNBVXL5KeGbK6gItx47s8AhH7ipXgO+SasRCpflqIhv9ZC JMGUn4Cvo84kaYrF4pRNq++oZ5iAU8tvRY1Uj/WTlhhyz2Yg4XtiHQvG9NdQOvy2F6IF pyRxnjnAck8EaSkG8ngtxYIYpp4rMcrWepElh5AF3nRyDTbA5Ggf2DhG7y9rwsop5tCZ +TPEL50A+4gupmXAqQR22CFgg4YMdCSyi8oycUFugSl0FTwz/Vg4NsxaZwXVhwFCogJ1 lXKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=H0d9i7Fj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id bv23-20020a17090af19700b00274a5edad0csi6967551pjb.139.2023.10.02.04.21.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 04:21:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=H0d9i7Fj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 42E46807C57A; Mon, 2 Oct 2023 04:16:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236621AbjJBLQ2 (ORCPT + 99 others); Mon, 2 Oct 2023 07:16:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236610AbjJBLQ0 (ORCPT ); Mon, 2 Oct 2023 07:16:26 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1ABF0AC for ; Mon, 2 Oct 2023 04:15:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1696245339; h=from:from: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:in-reply-to:references:references; bh=vloWIm8roEEtkpE7kohbeVMYbuY6qmZVGsigEMAa8jk=; b=H0d9i7FjxgFDw53qerelKijbHvbe6c7mkmnLtTc/p/zB28Rebb+bMl/uNX0bc7EbgGwfjf r2gZW5AOz6vXxcQApNzG5zsfJsongi0lycB6/3ZGJfP7EXXfGnAyKxs0HGLYbzCCFNJDUA k8UiXNWiYgW8nfKrsGHdPbyhRisG1BU= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-172-P88n6qZqMuSAgahAc7Bchw-1; Mon, 02 Oct 2023 07:15:37 -0400 X-MC-Unique: P88n6qZqMuSAgahAc7Bchw-1 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-321f75cf2bdso12011692f8f.2 for ; Mon, 02 Oct 2023 04:15:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696245336; x=1696850136; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vloWIm8roEEtkpE7kohbeVMYbuY6qmZVGsigEMAa8jk=; b=cl9i2omc7IJU8gEYlGNz+GIEVscfOggVSrwX2SgV8CgxEXghBmaZSxsw5GGg/PNR3C CaTgbKL1VYaRqtDOIQ2HsIc7P1R9WXoWesbyifMlH0AfVQt1v6fzQ3BAyJeBh+ubmYps BMeTOyYbPnKVcKgByjU71RaqdyXWy14DasE0rmmNZ58VZY3MDrUdpMjsVTRbL/unD9aG N2dJCZ51QGOIJElQZnJ575rNlFTkYUQO/BbwUQ4oY/zu73xtR+NbAnw0ml/t7tLSOIDY MX1xQK4kyBUc7LGoLibsTdc5Zx7oiwSapNaO8YJepuh5Mwv8VKzusAqF3vYl+dRWClnV MS0A== X-Gm-Message-State: AOJu0Yz1cPzYI9Fs06sAW5kfdOr3HZU3KF32l7FdKXFXbG5Fn9INSpT+ yZ/fx40SBredUzbEChaZzgeLVtHZSzXy9MI6S6nu1YXFP3yK7PYQfC9BY8MfYHaGFEMbTMq2A6B IpIvqfYfEN0DNO4GW72FR8Cbf X-Received: by 2002:a5d:4c84:0:b0:317:5182:7b55 with SMTP id z4-20020a5d4c84000000b0031751827b55mr9436584wrs.42.1696245336557; Mon, 02 Oct 2023 04:15:36 -0700 (PDT) X-Received: by 2002:a5d:4c84:0:b0:317:5182:7b55 with SMTP id z4-20020a5d4c84000000b0031751827b55mr9436571wrs.42.1696245336137; Mon, 02 Oct 2023 04:15:36 -0700 (PDT) Received: from ?IPV6:2003:cb:c735:f200:cb49:cb8f:88fc:9446? (p200300cbc735f200cb49cb8f88fc9446.dip0.t-ipconnect.de. [2003:cb:c735:f200:cb49:cb8f:88fc:9446]) by smtp.gmail.com with ESMTPSA id 6-20020a05600c22c600b00406447b798bsm6999866wmg.37.2023.10.02.04.15.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 Oct 2023 04:15:35 -0700 (PDT) Message-ID: Date: Mon, 2 Oct 2023 13:15:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH] mm/gup: Clean up errors in gup.c Content-Language: en-US To: KaiLong Wang , akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <1748b504.8b0.18ad9d487ae.Coremail.wangkailong@jari.cn> From: David Hildenbrand Organization: Red Hat In-Reply-To: <1748b504.8b0.18ad9d487ae.Coremail.wangkailong@jari.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Mon, 02 Oct 2023 04:16:38 -0700 (PDT) On 28.09.23 05:28, KaiLong Wang wrote: > 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) Please see Documentation/process/coding-style.rst "3) Placing Braces and Spaces" -- Cheers, David / dhildenb