Return-Path: Received: from mx2.suse.de ([195.135.220.15]:44966 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727462AbeHJJyR (ORCPT ); Fri, 10 Aug 2018 05:54:17 -0400 From: Coly Li To: linux-bcache@vger.kernel.org Cc: linux-block@vger.kernel.org, shhuiw@foxmail.com, Coly Li Subject: [PATCH v2 14/17] bcache: move open brace at end of function definitions to next line Date: Fri, 10 Aug 2018 15:23:54 +0800 Message-Id: <20180810072357.19823-15-colyli@suse.de> In-Reply-To: <20180810072357.19823-1-colyli@suse.de> References: <20180810072357.19823-1-colyli@suse.de> Sender: linux-block-owner@vger.kernel.org List-Id: linux-block@vger.kernel.org This is not a preferred style to place open brace '{' at the end of function definition, checkpatch.pl reports error for such coding style. This patch moves them into the start of the next new line. Signed-off-by: Coly Li Cc: Shenghui Wang --- drivers/md/bcache/super.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c index 1b5ace425261..18fa72e88342 100644 --- a/drivers/md/bcache/super.c +++ b/drivers/md/bcache/super.c @@ -2152,7 +2152,8 @@ static ssize_t register_bcache(struct kobject *, struct kobj_attribute *, kobj_attribute_write(register, register_bcache); kobj_attribute_write(register_quiet, register_bcache); -static bool bch_is_open_backing(struct block_device *bdev) { +static bool bch_is_open_backing(struct block_device *bdev) +{ struct cache_set *c, *tc; struct cached_dev *dc, *t; @@ -2166,7 +2167,8 @@ static bool bch_is_open_backing(struct block_device *bdev) { return false; } -static bool bch_is_open_cache(struct block_device *bdev) { +static bool bch_is_open_cache(struct block_device *bdev) +{ struct cache_set *c, *tc; struct cache *ca; unsigned int i; @@ -2178,7 +2180,8 @@ static bool bch_is_open_cache(struct block_device *bdev) { return false; } -static bool bch_is_open(struct block_device *bdev) { +static bool bch_is_open(struct block_device *bdev) +{ return bch_is_open_cache(bdev) || bch_is_open_backing(bdev); } -- 2.18.0