From: Oliver Hartkopp Date: Fri, 28 Dec 2007 00:50:06 +0000 (-0800) Subject: [CAN]: Fix plain integer definitions in userspace header. X-Git-Tag: v2.6.25-rc1~1162^2~1410 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=4195e31780a20e09c6e793c2d96390e05309e226;p=~shefty%2Frdma-dev.git [CAN]: Fix plain integer definitions in userspace header. This patch fixes the use of plain integers instead of __u32 in a struct that is visible from kernel space and user space. Thanks to Sam Ravnborg for pointing out the wrong plain int usage. Signed-off-by: Oliver Hartkopp Acked-by: Sam Ravnborg Signed-off-by: David S. Miller --- diff --git a/include/linux/can/bcm.h b/include/linux/can/bcm.h index 7ade33a0ff0..7f293273c44 100644 --- a/include/linux/can/bcm.h +++ b/include/linux/can/bcm.h @@ -26,12 +26,12 @@ * @frames: array of CAN frames. */ struct bcm_msg_head { - int opcode; - int flags; - int count; + __u32 opcode; + __u32 flags; + __u32 count; struct timeval ival1, ival2; canid_t can_id; - int nframes; + __u32 nframes; struct can_frame frames[0]; };