From: H Hartley Sweeten Date: Tue, 8 May 2012 23:19:34 +0000 (-0700) Subject: staging: comedi: mite: mite_io_addr and daq_io_addr are void __iomem * X-Git-Tag: v3.5-rc1~145^2~177 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b7a521b121ebc16b9137f07ded7874105c9486a;p=pandora-kernel.git staging: comedi: mite: mite_io_addr and daq_io_addr are void __iomem * The mite_io_addr and daq_io_addr variables in struct mite_struct are both ioremap'ed pci resources and should be void __iomem * not void *. This quiets a lot of sparse warings for the write[lwb],read[lwb] calls in the comedi mite drives like: warning: incorrect type in argument 1 (different address spaces) expected void const volatile [noderef] *addr got void * warning: incorrect type in argument 2 (different address spaces) expected void volatile [noderef] *addr got void * It also exposed some warnings in the mite ni_660x driver where the daq_io_address was getting cast as a void *const. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Mori Hess Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed