Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752063AbcJBMC1 (ORCPT ); Sun, 2 Oct 2016 08:02:27 -0400 Received: from mout.web.de ([212.227.17.12]:56728 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751006AbcJBMCU (ORCPT ); Sun, 2 Oct 2016 08:02:20 -0400 Subject: [PATCH 6/13] md/multipath: Delete 13 unwanted spaces behind function names To: linux-raid@vger.kernel.org, Jens Axboe , NeilBrown , Shaohua Li References: <566ABCD9.1060404@users.sourceforge.net> <4a31d7a7-f70c-12f7-202f-963bd8706066@users.sourceforge.net> Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall From: SF Markus Elfring Message-ID: Date: Sun, 2 Oct 2016 14:02:09 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <4a31d7a7-f70c-12f7-202f-963bd8706066@users.sourceforge.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:AxpTyRCX00eUmXbAuteXyD0deUV1wax05iv54kjXW2jbtVd3U33 bQ+W5buLaKDn5xCRPUP+C/MmnmGiEI/jOXEnTUAjB9BL2xy+0BZYRRL6nixaRkYVqnSdVME LGNgowXaENl/N+txIVJxKsE8GQaxmAwtHx1W/lV2ZS6PCzjpQRi0RkxbH2UuaHj2Q9Gm/Pl pLJM8q18xJ2PrMxmtWNYA== X-UI-Out-Filterresults: notjunk:1;V01:K0:E/X1nMVoHaM=:UjztMQ7UD4HTBm/rA9+3/F e1RpsIApkQYgEMLhmW8wCrkT3n4dP195dc7uoyo/Cva2FviSPqCRm/DjZYjumJHJEyMSUhy4H +i+B4RkrRPE2BeW06W4FBTvW6JypWZD9yxtYVAlAEjfRmasZqsy562PMa/EDXpKOvy5QAraNm Rv6hIEhcQzDixblLg24CScsU7xRDJ4HAvuxbnMYK+YviFzvpyhSycm7bIDax6IxzZwdusA1go Kqzpbx+cntwQICQ9tyBskp5bafuGF9a8Nn2P+v+ljQ9xXsFj42vJAXwvG+5GDmo5ZDYWZQUwK Xz5Oy3NVG/0TltsESebo7+KX0cS1xZKzCKnBqCrW4UyN7bfgrzVxETVWOqTKOx4rrxbuMrKdu UkA6bgvz0bm2JRpJSCFaORJcUPncFpglf5cDKI1IND18o60GF4PtzRd3lB939Jqw8CMs5RgWd B05YgXGsJG5AmxeEtrOgCLiHoPusVOVjLc2JOrGy7pBp40P/t4ICQrzfQNT9ImBiY1asrVWLP 9QxefWN75BTwemxY4BBlC/G6ts+UyXOUpYQRg6J1EsY219fFQEA+77Ub9BR2nFM8PeGRQbuxo DLYI4G2dXK6z53rnQjVcyg5uhvZMXuaLCmKVram+TdKdQ9eNizZ6jJT3bZvEfgwnoFzCMOmqk NN7tmv1rWFvVP3jSYM+LYE1b0DuAj0R4eLWqojbP59HWJK2OldYK63aRXTxf4oEULJcVQnbp1 QMiTFHQ5x6HXrNvxvrbOku1/lEVNj7ts4ILCpyjbbjtver57gKX3BIB0Y53GywGGhpcTGgXOd oa63TDe Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4012 Lines: 120 From: Markus Elfring Date: Sun, 2 Oct 2016 08:14:48 +0200 The script "checkpatch.pl" pointed 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 --- drivers/md/multipath.c | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/drivers/md/multipath.c b/drivers/md/multipath.c index 2e4ceb9..7e10603 100644 --- a/drivers/md/multipath.c +++ b/drivers/md/multipath.c @@ -31,7 +31,7 @@ #define NR_RESERVED_BUFS 32 -static int multipath_map (struct mpconf *conf) +static int multipath_map(struct mpconf *conf) { int i, disks = conf->raid_disks; @@ -56,7 +56,7 @@ static int multipath_map (struct mpconf *conf) return (-1); } -static void multipath_reschedule_retry (struct multipath_bh *mp_bh) +static void multipath_reschedule_retry(struct multipath_bh *mp_bh) { unsigned long flags; struct mddev *mddev = mp_bh->mddev; @@ -73,7 +73,7 @@ static void multipath_reschedule_retry (struct multipath_bh *mp_bh) * operation and are ready to return a success/failure code to the buffer * cache layer. */ -static void multipath_end_bh_io (struct multipath_bh *mp_bh, int err) +static void multipath_end_bh_io(struct multipath_bh *mp_bh, int err) { struct bio *bio = mp_bh->master_bio; struct mpconf *conf = mp_bh->mddev->private; @@ -96,7 +96,7 @@ static void multipath_end_request(struct bio *bio) * oops, IO error: */ char b[BDEVNAME_SIZE]; - md_error (mp_bh->mddev, rdev); + md_error(mp_bh->mddev, rdev); printk(KERN_ERR "multipath: %s: rescheduling sector %llu\n", bdevname(rdev->bdev,b), (unsigned long long)bio->bi_iter.bi_sector); @@ -147,12 +147,14 @@ static void multipath_status(struct seq_file *seq, struct mddev *mddev) struct mpconf *conf = mddev->private; int i; - seq_printf (seq, " [%d/%d] [", conf->raid_disks, - conf->raid_disks - mddev->degraded); + seq_printf(seq, " [%d/%d] [", conf->raid_disks, + conf->raid_disks - mddev->degraded); rcu_read_lock(); for (i = 0; i < conf->raid_disks; i++) { struct md_rdev *rdev = rcu_dereference(conf->multipaths[i].rdev); - seq_printf (seq, "%s", rdev && test_bit(In_sync, &rdev->flags) ? "U" : "_"); + seq_printf(seq, + "%s", + rdev && test_bit(In_sync, &rdev->flags) ? "U" : "_"); } rcu_read_unlock(); seq_printf (seq, "]"); @@ -183,7 +185,7 @@ static int multipath_congested(struct mddev *mddev, int bits) /* * Careful, this can execute in IRQ contexts as well! */ -static void multipath_error (struct mddev *mddev, struct md_rdev *rdev) +static void multipath_error(struct mddev *mddev, struct md_rdev *rdev) { struct mpconf *conf = mddev->private; char b[BDEVNAME_SIZE]; @@ -218,7 +220,7 @@ static void multipath_error (struct mddev *mddev, struct md_rdev *rdev) conf->raid_disks - mddev->degraded); } -static void print_multipath_conf (struct mpconf *conf) +static void print_multipath_conf(struct mpconf *conf) { int i; struct multipath_info *tmp; @@ -377,7 +379,7 @@ static sector_t multipath_size(struct mddev *mddev, sector_t sectors, int raid_d return mddev->dev_sectors; } -static int multipath_run (struct mddev *mddev) +static int multipath_run(struct mddev *mddev) { struct mpconf *conf; int disk_idx; @@ -496,14 +498,14 @@ static struct md_personality multipath_personality = .congested = multipath_congested, }; -static int __init multipath_init (void) +static int __init multipath_init(void) { - return register_md_personality (&multipath_personality); + return register_md_personality(&multipath_personality); } -static void __exit multipath_exit (void) +static void __exit multipath_exit(void) { - unregister_md_personality (&multipath_personality); + unregister_md_personality(&multipath_personality); } module_init(multipath_init); -- 2.10.0