Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3076810imu; Sun, 9 Dec 2018 16:47:03 -0800 (PST) X-Google-Smtp-Source: AFSGD/X1neK5x/o/wk51ja7EinrmjyXfAbl7Cs71N/fvJDTw0uQlacEDv3lM5TGnSLGSngbv+8Kv X-Received: by 2002:a17:902:8e8a:: with SMTP id bg10mr10269472plb.192.1544402823345; Sun, 09 Dec 2018 16:47:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544402823; cv=none; d=google.com; s=arc-20160816; b=A9MxTCB2l8Xnasxk/XTqprh3M2uN2u3txux9jl32UPoJ3oEmHbhpEX9HkfZ5C/162a +8U5lgYL6gBWm04r7UggewsKXKQ/+Pm2928ueLnpFR+iiDiFLGoJerG2mjneoCg/3gZi GfXMrsyN14qeHOIDYpP9lmSjvN6BLhO3uqyrg31CJJXsW2T4GzzR7QcbiQXaNRRP2TiB fDB6zKDtdL8lY0/1FQmT/Avz28gWPf3tbLS/7v3xoHGM62kMo5Fx4I3UWEkMdVoFpqra +4ut2gVExOISX8WBJ91eJL/ilyqjdSwunKjO6fnM3sbsg1ymJxe+dYcsLYrNqrtzfE+O Abxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=hE20hDo5Rwwr+mkT8oHP/UWTe73s8sswUikAmc5hLMQ=; b=tIveXJxQADyAvXh2laNRRD9wXqk+BRyZENzBp14U4TF7HjwJsEOISGgQTl1xK37czO ouwX+69C/jjzKiqN5aKsC6me6ZPk/2TKZWX5T4wjvEhf60MvwsPkzoCY1x9nyw57lEgr HyQfOOVEyN+WxAFSfBZG0HOkUB5B09yr3fkZZgdNZLOlq8ffXaev4yt+IhijRyXyW/JV Yhut6YofRPJybWc+CLQgye3kPrHR8OEqTdsSZSyzByPxiZL/iu51f4K2+oHjbIDRotBg ADnWn6elDxSBEQSSWdC9vPlRjJr6vXZU+A0hQUJBtBnMVcHGcS/WnTBID3ycBu2jtTCC 2LEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cZeYc7Y4; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t4si9417184pfj.183.2018.12.09.16.46.47; Sun, 09 Dec 2018 16:47:03 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cZeYc7Y4; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726375AbeLJAmW (ORCPT + 99 others); Sun, 9 Dec 2018 19:42:22 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:38167 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726354AbeLJAmW (ORCPT ); Sun, 9 Dec 2018 19:42:22 -0500 Received: by mail-ed1-f67.google.com with SMTP id h50so8074489ede.5 for ; Sun, 09 Dec 2018 16:42:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=hE20hDo5Rwwr+mkT8oHP/UWTe73s8sswUikAmc5hLMQ=; b=cZeYc7Y4ZQD9c8PhB+oqm14Ck7co6KMatalBCtfTOAxwUv9wHWjjb14b/ngbedS+7r wyFJcjfm4OXEGSksoPLQUtLYe9/kVDWEfAyExZh01fv47j9z2FzvBIvctXL2vxdYKOhN G1Taw+TGgCaFtBa8LAWh5NQ3eKKREsdIu77hqNfMVyuFryFY8hsnlS3m4F/WIUr5hOjp RfTkMaJicaZbmsxkOsuTfCXeaqqyIj9Dr+FymlFOQVVhyOdMty2joX3J6cPrgehUUWRT 489nJvE+vW0qJYL5MZ9/nR5jBuC/ME/83xRIJTLmXlc8QSsBBfP/Wa810Qm51Gadib67 CjGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=hE20hDo5Rwwr+mkT8oHP/UWTe73s8sswUikAmc5hLMQ=; b=bjKelMiGH7IFFHOabZPezhGlI77TP4h+NSIMAS4N9esFLcZwLjEThGxunOYuNGO5Br zN25gdZj1cfZYBAx9UD7zMjfc03fRcbQQSFUa2ZnLsnVylFS7SgyoHrWCLzqPmL2j5KI LMmPzuJHjU5QyW7IFdxJ2SpjMgEUIHhxy/CB+OUOoIAK8x4ng2EVs5nWGpSUW787DHg6 vRo8n5TvkOcpai9elS7Fl/z13NmV2v0gFKn+vdcuRFi3cOEXWw+aXa1DCSlXI4YUNjF2 ibVerP6cz/U6+027XQiBS7Jb2Zsee77RliOeDweP0/N0APed5Ctq3Lpnndd4DR3j417i ts6Q== X-Gm-Message-State: AA+aEWa0wbQ3bjYFe+Od7h6+PQwlinm92DYUkdxR1v7pDSwZdXFFig6x yKe6ShdM/0aU2jzYX73si8I= X-Received: by 2002:a17:906:4ed9:: with SMTP id i25-v6mr8091952ejv.75.1544402540492; Sun, 09 Dec 2018 16:42:20 -0800 (PST) Received: from ltop.local ([2a02:a03f:40bc:4d00:e8b1:47b5:cae1:da95]) by smtp.gmail.com with ESMTPSA id a11sm2979095edc.28.2018.12.09.16.42.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Dec 2018 16:42:19 -0800 (PST) Date: Mon, 10 Dec 2018 01:42:18 +0100 From: Luc Van Oostenryck To: Greg KH Cc: Joe Perches , Thomas Jespersen , gaoxiang25@huawei.com, yuchao0@huawei.com, linux-erofs@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: erofs: Add braces to do-while statements Message-ID: <20181210004217.ufzvj4rvykiqoufd@ltop.local> References: <20181209155900.10164-1-laumann.thomas@gmail.com> <20181209162007.GA22432@kroah.com> <20181209194029.GA31163@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181209194029.GA31163@kroah.com> User-Agent: NeoMutt/20180622 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 09, 2018 at 08:40:29PM +0100, Greg KH wrote: > On Sun, Dec 09, 2018 at 09:27:01AM -0800, Joe Perches wrote: > > On Sun, 2018-12-09 at 17:20 +0100, Greg KH wrote: > > > On Sun, Dec 09, 2018 at 04:59:00PM +0100, Thomas Jespersen wrote: > > > > This fixes warning reported by sparse (with -Wsparse-all). > > > > > > Why is sparse warning about this? > > > > Probably because it's the kernel preferred style > > to use single statement > > > > do { > > ; > > } while (); > > > > over > > > > by about a 20:1 ratio. > > Sparse is spitting out coding style complaints now? To my own surprise, it's effectively sparse that complained: warning: do-while statement is not a compound statement with the flag -Wsparse-all (or -Wdo-while). But -Wsparse-all is not a flag normally used for the kernel (or normaly used on anything at all). -- Luc