[OPW,kernel,7/7] Staging: lustre: Replace obsolete simple_strtoul with kstrtoul
diff mbox

Message ID 3827e0c6e761cc0429c872d1fe803e3f88524efa.1382737168.git.rashika.kheria@gmail.com
State Superseded
Headers show

Commit Message

Rashika Oct. 25, 2013, 9:47 p.m. UTC
This patch fixes the following checkpatch.pl warning in lustre/ldlm/ldlm_resource.c-
WARNING: simple_strtoul is obsolete, use kstrtoul instead

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
---
 drivers/staging/lustre/lustre/ldlm/ldlm_resource.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Waskiewicz Jr, Peter P Oct. 25, 2013, 11:49 p.m. UTC | #1
On Sat, 2013-10-26 at 03:17 +0530, Rashika Kheria wrote:
> This patch fixes the following checkpatch.pl warning in lustre/ldlm/ldlm_resource.c-
> WARNING: simple_strtoul is obsolete, use kstrtoul instead

Reviewed-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>

> 
> Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
> ---
>  drivers/staging/lustre/lustre/ldlm/ldlm_resource.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_resource.c b/drivers/staging/lustre/lustre/ldlm/ldlm_resource.c
> index 8d3dd6d..f058f89 100644
> --- a/drivers/staging/lustre/lustre/ldlm/ldlm_resource.c
> +++ b/drivers/staging/lustre/lustre/ldlm/ldlm_resource.c
> @@ -228,7 +228,7 @@ static ssize_t lprocfs_lru_size_seq_write(struct file *file, const char *buffer,
>  		return count;
>  	}
>  
> -	tmp = simple_strtoul(dummy, &end, 0);
> +	tmp = kstrtoul(dummy, &end, 0);
>  	if (dummy == end) {
>  		CERROR("invalid value written\n");
>  		return -EINVAL;
> -- 
> 1.7.9.5
>

Patch
diff mbox

diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_resource.c b/drivers/staging/lustre/lustre/ldlm/ldlm_resource.c
index 8d3dd6d..f058f89 100644
--- a/drivers/staging/lustre/lustre/ldlm/ldlm_resource.c
+++ b/drivers/staging/lustre/lustre/ldlm/ldlm_resource.c
@@ -228,7 +228,7 @@  static ssize_t lprocfs_lru_size_seq_write(struct file *file, const char *buffer,
 		return count;
 	}
 
-	tmp = simple_strtoul(dummy, &end, 0);
+	tmp = kstrtoul(dummy, &end, 0);
 	if (dummy == end) {
 		CERROR("invalid value written\n");
 		return -EINVAL;