Skip to content

Commit ddad9ef

Browse files
H Hartley SweetenJens Axboe
authored andcommitted
drivers/block/drbd/drbd_nl.c: use bitmap_parse instead of __bitmap_parse
The buffer 'sc.cpu_mask' is a kernel buffer. If bitmap_parse is used instead of __bitmap_parse the extra parameter that indicates a kernel buffer is not needed. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Lars Ellenberg <drbd-dev@lists.linbit.com> Cc: Philipp Reisner <philipp.reisner@linbit.com> Cc: Jens Axboe <axboe@kernel.dk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
1 parent e2a5429 commit ddad9ef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/block/drbd/drbd_nl.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1829,10 +1829,10 @@ static int drbd_nl_syncer_conf(struct drbd_conf *mdev, struct drbd_nl_cfg_req *n
18291829

18301830
/* silently ignore cpu mask on UP kernel */
18311831
if (nr_cpu_ids > 1 && sc.cpu_mask[0] != 0) {
1832-
err = __bitmap_parse(sc.cpu_mask, 32, 0,
1832+
err = bitmap_parse(sc.cpu_mask, 32,
18331833
cpumask_bits(new_cpu_mask), nr_cpu_ids);
18341834
if (err) {
1835-
dev_warn(DEV, "__bitmap_parse() failed with %d\n", err);
1835+
dev_warn(DEV, "bitmap_parse() failed with %d\n", err);
18361836
retcode = ERR_CPU_MASK_PARSE;
18371837
goto fail;
18381838
}

0 commit comments

Comments
 (0)