Commit 4195e31780a20e09c6e793c2d96390e05309e226
Committed by
David S. Miller
1 parent
ccb2963799
Exists in
master
and in
4 other branches
[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>
Showing 1 changed file with 4 additions and 4 deletions Side-by-side Diff
include/linux/can/bcm.h
... | ... | @@ -26,12 +26,12 @@ |
26 | 26 | * @frames: array of CAN frames. |
27 | 27 | */ |
28 | 28 | struct bcm_msg_head { |
29 | - int opcode; | |
30 | - int flags; | |
31 | - int count; | |
29 | + __u32 opcode; | |
30 | + __u32 flags; | |
31 | + __u32 count; | |
32 | 32 | struct timeval ival1, ival2; |
33 | 33 | canid_t can_id; |
34 | - int nframes; | |
34 | + __u32 nframes; | |
35 | 35 | struct can_frame frames[0]; |
36 | 36 | }; |
37 | 37 |