saa716x compile warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,


I noticed in a forum post that the saa716x driver spews warnings on 
x86_64:

	http://www.linux-club.de/viewtopic.php?f=41&t=100240

/home/johnny/Documents/saa716x-e9cc5826649c/v4l/saa716x_dma.c:129: 
warning: cast from pointer to integer of different size

as I look into the code (tip just moments ago), that seems to be largely 
true:

	/* align memory to page */ 
	dmabuf->mem_virt = (void *) PAGE_ALIGN (((u32) dmabuf->mem_virt_noalign));

I always recommend building it not only on x86 to catch such errors.
Truncating to (u32) is likely to be wrong for 64-bit systems!
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux