Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4578247ybl; Mon, 9 Dec 2019 13:15:50 -0800 (PST) X-Google-Smtp-Source: APXvYqxjsnYMrrs9Kjohe0A0kXer6J6tZlodnS7ibChfvo/RUw5DHE095ThkHIdWhczxQX3zss1k X-Received: by 2002:a05:6808:4c7:: with SMTP id a7mr1023608oie.83.1575926150137; Mon, 09 Dec 2019 13:15:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575926150; cv=none; d=google.com; s=arc-20160816; b=Cu0v+hdQuDoLPBwTFf+0ohK3H4SAEnABFsAxoxUMz/wO0RDJLPcDsZnI60peVTFKRJ Xnr4CKhQxEGeFNJbtghr3P0klgytfkHMqF0383ss7g0cLBcOpCj7zciI8+spOLw0BCae drCyKWRqbWdsO3lAiIEcXpNraOETgwX0CK5FwXctxLuQ5tdVwB4D30HL068HqcfB8t7H q49BmvFStz2WUgnJPH7aABhzZT5bJHDbitV6axJGtz26n4dGft6XL6ZDhfU1PeR3YSTZ cDR0DUQhQS8Z386qkUJApVJKRkVWaVAr9yNv7ipFPX47g12fka0mkRhpcsHCMMOdZQHv p13Q== 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=kI1cdqsohvrBZb1G7zvJRzw516Sb7QCZ7TtWVwq88mU=; b=zweYfRNfHVZ1ABICVoEq+LcQgZPI1hncN09LuWHq8PHoVkd4MBMD+96AT/D87uV9f8 5MVvClxGzG0CZZqSxj0Tnp8KKcHbmj7vSm43shNane9jK4KLc6II12o/kUqadfE91vqS PfosNZsBATWAh2Yf+h8fQQL3+1HqOUoBc9bYUq2iEtFqQ2jb1f7eshkK+Rurct++s7f6 bL0Laac+sC7avID5xsPA/68LxavmlCljZvVj1qxNA8M38BeRVgWqJBeyAYAhPp06OC9+ DGeDr5HmYyKl0eG9ZkOoQWAGNhbJ9cikbZiPio0+W7+/qDLXo9P4eiec67iEf8SyAkvn ubnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tFBqaJ6E; 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 h3si686906otk.60.2019.12.09.13.15.37; Mon, 09 Dec 2019 13:15:50 -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=tFBqaJ6E; 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 S1726605AbfLIVOv (ORCPT + 99 others); Mon, 9 Dec 2019 16:14:51 -0500 Received: from mail-oi1-f196.google.com ([209.85.167.196]:37338 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726354AbfLIVOv (ORCPT ); Mon, 9 Dec 2019 16:14:51 -0500 Received: by mail-oi1-f196.google.com with SMTP id x195so7767433oix.4; Mon, 09 Dec 2019 13:14:50 -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=kI1cdqsohvrBZb1G7zvJRzw516Sb7QCZ7TtWVwq88mU=; b=tFBqaJ6Eo9qr+Sygep748UzAdEO4AKba+6RRWjkEuwQCBVnTqgqwNo/cUrtj/iOeWX I8bFZQypaMzklntlXxlO/YjyUMMq3d/aQCGFL0cMj5pKJBjcERHsQiDUUbQ3m5Au0EVf Vxa0n5Rl9aByWwLOfUCe2W1u8KojEDq01cr4X1mc8rI2ETSD/gQrFAl6A6HZgE0bP74b H2/I4xqbiJjh7sR4CoUVII7/+XT1iPQ9qfVT16LXgXwXrK/NQHA+jX+JFfygzdxKnjjG uC98WlgJM+wz+vi0BfV2oFdMFnAhNEhwq04chyPC2jlHAloXxdJs8sHSy938bey5IqNY YZGg== 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=kI1cdqsohvrBZb1G7zvJRzw516Sb7QCZ7TtWVwq88mU=; b=lTPgsgUEMhqs+LbAomnAO+G6oCHLK7do9Aaa4UAybbP+1MDTZu/p1On2NPv3+d+sfN C6zIa62LXydUgeX5RcljppSiwqwfWlz++Q2ZfTdWWpz98d7oka2fhmfu6rD73iq1BTGx zakvLEEyvzKQfBYlOAnlH+bfdwx2KjKeKfkAcngtzk06Q32gmSnu2+JUhv5BUUNESRs4 WGR+68Id+WJtzmozb7iMBQrs7pCXPn7hYi4QYHFMCa2AyHGOoT0XEgsp82hADNuwL3jx JLOPl5Xj9BwX9u4m5m5vty8/zdEgSV7TnUcbd/+/O3dHSLLmPeRoEFFTvcWX+4Hq/gpi lJ2w== X-Gm-Message-State: APjAAAXGM9FO9OCN+jZKgsld/XI1ZRsKW4MnlyIBrnjcrHyGTAc4e9p4 yEWK/ba/oocZdBuTKl2iX39FIKIHC+4= X-Received: by 2002:aca:8d5:: with SMTP id 204mr981154oii.141.1575926089961; Mon, 09 Dec 2019 13:14:49 -0800 (PST) Received: from ubuntu-m2-xlarge-x86 ([2604:1380:4111:8b00::1]) by smtp.gmail.com with ESMTPSA id g19sm397100otj.81.2019.12.09.13.14.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Dec 2019 13:14:49 -0800 (PST) Date: Mon, 9 Dec 2019 14:14:47 -0700 From: Nathan Chancellor To: Nick Desaulniers Cc: Boris Ostrovsky , Juergen Gross , Konrad Rzeszutek Wilk , Roger Pau =?iso-8859-1?Q?Monn=E9?= , Jens Axboe , Stefano Stabellini , xen-devel@lists.xenproject.org, linux-block@vger.kernel.org, LKML , clang-built-linux Subject: Re: [PATCH] xen/blkfront: Adjust indentation in xlvbd_alloc_gendisk Message-ID: <20191209211447.GA43622@ubuntu-m2-xlarge-x86> References: <20191209201444.33243-1-natechancellor@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 09, 2019 at 01:07:41PM -0800, Nick Desaulniers wrote: > On Mon, Dec 9, 2019 at 12:14 PM Nathan Chancellor > wrote: > > > > Clang warns: > > > > ../drivers/block/xen-blkfront.c:1117:4: warning: misleading indentation; > > statement is not part of the previous 'if' [-Wmisleading-indentation] > > nr_parts = PARTS_PER_DISK; > > ^ > > ../drivers/block/xen-blkfront.c:1115:3: note: previous statement is here > > if (err) > > ^ > > > > This is because there is a space at the beginning of this line; remove > > it so that the indentation is consistent according to the Linux kernel > > coding style and clang no longer warns. > > > > While we are here, the previous line has some trailing whitespace; clean > > that up as well. > > > > Fixes: c80a420995e7 ("xen-blkfront: handle Xen major numbers other than XENVBD") > > Link: https://github.com/ClangBuiltLinux/linux/issues/791 > > Signed-off-by: Nathan Chancellor > > --- > > drivers/block/xen-blkfront.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c > > index a74d03913822..c02be06c5299 100644 > > --- a/drivers/block/xen-blkfront.c > > +++ b/drivers/block/xen-blkfront.c > > @@ -1113,8 +1113,8 @@ static int xlvbd_alloc_gendisk(blkif_sector_t capacity, > > While you're here, would you please also removing the single space > before the labels in this function? > > In vim: > > /^ [a-zA-Z] > > turns up 5 labels with this. That should probably be a separate patch since there are only two labels in the function I am touching here. I'll whip up a v2 if the maintainers want it though or I'll just draft a separate patch when I am done addressing all of the misleading indentation warnings. Thanks for the reply! Nathan