From nobody Thu May 2 12:45:40 2024 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1575955836; cv=none; d=zohomail.com; s=zohoarc; b=A13w74WfYCWG1NmL5k4c/Zp94+Y4o7p0JrbocgJjQUlKEJqEND7LO2rCrXAPavEeXZPCl+F5w3rBVMXR0EwXz4ezgtR79mTklZzLC94LyIny7fvTWyBoiPARvXQvP+PXjSvwt4jbemJkuAK0xOeS/C3Ah0rx6/OQWsqZcE10ybU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1575955836; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=X+3h8tRPEM1xrEdJOkVQRzhWaBBp9ViwfYQf/TR43Dc=; b=EryCRl7rDs4504j3t09i+VBS3ZgvzYGVvR6PugbqivbzZay4cPp51kVP4C5TJYrCclo1aJdY043yJFZJEMMN4EBOCCs8hD3ctGhgxwjSUSKbdAGIUhY9Fmi4kLF9EPjMiKs+iEPQ6Ki3C8igP/QYvlcFUSOhPcLCkDUds8bU6O0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 157595583636920.645230018796838; Mon, 9 Dec 2019 21:30:36 -0800 (PST) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ieY5n-0003lF-TZ; Tue, 10 Dec 2019 05:29:51 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iePQn-0006mY-BO for xen-devel@lists.xenproject.org; Mon, 09 Dec 2019 20:14:57 +0000 Received: from mail-ot1-x343.google.com (unknown [2607:f8b0:4864:20::343]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 9165813e-1ac0-11ea-88e7-bc764e2007e4; Mon, 09 Dec 2019 20:14:56 +0000 (UTC) Received: by mail-ot1-x343.google.com with SMTP id a15so13424576otf.1 for ; Mon, 09 Dec 2019 12:14:56 -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) X-Inumbo-ID: 9165813e-1ac0-11ea-88e7-bc764e2007e4 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=j/rEABfwdKgPpyHKAjAhjjR+1BWviJ3nDuYyYCYfisBtlY5g8d7+O7WNqPEB8aJeW2 qeHx+fiOJMnzspt2egPkNgfreu4X0MaOdbZ07WhRUgbe50iZ9Ymab8NlYzOTGnmoEXd1 ArqaG7A13khudSSEb5Wir8P+5PmY1MpVDjd5Kt05Wdo3T95gC+wlZr4UnmQZUC6h8Wzh LKsw/lgYoiKoQp8Wp2lAYz91upxkihLJPz/EK4HluwZnnT5j4wXX0eZCE3QdWv5TyELs b6Frf6pliW1MhLvOmJcFDtnfmbBPXH8cKE6i1HCC8P7YyNg/YBQz2ftOzv4L/uuhi4m7 AORg== X-Gm-Message-State: APjAAAU2b+10R1AfWyn+QPlc2B0/HvZVxTfya46DA81q0Fhw0hCgsOv2 YHtqLsCBinOFNwF3d5T2AVY= X-Google-Smtp-Source: APXvYqwtJH5AIBsowE8iyT5Wwd/+RpbfvNZzd2/T/yaZlpHGDcKsUA8xSbkAO2wxxt1C7Oi7XlTpyg== X-Received: by 2002:a9d:6f11:: with SMTP id n17mr22298966otq.126.1575922495982; 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 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 X-Mailman-Approved-At: Tue, 10 Dec 2019 05:29:50 +0000 Subject: [Xen-devel] [PATCH] xen/blkfront: Adjust indentation in xlvbd_alloc_gendisk X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Stefano Stabellini , linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, clang-built-linux@googlegroups.com, xen-devel@lists.xenproject.org, Nathan Chancellor Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Clang warns: ../drivers/block/xen-blkfront.c:1117:4: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] nr_parts =3D 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 XEN= VBD") Link: https://github.com/ClangBuiltLinux/linux/issues/791 Signed-off-by: Nathan Chancellor Acked-by: Roger Pau Monn=C3=A9 Reviewed-by: Juergen Gross --- 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 capacit= y, if (!VDEV_IS_EXTENDED(info->vdevice)) { err =3D xen_translate_vdev(info->vdevice, &minor, &offset); if (err) - return err; =09 - nr_parts =3D PARTS_PER_DISK; + return err; + nr_parts =3D PARTS_PER_DISK; } else { minor =3D BLKIF_MINOR_EXT(info->vdevice); nr_parts =3D PARTS_PER_EXT_DISK; --=20 2.24.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel