From: Chase Southwood Date: Sat, 30 Aug 2014 01:40:55 +0000 (-0500) Subject: staging: comedi: usbduxsigma: fix sparse endianness warnings X-Git-Tag: v3.18-rc1~130^2~986 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b83d9fae0dd0557b75f22edf9da5c4bd7bcf73b2;p=karo-tx-linux.git 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 Reviewed-by: Ian Abbott Cc: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/usbduxsigma.c b/drivers/staging/comedi/drivers/usbduxsigma.c index fad099d5c58b..5dbab04d0ff9 100644 --- a/drivers/staging/comedi/drivers/usbduxsigma.c +++ b/drivers/staging/comedi/drivers/usbduxsigma.c @@ -155,7 +155,7 @@ struct usbduxsigma_private { /* size of the PWM buffer which holds the bit pattern */ int pwm_buf_sz; /* input buffer for the ISO-transfer */ - uint32_t *in_buf; + __be32 *in_buf; /* input buffer for single insn */ uint8_t *insn_buf;