Skip to contentSkip to conversation

esd_usb2: endianess warning

DISCUSSION Marc Kleine-Budde 2 participants 2 messages Mar 14, 2015 – Mar 16, 2015 CAN network drivers

lore
Share & tools
lore

Marc Kleine-Budde

author maintainer
#0 lore raw

Hello,

when compiling with sparse (make C=2), the esd driver throws the following warning, can someone, preferred the driver author :), take care of fixing them?

Quoted 4 lines

drivers/net/can/usb/esd_usb2.c:369:53: warning: restricted __le32 degrades to integer drivers/net/can/usb/esd_usb2.c:791:25: warning: incorrect type in assignment (different base types)
drivers/net/can/usb/esd_usb2.c:791:25: expected restricted __le32 [usertype] hnd
drivers/net/can/usb/esd_usb2.c:791:25: got unsigned int

regards,
Marc

Signature · 4 lines
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |
#1 lore raw

Marc,

Thomas will care about maintainership of this driver from now on. He will post a patch soon.

Matthias

Quoted 14 lines · Marc Kleine-Budde

Hello,

when compiling with sparse (make C=2), the esd driver throws the following warning, can someone, preferred the driver author :), take care of fixing them?

Quoted 4 lines

drivers/net/can/usb/esd_usb2.c:369:53: warning: restricted __le32 degrades to integer drivers/net/can/usb/esd_usb2.c:791:25: warning: incorrect type in assignment (different base types)
drivers/net/can/usb/esd_usb2.c:791:25: expected restricted __le32 [usertype] hnd
drivers/net/can/usb/esd_usb2.c:791:25: got unsigned int

regards,
Marc