From: H Hartley Sweeten Date: Tue, 14 Aug 2012 20:45:53 +0000 (-0700) Subject: staging: comedi: adl_pci7x3x: fix pointer-to-int-cast warning X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~75^2~935 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69af59970bec925d182ca5ebd80e643fdd90b1cc;p=pandora-kernel.git staging: comedi: adl_pci7x3x: fix pointer-to-int-cast warning This driver uses the void *private variable in the comedi_subdevice to pass the offset needed to read/write the appropriate register to get/set the channels for the subdevice. The adl_pci7x3x_do_insn_bits() and adl_pci7x3x_di_insn_bits() functions were retrieving this offset by casting the s->private value as an unsigned int. On 64-bit builds this results in a warning: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] Fix these warnings by casting the void * to an unsigned long. Signed-off-by: H Hartley Sweeten Reported-by: Greg Kroah-Hartman Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed