From 715efdf30e545548601aa2801924f7e44e373fb8 Mon Sep 17 00:00:00 2001 From: Subash Abhinov Kasiviswanathan Date: Wed, 21 May 2014 13:06:10 -0600 Subject: [PATCH] net: msm_rmnet.h: Fix data type of flow_id in QoS header Fix an issue where the flow_id was appearing to be 8 bytes in 64 bit platforms. This is because the flow_id is declared as unsigned long which is 8 bytes in 64 bit and 4 bytes in 32 bit platforms. Change the flow_id to uint32_t to make it 4 bytes on all platforms. CRs-fixed: 663814 Change-Id: I2472fb99750d1818ecfae03b5bcd860f19ac51a7 Signed-off-by: Subash Abhinov Kasiviswanathan --- include/uapi/linux/msm_rmnet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/msm_rmnet.h b/include/uapi/linux/msm_rmnet.h index b03f3285cd7d..4854eb94e578 100644 --- a/include/uapi/linux/msm_rmnet.h +++ b/include/uapi/linux/msm_rmnet.h @@ -133,7 +133,7 @@ struct rmnet_ioctl_data_s { struct QMI_QOS_HDR_S { unsigned char version; unsigned char flags; - unsigned long flow_id; + uint32_t flow_id; }; /* QMI QoS 8-byte header. */