]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: usbduxsigma: fix sparse endianness warnings
authorChase Southwood <chase.southwood@gmail.com>
Sat, 30 Aug 2014 01:40:55 +0000 (20:40 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Aug 2014 20:29:20 +0000 (13:29 -0700)
commit077dfa8d8beef0a9df1d27dd64e7e0724935dd14
tree130ce62d2f9d47629900da549eab5c227b4fbbae
parent3dce176bec6a5d1fa631bb90bac9ea841e6a037c
staging: comedi: usbduxsigma: fix sparse endianness warnings

Sparse has many warnings like:

drivers/staging/comedi/drivers/usbduxsigma.c:293:21: warning: cast to
restricted __be32

on lines on which devpriv->in_buf is passed to be32_to_cpu().  This
suggests that this variable should actually be of type __be32.

Signed-off-by: Chase Southwood <chase.southwood@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Cc: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/usbduxsigma.c