OSDN Git Service

msm: ipa_v2: Use proper enum in wwan_add_ul_flt_rule_to_ipa
authorNathan Chancellor <natechancellor@gmail.com>
Wed, 24 Apr 2019 04:00:25 +0000 (21:00 -0700)
committerNathan Chancellor <natechancellor@gmail.com>
Fri, 27 Sep 2019 07:42:37 +0000 (00:42 -0700)
Clang warns:

../drivers/platform/msm/ipa/ipa_v2/rmnet_ipa.c:704:24: warning: implicit
conversion from enumeration type 'enum qmi_result_type_v01' to different
enumeration type 'enum ipa_qmi_result_type_v01' [-Wenum-conversion]
        req->install_status = QMI_RESULT_SUCCESS_V01;
                            ~ ^~~~~~~~~~~~~~~~~~~~~~
1 warning generated.

Use the proper enum type, which has the same value.

Fixes: 14bf6793b8e8 ("msm: ipa3: support IPA driver")
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
drivers/platform/msm/ipa/ipa_v2/rmnet_ipa.c

index 7518e43..6236c93 100644 (file)
@@ -701,7 +701,7 @@ static int wwan_add_ul_flt_rule_to_ipa(void)
        /* send ipa_fltr_installed_notif_req_msg_v01 to Q6*/
        req->source_pipe_index =
                ipa2_get_ep_mapping(IPA_CLIENT_APPS_LAN_WAN_PROD);
-       req->install_status = QMI_RESULT_SUCCESS_V01;
+       req->install_status = IPA_QMI_RESULT_SUCCESS_V01;
        req->filter_index_list_len = num_q6_rule;
        mutex_lock(&ipa_qmi_lock);
        for (i = 0; i < num_q6_rule; i++) {