lkml.org 
[lkml]   [2016]   [Sep]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 10/10] dm snapshot: Delete five unwanted spaces behind "list_for_each_entry"
    From
    Date
    From: Markus Elfring <elfring@users.sourceforge.net>
    Date: Thu, 29 Sep 2016 10:14:32 +0200

    The script "checkpatch.pl" can point information out like the following.

    WARNING: space prohibited between function name and open parenthesis '('

    Thus fix the affected source code places.

    Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
    ---
    drivers/md/dm-snap.c | 10 +++++-----
    1 file changed, 5 insertions(+), 5 deletions(-)

    diff --git a/drivers/md/dm-snap.c b/drivers/md/dm-snap.c
    index 7593986..1310652 100644
    --- a/drivers/md/dm-snap.c
    +++ b/drivers/md/dm-snap.c
    @@ -366,7 +366,7 @@ static struct origin *__lookup_origin(struct block_device *origin)
    struct origin *o;

    ol = &_origins[origin_hash(origin)];
    - list_for_each_entry (o, ol, hash_list)
    + list_for_each_entry(o, ol, hash_list)
    if (bdev_equal(o->bdev, origin))
    return o;

    @@ -385,7 +385,7 @@ static struct dm_origin *__lookup_dm_origin(struct block_device *origin)
    struct dm_origin *o;

    ol = &_dm_origins[origin_hash(origin)];
    - list_for_each_entry (o, ol, hash_list)
    + list_for_each_entry(o, ol, hash_list)
    if (bdev_equal(o->dev->bdev, origin))
    return o;

    @@ -625,7 +625,7 @@ static void dm_exception_table_exit(struct dm_exception_table *et,
    for (i = 0; i < size; i++) {
    slot = et->table + i;

    - list_for_each_entry_safe (ex, next, slot, hash_list)
    + list_for_each_entry_safe(ex, next, slot, hash_list)
    kmem_cache_free(mem, ex);
    }

    @@ -653,7 +653,7 @@ static struct dm_exception *dm_lookup_exception(struct dm_exception_table *et,
    struct dm_exception *e;

    slot = &et->table[exception_hash(et, chunk)];
    - list_for_each_entry (e, slot, hash_list)
    + list_for_each_entry(e, slot, hash_list)
    if (chunk >= e->old_chunk &&
    chunk <= e->old_chunk + dm_consecutive_chunk_count(e))
    return e;
    @@ -2068,7 +2068,7 @@ static int __origin_write(struct list_head *snapshots, sector_t sector,
    chunk_t chunk;

    /* Do all the snapshots on this origin */
    - list_for_each_entry (snap, snapshots, list) {
    + list_for_each_entry(snap, snapshots, list) {
    /*
    * Don't make new exceptions in a merging snapshot
    * because it has effectively been deleted
    --
    2.10.0
    \
     
     \ /
      Last update: 2016-09-29 11:19    [W:4.429 / U:0.248 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site