Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4524382ybl; Mon, 9 Dec 2019 12:15:52 -0800 (PST) X-Google-Smtp-Source: APXvYqyGqsQJNcn8RcqU1kp2XZRTNMwQn/HW5EbrZcZCmCMFmA0GU+2zUSUiWURyaCG4+jsb6sGE X-Received: by 2002:a9d:d6a:: with SMTP id 97mr22251412oti.44.1575922552736; Mon, 09 Dec 2019 12:15:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575922552; cv=none; d=google.com; s=arc-20160816; b=Y8+COHP+kMPONogel4+OSY5FLpL+l+0QGlYPPJprJ1iHJk2API3kD5D3+dgeTkDjIY 8dYh2XpuwJEs22iT6h3na/8cyjpd6Mlv9i1YLFEj7AYNOcEUifILt0S4AdVvs4e6/Ddj O/glN353DjYaRWTCR+/7nZAzqmx+f8CBdKDPLR2omRPMm/q/SVMg+JLWN9Q1evW+TRQH Czm+91ZvSjnAf/kU3GvteZeoXvWBRpelmjSfOrIxkrQu9HcBI1VHXWfa7a+/pCFBDnYY FN32Ra3ShXwa9tl1n6CJez4uURUgrwSOtXrNfGE/Luc0UUsBEozWMJphtBVV4rigwpby ygCg== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=G4ssoJVMzXYKSaITeXCbCdqWsNm++w07wgKnILG/bgg=; b=TlPThSJn6Ayq5qtDf0tyKrzTLTXMtCX8nnW/L4UQpLxpSthuYdby75klHdctH+VX7I 23q9+XscRRKBXmIT1Jfi/8l1s9RtDNE5qdnEfpD1QDtILjuMNEZCTazt7p79ZfKLF19I Rdzpea7oO/KyEFh3lG5yPEbGDnIUeEbJGyx4hJ6OjTSo7xDKZCN1msbDv7jn4jyI8y5r OjvBL8nOLLScAmXZRLNhhUh1uaLXLpTzJp+OOrq0/Aeo2OBDMZi7x1KJwzNkKVw3l1uX cJk4uAEWdEaxcpnLtg4Mw9g+ZN2kCC+I/10uZrfauA4NpSuJJYTyCjMhg20ANIGpmgPK 7/ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=haEST2d9; 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 n11si513900otk.290.2019.12.09.12.15.39; Mon, 09 Dec 2019 12:15:52 -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=haEST2d9; 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 S1726718AbfLIUO5 (ORCPT + 99 others); Mon, 9 Dec 2019 15:14:57 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:43943 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726366AbfLIUO4 (ORCPT ); Mon, 9 Dec 2019 15:14:56 -0500 Received: by mail-ot1-f65.google.com with SMTP id p8so13366625oth.10; Mon, 09 Dec 2019 12:14:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=G4ssoJVMzXYKSaITeXCbCdqWsNm++w07wgKnILG/bgg=; b=haEST2d94B5TmCZrM6JPC6BcdhKhvdNK1ez37JXwt8b1vTyX2uql97OBBZepl9hgh0 Aro/zgnNe+82W8KdhOviCVboGuBF+/B+4B7jckmAQv6Mh9eBErJy3v7HYwHq6JhnAOr5 ugOcjw3VtBQQmYiDrZGc2CN8wAPAmsmDcerXFTMLly5hGp6hwPdTG73Pb3ioBIJuwcmH LVCx9Uj3EuqWgw0pQdq7eFZe4uUGrR9B1sDYT/FqU6Sq9rBSWnfKp7AllvGgkamAyY1D XK1AjGS6WuGZw7vyiKOcEp7zfHtx6DmahqOQJqm0QS045g61YP/46rE9GcmDW8qIsQgn cpDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=G4ssoJVMzXYKSaITeXCbCdqWsNm++w07wgKnILG/bgg=; b=BxOJNKkLOneg5MjMCYK/8oskhgfbdIE+xy/bPfBqfJ77SFNU4Jx56pyYGhgAiaXkgR FvGAdOgg7xn/9/spsUpvYPHbO2PXnag/MBs5rJ9SpUrOsJl++Q2aUI+SyA0Ho3KUrxdA ZELFYEX7GdNmijkNvQ8g5D3VOBP7QyQIKK2zlvNdLw44FU+JYa1kiUTVzG03FhGwoa51 Y/voHsad/ey6/gjg2tusxncFTu1GaZYFaGUnTurll3R9WT8Ng4OERGZKTK8xmbo2m87t G6nyyGbqVIm/o6Pzt5XXE/L7SfSzMTFzsRTY6u7XQRjGS3X1DlgiO6uvV0AIaymXtvbH iEYw== X-Gm-Message-State: APjAAAW8GWeUaa/jxlaMCnlL+iTfOm1pHnhct3aXiLyDi1DfzEw3cPzv laG8gs9qDcr4RkodTeiIiZPEvyfwC6U= X-Received: by 2002:a9d:6f11:: with SMTP id n17mr22298966otq.126.1575922495982; Mon, 09 Dec 2019 12:14:55 -0800 (PST) Received: from localhost.localdomain ([2604:1380:4111:8b00::1]) by smtp.gmail.com with ESMTPSA id z21sm339576oto.52.2019.12.09.12.14.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2019 12:14:55 -0800 (PST) From: Nathan Chancellor To: Boris Ostrovsky , Juergen Gross , Konrad Rzeszutek Wilk , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Jens Axboe Cc: Stefano Stabellini , xen-devel@lists.xenproject.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Nathan Chancellor Subject: [PATCH] xen/blkfront: Adjust indentation in xlvbd_alloc_gendisk Date: Mon, 9 Dec 2019 13:14:44 -0700 Message-Id: <20191209201444.33243-1-natechancellor@gmail.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, 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