projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb62a3f
)
staging/speakup: Changed parameters in kstrtol()
author
Lisa Nguyen
<lisa@xenapiadmin.com>
Tue, 21 May 2013 20:31:48 +0000
(13:31 -0700)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 21 May 2013 20:53:42 +0000
(13:53 -0700)
Changed parameters in the kstrtol() function inside main.c to resolve
warnings re: mismatched data types used.
Signed-off-by: Lisa Nguyen <lisa@xenapiadmin.com>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/main.c
patch
|
blob
|
history
diff --git
a/drivers/staging/speakup/main.c
b/drivers/staging/speakup/main.c
index e91d2132a873c71570e06a5872278c3948956b52..4769c895e01f01bc8b709bd6b42ad9fa7aecc0bb 100644
(file)
--- 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')