From: Ozgur Karatas <mueddib@goosey.org>
To: idryomov <idryomov@gmail.com>, sage <sage@redhat.com>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] Fixed a functions to rbd.c
Date: Sat, 26 Nov 2016 16:37:33 +0200 [thread overview]
Message-ID: <11594991480171053@web8g.yandex.ru> (raw)
In-Reply-To: <8504411480170970@web28m.yandex.ru>
Hello all,
I fixed to checkpatch.pl error and fixed two errors.
static char* obj_op_name(enum obj_operation_type op_type)
static bool single_major = false;
Signed-off-by: Ozgur Karatas <mueddib@goosey.org>
---
drivers/block/rbd.c
--- a/drivers/block/rbd.c
+++ b/drivers/block/rbd.c
@@ -2,7 +2,6 @@
/*
rbd.c -- Export ceph rados objects as a Linux block device
-
based on drivers/block/osdblk.c:
Copyright 2009 Red Hat, Inc.
@@ -24,7 +23,7 @@
For usage instructions, please refer to:
- Documentation/ABI/testing/sysfs-bus-rbd
+ Documentation/ABI/testing/sysfs-bus-rbd
*/
@@ -449,7 +448,7 @@ static struct workqueue_struct *rbd_wq;
* Default to false for now, as single-major requires >= 0.75 version of
* userspace rbd utility.
*/
-static bool single_major = false;
+static bool single_major;
module_param(single_major, bool, S_IRUGO);
MODULE_PARM_DESC(single_major, "Use a single major number for all rbd devices (default: false)");
@@ -866,7 +865,7 @@ static int parse_rbd_opts_token(char *c, void *private)
return 0;
}
-static char* obj_op_name(enum obj_operation_type op_type)
+static char *obj_op_name(enum obj_operation_type op_type)
{
switch (op_type) {
case OBJ_OP_READ:
@@ -5587,15 +5586,14 @@ static int rbd_dev_header_info(struct rbd_device *rbd_dev)
*/
static inline size_t next_token(const char **buf)
{
- /*
- * These are the characters that produce nonzero for
- * isspace() in the "C" and "POSIX" locales.
- */
- const char *spaces = " \f\n\r\t\v";
-
- *buf += strspn(*buf, spaces); /* Find start of token */
+/*
+ * These are the characters that produce nonzero for
+ * isspace() in the "C" and "POSIX" locales.
+*/
- return strcspn(*buf, spaces); /* Return token length */
+const char *spaces = " \f\n\r\t\v";
+*buf += strspn(*buf, spaces); /* Find start of token */
+return strcspn(*buf, spaces); /* Return token length */
parent reply other threads:[~2016-11-26 14:48 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <8504411480170970@web28m.yandex.ru>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11594991480171053@web8g.yandex.ru \
--to=mueddib@goosey.org \
--cc=idryomov@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sage@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®