summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Hartkopp2007-12-28 01:50:06 +0100
committerDavid S. Miller2008-01-28 23:54:12 +0100
commit4195e31780a20e09c6e793c2d96390e05309e226 (patch)
treeeb76871e302e5e86125ea94bee4dcef73af469cf
parent[CAN]: Add virtual CAN netdevice driver (diff)
downloadkernel-qcow2-linux-4195e31780a20e09c6e793c2d96390e05309e226.tar.gz
kernel-qcow2-linux-4195e31780a20e09c6e793c2d96390e05309e226.tar.xz
kernel-qcow2-linux-4195e31780a20e09c6e793c2d96390e05309e226.zip
[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 <oliver@hartkopp.net> Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--include/linux/can/bcm.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/can/bcm.h b/include/linux/can/bcm.h
index 7ade33a0ff03..7f293273c444 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];
};