From f2ae62fe336f5194c06c213a32bbce0c8bf1511d Mon Sep 17 00:00:00 2001 From: Lisa Nguyen Date: Tue, 21 May 2013 13:31:48 -0700 Subject: [PATCH] staging/speakup: Changed parameters in kstrtol() Changed parameters in the kstrtol() function inside main.c to resolve warnings re: mismatched data types used. Signed-off-by: Lisa Nguyen Reported-by: kbuild test robot Signed-off-by: Greg Kroah-Hartman --- drivers/staging/speakup/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/speakup/main.c b/drivers/staging/speakup/main.c index e91d2132a873..4769c895e01f 100644 --- a/drivers/staging/speakup/main.c +++ b/drivers/staging/speakup/main.c @@ -1892,7 +1892,7 @@ oops: spk_special_handler = NULL; return 1; } - go_pos = kstrtol(goto_buf, &cp, 10); + go_pos = kstrtol(goto_buf, 10, (long *)&cp); goto_pos = (u_long) go_pos; if (*cp == 'x') { if (*goto_buf < '0') -- 2.20.1