Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2959528imu; Sun, 9 Dec 2018 13:38:35 -0800 (PST) X-Google-Smtp-Source: AFSGD/UP1J4Hbf3ME/gOqZaTPOjthPLiVtclA3gNsZb9Yqmpj0IJUlsKfngyAhOalHxBjay67jmJ X-Received: by 2002:a63:bd1a:: with SMTP id a26mr8648688pgf.121.1544391515207; Sun, 09 Dec 2018 13:38:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544391515; cv=none; d=google.com; s=arc-20160816; b=CatsEE99wjOEEzz5AzC17miMS9hRpYFh+kLxxFDiVMEzAupXHhDUHTMYLhnYYulG5v aVolT5hhcwPjD1QbCZaqjpWaWZSkc7qvQmsRldxdhHSuavW93TYlSeBze0ij15lg+Ajq gpInb9U93j2uK4xT7tbEcpGNsahLdL1wpkSUC1tuXsbtdD8X2SMqA5GWCqcyAJ14uTGI nGJ/6WBKoSmkaGUWnjMKRokfs53PTINk+ovy0Sd8Y9Wi2IFuj7ms9zDUzHrGtI5ZmsEv 2pZdmSORspeK/n/FlmaQrq3Fvz66Rm3Fw9p0AgGXY2+83DhtFAJL2kdXw9dy63gmFbRB 2jhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=EQXOdEc9gg2prUlbAKD4hrl2/xXN10o/74Ht+661wdY=; b=YF1uHp0kdS5CQC/4T9jkvJYYLbKvWzy2bH4yAyUWIdg3lW7DIrv8TX5ZSPOpcF0xhB 7KvWnOEhr4gPEbLa0UzpedDNAfUaPDXrvd7yvXJjjLBNFBxIhqvElQJrkWUe0Tqf4Voh 7Q/VmPgVBKfey+1fzuJwRVQVPLsk8viZrkZET3QAXUrfL1Hrvs4VmsjnrKXMjSjxF2bC JrkBqHlFboa4HzNG4IoXMCRwmFlgPzP55psVjYhR8M6MEeKtHtbniI0qBug6ArORFklt lHW0+FBDQprBpRzK7fg1ap3EWuln3AXW/LTcDu8RzqXVLKHxacccmSQ5qczX7rUPUchS xh0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r11si8505528pli.175.2018.12.09.13.38.19; Sun, 09 Dec 2018 13:38:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726281AbeLIVho (ORCPT + 99 others); Sun, 9 Dec 2018 16:37:44 -0500 Received: from mout.gmx.net ([212.227.15.19]:44173 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726194AbeLIVho (ORCPT ); Sun, 9 Dec 2018 16:37:44 -0500 Received: from [10.1.1.220] ([125.120.80.114]) by mail.gmx.com (mrgmx003 [212.227.17.184]) with ESMTPSA (Nemesis) id 0MLujU-1gXDkn0KWC-007nd1; Sun, 09 Dec 2018 22:37:33 +0100 Subject: Re: [PATCH] staging: erofs: Add braces to do-while statements To: Thomas Jespersen Cc: gaoxiang25@huawei.com, yuchao0@huawei.com, gregkh@linuxfoundation.org, linux-erofs@lists.ozlabs.org, linux-kernel@vger.kernel.org References: <20181209155900.10164-1-laumann.thomas@gmail.com> From: Gao Xiang Message-ID: <5db45ff8-ea1a-10f3-fc63-f1918818c9ce@gmx.com> Date: Mon, 10 Dec 2018 05:37:27 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.3 MIME-Version: 1.0 In-Reply-To: <20181209155900.10164-1-laumann.thomas@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Provags-ID: V03:K1:eZNvgb51EpxmGLISM+xYs4Ip+S97XE1qWF6Hw80nt41Dmp7yRiA hoWiX1JJY6l0PxPE2RvQqPO9VRUT5taEcqjQwqzB+hBXglIMAIxNbFBFQ2nfOAvULF7FBiM 8c0b2mrsAVuXwrBd48fZozQ7QaSRS2g8h/S6jSwKfmNRfwE4mv06ankElHYGNuXeRB8+ZV9 xY2sSFtEHdKeencj+c5iQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:pGn5yHpBCzg=:2KAl0dNUnNCZzJ6mFa1QL2 pRAhWKKqMy+rhJN5qyEqm167/fJP65zfDuus2C7S4rAdmSlx21WBQTOyhckhVh1F5ZR8m8UdX 1zrJ4YNSE5CapCiACOFe3fjR6SxyQ/dDTnZ3WQTj/oIZ/l4K3i3OaquXggTMpV89ZEuKkDEf/ dsEwswf879NFuDeKsskWmOKTyZ90u150cfUnXHsZK2hIrxl1u7hJrU0TeCWMZULSjYfJun+kd K6XnGC4GaleZznhyMDOmj2On2gipsgiZnofUjQwKcpEIR0wlHcaytYWxyLPN5lsYadU1q8hkW e1umg7AinRxxpvUEKTZ7/WgSehjKREmkRHyMw2kcobWvhQ4/ptbgHZkEyQ9fo9oTlPXajAz1u nmFqehhqX1oii6lF9DQezzyAeJqG47asZzagSV0/YMjiV4ygo8Y7egku0Jj1JmGqq+FhYIR8E izWdpVEEtsKwO5huaDiOYMpu/VxF7Dpn0S7k3UEcvp0JM2ZGZLBWEM6RNHg1T+rF1rA5+oCdA RvcU5N38QHKZNg7y2le66VXyAk8wTzxrGnxsgGVEepqH8+vD5WlUzBdfmAx62HfbDHOb9q5wF dtsnUSlWGxb9l8nPPindHZrHQ6q64gjHaEjh8oZz4RiYZFZstAl98B8+1b0D3rcXmtGMV0KNp 760wg7xrDwyWUZPT7OBRyXII2yOvfsHGZ+40osbj1WcexJn9P8KhCwVEeFBMzrwBwVlLOAbYq oZ67M+nglG/xVHz5F1vq0RPbYZMmYhiH2tTta8XpYnyLMJUVGO8ZEdXc1nzClPRSJpt8ECVqU hT8TeWFxUTAdWzF4HzTZ/8PZeo5dH4OrnjytJGVLj37nl2Wy3KuGFl5XVPRKovD+aGCCqtHvj cmImwqStK4kTLpUM9TR6/peWI04caLAK50ThuF/LGvzcUAHVLBiZyJJbxudTvH Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [oops... I found Thomas sent the exactly the same email again.] On 2018/12/9 23:59, Thomas Jespersen wrote: > This fixes warning reported by sparse (with -Wsparse-all). > > Signed-off-by: Thomas Jespersen > --- > drivers/staging/erofs/internal.h | 4 ++-- > drivers/staging/erofs/utils.c | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/staging/erofs/internal.h b/drivers/staging/erofs/internal.h > index 57575c7f5635..bf180a803446 100644 > --- a/drivers/staging/erofs/internal.h > +++ b/drivers/staging/erofs/internal.h > @@ -232,9 +232,9 @@ static inline bool erofs_workgroup_get(struct erofs_workgroup *grp, int *ocnt) > /* spin if it is temporarily locked at the reclaim path */ > if (unlikely(o == locked)) { > #if defined(CONFIG_SMP) || defined(CONFIG_DEBUG_SPINLOCK) > - do > + do { > cpu_relax(); > - while (atomic_read(&grp->refcount) == locked); > + } while (atomic_read(&grp->refcount) == locked); > #endif > goto repeat; > } Could you please check the latest source code? I cannot find the above code... So I think this patch cannot be applied directly :( https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git/tree/drivers/staging/erofs/internal.h?h=staging-next#n260 ... and why you send this patch without modification... https://lists.ozlabs.org/pipermail/linux-erofs/2018-December/001099.html https://lists.ozlabs.org/pipermail/linux-erofs/2018-December/001100.html Thanks, Gao Xiang