Message ID | 20231026005634.6581-1-yang.lee@linux.alibaba.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp342172vqb; Wed, 25 Oct 2023 17:56:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFXMtX2xNLXXhKX/xWhthQ2Ku4/aidCpLSIk1cPhrQenbff318K12eykEfrqowKvZbEIO03 X-Received: by 2002:a0d:cc47:0:b0:5a7:fae6:1cc6 with SMTP id o68-20020a0dcc47000000b005a7fae61cc6mr16723524ywd.24.1698281808326; Wed, 25 Oct 2023 17:56:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698281808; cv=none; d=google.com; s=arc-20160816; b=u7B/FClxO1aZAFu7+4Vh4QoUm01tY+ytccqW0JKPTiDKg6BwSAXD/joSu4Lt4dIxr0 ST4ua/971DX6zod9+y9YSxo55eCB4kh7UVxgUr6FDDx4vGu9nwdgrCvyrsOPcSJYgoar 7FTavGzW8nAGATiMtxpxMErhUOt6olVn/lG6eBrU/MRp/ppXMIAOyqKdgM6kYpNLAeIq TkmzLJuDRpVs0q4Ln6tkxoVRgavZEas9at2p6wkhr3ZtR45d6Dau9LCgN3WxcnnHBkAh FaPTDFLphtNrey8llSNFZrS3FRnIyv7YrkbxXvk6cqJztdK/PT7CgPhqbVqCr/zbUvNs psnw== 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 :message-id:date:subject:cc:to:from; bh=a4oeLUF/KOWeygnSjkpFJ0hM5F2WHitUuhcw7ZiJuec=; fh=UO0tHEk0WdMq1aOg+F4B6ZNq52f/Kt6Zn03b4tVBgf8=; b=j5KcWIp2cnRit7jFOLqejq8kq4MCILUA8vjkZZegho11VfH6+3q8xGD4lc4f22kMB2 1VWMeCHoylR66i8LK9HY60JW74KQoNBuJfKXWAnjywRSnJFbj+UwggUPZxIUJOxcuscM w11RYdEbFpZpsr92YBhG4S485Ybn9cxO8KGNLDCtr9sUUHP0afkG1ZW4or0/Cu1RYJqH 7SHMLNX6LCvYU2GOqTGtOmnCHnSRSIltnMiU50ED4gpODh4t7RiIsZHqXNiyB60paJ1R soPxTt7o0Wq653BacRerfz0kR9coQBWPB60HR2KyWidTGm0Ti1/+v6x/eebLnNSIbHc0 QGDw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id l187-20020a8194c4000000b0059283d21f8asi13996762ywg.213.2023.10.25.17.56.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 17:56:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 691D181B6AB1; Wed, 25 Oct 2023 17:56:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229877AbjJZA4n (ORCPT <rfc822;a1648639935@gmail.com> + 25 others); Wed, 25 Oct 2023 20:56:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229583AbjJZA4l (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 25 Oct 2023 20:56:41 -0400 Received: from out30-130.freemail.mail.aliyun.com (out30-130.freemail.mail.aliyun.com [115.124.30.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0825CE5; Wed, 25 Oct 2023 17:56:38 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R211e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0VuvkxYp_1698281795; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VuvkxYp_1698281795) by smtp.aliyun-inc.com; Thu, 26 Oct 2023 08:56:36 +0800 From: Yang Li <yang.lee@linux.alibaba.com> To: akpm@linux-foundation.org, oleg@redhat.com Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Yang Li <yang.lee@linux.alibaba.com>, Abaci Robot <abaci@linux.alibaba.com> Subject: [PATCH -next] fs: Remove unneeded semicolon Date: Thu, 26 Oct 2023 08:56:34 +0800 Message-Id: <20231026005634.6581-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,URIBL_BLOCKED,USER_IN_DEF_SPF_WL 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 25 Oct 2023 17:56:47 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780777545135564024 X-GMAIL-MSGID: 1780777545135564024 |
Series |
[-next] fs: Remove unneeded semicolon
|
|
Commit Message
Yang Li
Oct. 26, 2023, 12:56 a.m. UTC
./fs/proc/base.c:3829:2-3: Unneeded semicolon
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7057
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
fs/proc/base.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 10/26, Yang Li wrote: > > @@ -3826,7 +3826,7 @@ static struct task_struct *first_tid(struct pid *pid, int tid, loff_t f_pos, > for_each_thread(task, pos) { > if (!nr--) > goto found; > - }; > + } Ah, I forgot to remove this semicolon :/ This is on top of document-while_each_thread-change-first_tid-to-use-for_each_thread.patch perhaps this cleanup can be folded into the patch above along with Yang's sob ? If Yang doesn't object. Oleg.
On Thu, 26 Oct 2023 17:03:35 +0200 Oleg Nesterov <oleg@redhat.com> wrote: > On 10/26, Yang Li wrote: > > > > @@ -3826,7 +3826,7 @@ static struct task_struct *first_tid(struct pid *pid, int tid, loff_t f_pos, > > for_each_thread(task, pos) { > > if (!nr--) > > goto found; > > - }; > > + } > > Ah, I forgot to remove this semicolon :/ > > This is on top of > > document-while_each_thread-change-first_tid-to-use-for_each_thread.patch > > perhaps this cleanup can be folded into the patch above along with Yang's sob ? The above is in mainline, so no squashing. I added your acked-by.
diff --git a/fs/proc/base.c b/fs/proc/base.c index bfe9547d16f9..dd31e3b6bf77 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -3826,7 +3826,7 @@ static struct task_struct *first_tid(struct pid *pid, int tid, loff_t f_pos, for_each_thread(task, pos) { if (!nr--) goto found; - }; + } fail: pos = NULL; goto out;