mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ameen Ali <ameenali023@gmail.com>
To: akpm@linux-foundation.org
Cc: linux-kernel@vger.kernel.org, Ameen Ali <ameenali023@gmail.com>,
	Ameen Ali <Ameenali023@gmail.com>
Subject: [PATCH 2/2] staging: replace simple_strtoul with kstroul
Date: Fri, 20 Feb 2015 00:13:57 +0200	[thread overview]
Message-ID: <1424384037-4081-1-git-send-email-ameenali023@gmail.com> (raw)

Replacing obsolete simple_stroul with kstroul

Signed-off-by: Ameen Ali <Ameenali023@gmail.com>
---
 kernel/printk/printk.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index c06df7d..058302c 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -518,7 +518,7 @@ struct devkmsg_user {
 static ssize_t devkmsg_write(struct kiocb *iocb, struct iov_iter *from)
 {
 	char *buf, *line;
-	int i;
+	unsigned long int i;
 	int level = default_message_loglevel;
 	int facility = 1;	/* LOG_USER */
 	size_t len = iocb->ki_nbytes;
@@ -549,7 +549,7 @@ static ssize_t devkmsg_write(struct kiocb *iocb, struct iov_iter *from)
 	if (line[0] == '<') {
 		char *endp = NULL;
 
-		i = simple_strtoul(line+1, &endp, 10);
+		i = kstrtoul(line+1,10, &endp);
 		if (endp && endp[0] == '>') {
 			level = i & 7;
 			if (i >> 3)
-- 
2.1.0


             reply	other threads:[~2015-02-19 22:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-19 22:13 Ameen Ali [this message]
2015-02-20 22:32 ` Andrew Morton

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=1424384037-4081-1-git-send-email-ameenali023@gmail.com \
    --to=ameenali023@gmail.com \
    --cc=akpm@linux-foundation.org \
    --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®