Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4995757ybl; Mon, 9 Dec 2019 21:37:24 -0800 (PST) X-Google-Smtp-Source: APXvYqyUdOywl9j40Dga7dB4jqe0hhofs+jFKdaeKTW/IOKn5FghzDYOvIj88yxFnM0nSItFZvgU X-Received: by 2002:aca:2b1a:: with SMTP id i26mr2488918oik.64.1575956244313; Mon, 09 Dec 2019 21:37:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575956244; cv=none; d=google.com; s=arc-20160816; b=I4+6/KhS4OsI/lQ7R9OJxFYfPbWzPhUDhLkvBxkxOWoh+EALsE0NxczyBRZRkbf+YG 0UF3x+I7hE6Aa5EBqSAosylVxV8IcGXvgv9f8mssgYiZKCjmqU5SfxAolMAO/yEhgXkF NMl6UljKAiv9voO/9Oai4DQMbsRfc0u3tPc+TfdkBAhxMLbi4I1zvDfLQHGkCACF0fuK HcKbaKLs+uF52IADI7ppXsFHv3rTvgcn4F6/FRUMVxmNaJ9qHRfnassVCHq2r7kQPSbT v1TL6cihsX5YKmGRnSWYxHh7dQ9oOBW3tDtwcTOsGeJa4TAhXc+4rLVN7RGC4kzrm5vB sQ/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=jW8cDnXM8H1bPDjcRguRqNRW53QYFt/UNBTTMnhgq3M=; b=Pdmn/FLPma5ogz433hiGtugJf1mo/LLih3p1pSuGr0vLg/+AKeU13VkzDFx47Rkj+e OkucRYmAE2t4O7QyZ7FJ+v8jMBSJpP4teUU+F3oaCpdIL/hCru89VLz3058mZLaOZ7A4 qmH1OO+3o173wdBJU+eXhlfJdBSlidfvpxCDosLlOMcCTYPnwo/mgc5sra40+BGHUmqj GjGBKjIuCYWdT82hduwP4ZbvdRdVHiZPsa3AN/FjdLUcbYkBd2xzjbuhO3DxMNccfOcm 6o8+LhX5zOiuuS5IjGIvSjmhEWdfrhhCjzuCQT7b7p2ZXo5LmtWGN56db/A8TG98loMH chIw== 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 l8si1412468otq.75.2019.12.09.21.37.12; Mon, 09 Dec 2019 21:37:24 -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 S1726986AbfLJFgZ (ORCPT + 99 others); Tue, 10 Dec 2019 00:36:25 -0500 Received: from mx2.suse.de ([195.135.220.15]:49026 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726085AbfLJFgZ (ORCPT ); Tue, 10 Dec 2019 00:36:25 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 24A7DAC5F; Tue, 10 Dec 2019 05:36:23 +0000 (UTC) Subject: Re: [PATCH] xen/blkfront: Adjust indentation in xlvbd_alloc_gendisk To: Nick Desaulniers , Nathan Chancellor Cc: Boris Ostrovsky , Konrad Rzeszutek Wilk , =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= , Jens Axboe , Stefano Stabellini , xen-devel@lists.xenproject.org, linux-block@vger.kernel.org, LKML , clang-built-linux References: <20191209201444.33243-1-natechancellor@gmail.com> From: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= Message-ID: Date: Tue, 10 Dec 2019 06:36:18 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09.12.19 22:07, 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? AFAIK those are intended to be there. Having labels indented by a space makes diff not believe those are function declarations. So a patching a function with a label won't show the label, but the function in the diff block header. Juergen