Skip to content

Commit

Permalink
bcache: move open brace at end of function definitions to next line
Browse files Browse the repository at this point in the history
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 <colyli@suse.de>
Reviewed-by: Shenghui Wang <shhuiw@foxmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Coly Li authored and Jens Axboe committed Aug 11, 2018
1 parent e1f08f1 commit b3cf37b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions drivers/md/bcache/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -2152,7 +2152,8 @@ static ssize_t register_bcache(struct kobject *k, struct kobj_attribute *attr,
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;

Expand All @@ -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;
Expand All @@ -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);
}

Expand Down

0 comments on commit b3cf37b

Please sign in to comment.