]> asedeno.scripts.mit.edu Git - linux.git/commit
rpmsg: glink: correctly annotate intent members
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 18 Jun 2018 12:33:37 +0000 (13:33 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 31 Jul 2018 06:21:36 +0000 (23:21 -0700)
commit427613ee193b72eb4b74412db07f43a7508b2bee
treeaa7ff2dee693e3eca69d2af0ceef29d6feaa7d7f
parent67cd0eec5b62e0c6715d4ff5d43a80fa8edeee6a
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 <srinivas.kandagatla@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/rpmsg/qcom_glink_native.c