From: crquan@gmail.com
To: Jens Axboe <jens.axboe@oracle.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>, linux-kernel@vger.kernel.org
Subject: [PATCH] kobject_add: use constant strings directly as fmt strings
Date: Wed, 19 Nov 2008 23:54:19 +0800 [thread overview]
Message-ID: <1227110059-12529-1-git-send-email-crquan@gmail.com> (raw)
From: Cheng Renquan <crquan@gmail.com>
Signed-off-by: Cheng Renquan <crquan@gmail.com>
---
block/blk-sysfs.c | 2 +-
block/elevator.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c
index 21e275d..0b189e9 100644
--- a/block/blk-sysfs.c
+++ b/block/blk-sysfs.c
@@ -342,7 +342,7 @@ int blk_register_queue(struct gendisk *disk)
return 0;
ret = kobject_add(&q->kobj, kobject_get(&disk_to_dev(disk)->kobj),
- "%s", "queue");
+ "queue");
if (ret < 0)
return ret;
diff --git a/block/elevator.c b/block/elevator.c
index 9ac82dd..9a39f27 100644
--- a/block/elevator.c
+++ b/block/elevator.c
@@ -1005,7 +1005,7 @@ int elv_register_queue(struct request_queue *q)
elevator_t *e = q->elevator;
int error;
- error = kobject_add(&e->kobj, &q->kobj, "%s", "iosched");
+ error = kobject_add(&e->kobj, &q->kobj, "iosched");
if (!error) {
struct elv_fs_entry *attr = e->elevator_type->elevator_attrs;
if (attr) {
--
1.6.0.4.758.g36c05
next reply other threads:[~2008-11-19 15:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-19 15:54 crquan [this message]
2008-11-19 15:57 ` Greg KH
2008-11-19 16:17 ` rae l
2008-11-19 17:00 ` Kay Sievers
2008-11-19 17:37 ` rae l
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=1227110059-12529-1-git-send-email-crquan@gmail.com \
--to=crquan@gmail.com \
--cc=gregkh@suse.de \
--cc=jens.axboe@oracle.com \
--cc=linux-kernel@vger.kernel.org \
/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®