projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a367df
)
V4L/DVB (8249): Fix pointer cast warnings in the ivtv framebuffer driver
author
David Howells
<
[email protected]
>
Tue, 8 Jul 2008 19:04:38 +0000
(16:04 -0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Sun, 20 Jul 2008 10:18:58 +0000
(07:18 -0300)
Fix casts of pointers to integers of different sizes in the ivtv framebuffer
driver.
These were introduced in patch
38eb6ba5b8487d15b020fe391d324edd2b659b03
.
Signed-off-by: David Howells <
[email protected]
>
Signed-off-by: Hans Verkuil <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/video/ivtv/ivtvfb.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/ivtv/ivtvfb.c
b/drivers/media/video/ivtv/ivtvfb.c
index 14f93341f061ee0bb446ee502d6ec247bb8a6ff8..bdfda48e56bf55e0b5ea3af83404348053fd26b8 100644
(file)
--- a/
drivers/media/video/ivtv/ivtvfb.c
+++ b/
drivers/media/video/ivtv/ivtvfb.c
@@
-417,10
+417,11
@@
static ssize_t ivtvfb_write(struct fb_info *info, const char __user *buf,
if (!err) {
/* If transfer size > threshold and both src/dst
addresses are aligned, use DMA */
- if (count >= 4096 && ((u32)buf & 3) == ((u32)dst & 3)) {
+ if (count >= 4096 &&
+ ((unsigned long)buf & 3) == ((unsigned long)dst & 3)) {
/* Odd address = can't DMA. Align */
- if ((u
32
)dst & 3) {
- lead = 4 - ((u
32
)dst & 3);
+ if ((u
nsigned long
)dst & 3) {
+ lead = 4 - ((u
nsigned long
)dst & 3);
memcpy(dst, buf, lead);
buf += lead;
dst += lead;