Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4571341ybl; Mon, 9 Dec 2019 13:08:54 -0800 (PST) X-Google-Smtp-Source: APXvYqz3u3FiW9SzDXx2VQyCVnkVJyeIW6Y0DSv36aFeOOPSGl1KXOm6JlxEbHnzjfNPie0r24lF X-Received: by 2002:a9d:4c88:: with SMTP id m8mr19028988otf.12.1575925734719; Mon, 09 Dec 2019 13:08:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575925734; cv=none; d=google.com; s=arc-20160816; b=iIurr+ZvFWuUGD2OhEX3CTakdqqYEBXBQBiMIIwpbqkH8vL1RCVmgE9pVCp7O+HwjN 9FLBjD4leK/2/EKLW2D5ZmuWhyQNDsIbM+vfapgB7y40r+40BVbYq+0WGhEAXtUBWU8l QEsBejaSJN2z0Ch6pBa3XzXJJQ071tgVTTUZtFUpm2bDt2uHM43Kl1oz3PIYJValrpCX iwAzPfE22J4QpR3o1BWjYLvuCxDAcbqNmz0Q+NNWYt6lFxK1Cti0T+Jk4a8MXk3RS4I2 cWaDYp9IwPt1ea7Lh8NgwbsrX96j9Y1bwy7KymQjm7jZ/Ezfz0npBuCE8/VoOkGtGh5e fc9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=K+eNXnjIau7cgWUnA3a2Cqn1U1V3PjkPxI5SSOqsokA=; b=Lbg3Z2Mdq+KiLSHfnr2Lq9LuJfAdzfl6umdx2sraA3FgAdvSDAfUkoB+JWnJ5pbWyC DFyQx578+ZRrzbs5eZii2qmWi8i4XqQef39ryond1+6lGZEJEqG5W7yb9uK6s0reLPLr AR6V7C/AbNEtBpqKhAve8GM+XX95t4c7D3Q8NjdR+ro6haOgPfvbkGFDfTIlRKshNaE4 pc7EZZJNz2kf7HtCgY3QAVcl5Ux3//7ZPlOfWUZh71etkHQTDYg6Tg8Y3kgHQ+2LZePq dINMTCgz92xippeY0Qsg47+hQrbhW0oAF+wSBex//1N2nxHy7Wykska331M9P5dWfmLa qi2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=N66gVvBq; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x9si651238otk.170.2019.12.09.13.08.42; Mon, 09 Dec 2019 13:08:54 -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=@google.com header.s=20161025 header.b=N66gVvBq; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726614AbfLIVHx (ORCPT + 99 others); Mon, 9 Dec 2019 16:07:53 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:38213 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726365AbfLIVHx (ORCPT ); Mon, 9 Dec 2019 16:07:53 -0500 Received: by mail-pg1-f195.google.com with SMTP id a33so7509155pgm.5 for ; Mon, 09 Dec 2019 13:07:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=K+eNXnjIau7cgWUnA3a2Cqn1U1V3PjkPxI5SSOqsokA=; b=N66gVvBqkf/IjPQJvFj30UwukfXdt7TOhv82tZT0Y1uUriBCsQn852PcFt58pbGqRp 4gI4geMvYZAbnsP3cmY1HBIBfrePAAtWS2G2tDjmxVQrTuAXyr/GKlD+3jAmfHJ+x3mN nUbzjuk6TRlU2f/oY17DgyGFu2HHkF3EtxYivNULwN0EdRBe/tWmUNxjY+sABJZClkXu swMlYnD9n+MlEt5Z1j016kwLNcmGyJ2Kq0vCYcJ8ZgSnrSDEuCuiLHXWhqen6acZN7MY eTomNjbMQhZ5O3+bSXk2fvVW1quzeUl8aXog4mBOHVo/c9yhU3uKAenXTgNeqKN6+EI+ yOdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=K+eNXnjIau7cgWUnA3a2Cqn1U1V3PjkPxI5SSOqsokA=; b=UThvi9Zi9cGmysaXuodbTN37JPjd76nqmJ2wo2t3eau87u/AepaxKwoALAa2Jr2XeU Nv/EKQRV+PjP/BUR82WtyKYd0GmVj+xg5UZbXV9h581QRdh4tNq+zWmZgjhHbj27s9oj uVM1co0aBFnaUdZW3FObfPQqyPeyAjzDckKlQpqwAtGOB/V1sjuSMuIoLzfltlRrQeB6 6SLowcMjRqU8eONu8w7xJcymJ7Ejx2VTxGxiFAVq/uFqjGfZwQ5XzzELBILLfT3rgXVn OOfjOK2tFuynpZ/yeSlxSY81+y2q5eXpSvx5o8MLlMR5ho0TrBWuxRNECYR6IxX2l7gZ aNGQ== X-Gm-Message-State: APjAAAXjXJHnotLfyE/AxYktJZ3zozMe3ugzWO9kui5mqmRVo/urlXhl jjD+3c+8gBChpCpXDKsykYhBVIZ0J8aft4W+SztLcA== X-Received: by 2002:a65:590f:: with SMTP id f15mr20478238pgu.381.1575925672294; Mon, 09 Dec 2019 13:07:52 -0800 (PST) MIME-Version: 1.0 References: <20191209201444.33243-1-natechancellor@gmail.com> In-Reply-To: <20191209201444.33243-1-natechancellor@gmail.com> From: Nick Desaulniers Date: Mon, 9 Dec 2019 13:07:41 -0800 Message-ID: Subject: Re: [PATCH] xen/blkfront: Adjust indentation in xlvbd_alloc_gendisk To: Nathan Chancellor Cc: Boris Ostrovsky , Juergen Gross , 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > if (!VDEV_IS_EXTENDED(info->vdevice)) { > err = xen_translate_vdev(info->vdevice, &minor, &offset); > if (err) > - return err; > - nr_parts = PARTS_PER_DISK; > + return err; > + nr_parts = PARTS_PER_DISK; > } else { > minor = BLKIF_MINOR_EXT(info->vdevice); > nr_parts = PARTS_PER_EXT_DISK; > -- > 2.24.0 > > -- > You received this message because you are subscribed to the Google Groups "Clang Built Linux" group. > To unsubscribe from this group and stop receiving emails from it, send an email to clang-built-linux+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/clang-built-linux/20191209201444.33243-1-natechancellor%40gmail.com. -- Thanks, ~Nick Desaulniers