Skip to content

Commit 427613e

Browse files
Srinivas-Kandagatlaandersson
authored andcommitted
rpmsg: glink: correctly annotate intent members
As intent structure members are not correctly annotated, leading to below warnings qcom_glink_native.c:614:16: warning: incorrect type in assignment (different base types) qcom_glink_native.c:614:16: expected unsigned short [unsigned] [usertype] id qcom_glink_native.c:614:16: got restricted __le16 [usertype] <noident> qcom_glink_native.c:615:18: warning: incorrect type in assignment (different base types) qcom_glink_native.c:615:18: expected unsigned short [unsigned] [usertype] lcid qcom_glink_native.c:615:18: got restricted __le16 [usertype] <noident> qcom_glink_native.c:616:19: warning: incorrect type in assignment (different base types) qcom_glink_native.c:616:19: expected unsigned int [unsigned] [usertype] count qcom_glink_native.c:616:19: got restricted __le32 [usertype] <noident> qcom_glink_native.c:617:18: warning: incorrect type in assignment (different base types) qcom_glink_native.c:617:18: expected unsigned int [unsigned] [usertype] size qcom_glink_native.c:617:18: got restricted __le32 [usertype] <noident> qcom_glink_native.c:618:18: warning: incorrect type in assignment (different base types) qcom_glink_native.c:618:18: expected unsigned int [unsigned] [usertype] liid qcom_glink_native.c:618:18: got restricted __le32 [usertype] <noident> Fix this by correctly annotating them. Signed-off-by: Srinivas Kandagatla <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 67cd0ee commit 427613e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/rpmsg/qcom_glink_native.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -603,11 +603,11 @@ static int qcom_glink_advertise_intent(struct qcom_glink *glink,
603603
struct glink_core_rx_intent *intent)
604604
{
605605
struct command {
606-
u16 id;
607-
u16 lcid;
608-
u32 count;
609-
u32 size;
610-
u32 liid;
606+
__le16 id;
607+
__le16 lcid;
608+
__le32 count;
609+
__le32 size;
610+
__le32 liid;
611611
} __packed;
612612
struct command cmd;
613613

0 commit comments

Comments
 (0)