Commit 92cffd48 authored by David S. Miller's avatar David S. Miller

Merge branch 'net-ipa-fix-warning-reported-errors'

Alex Elder says:

====================
net: ipa: fix warning-reported errors

Building the kernel with W=1 produces numerous warnings for the IPA
code.  Some of those warnings turn out to flag real problems, and
this series fixes them.  The first patch fixes the most important
ones, but the second and third are problems I think are worth
treating as bugs as well.

Note:  I'll happily combine any of these if someone prefers that.
====================
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parents 34fe5a1c a21c1f02
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include <linux/types.h> #include <linux/types.h>
#include "ipa_gsi.h"
#include "gsi_trans.h" #include "gsi_trans.h"
#include "ipa.h" #include "ipa.h"
#include "ipa_endpoint.h" #include "ipa_endpoint.h"
......
...@@ -8,7 +8,9 @@ ...@@ -8,7 +8,9 @@
#include <linux/types.h> #include <linux/types.h>
struct gsi;
struct gsi_trans; struct gsi_trans;
struct ipa_gsi_endpoint_data;
/** /**
* ipa_gsi_trans_complete() - GSI transaction completion callback * ipa_gsi_trans_complete() - GSI transaction completion callback
......
...@@ -119,7 +119,7 @@ struct qmi_elem_info ipa_driver_init_complete_rsp_ei[] = { ...@@ -119,7 +119,7 @@ struct qmi_elem_info ipa_driver_init_complete_rsp_ei[] = {
sizeof_field(struct ipa_driver_init_complete_rsp, sizeof_field(struct ipa_driver_init_complete_rsp,
rsp), rsp),
.tlv_type = 0x02, .tlv_type = 0x02,
.elem_size = offsetof(struct ipa_driver_init_complete_rsp, .offset = offsetof(struct ipa_driver_init_complete_rsp,
rsp), rsp),
.ei_array = qmi_response_type_v01_ei, .ei_array = qmi_response_type_v01_ei,
}, },
...@@ -137,7 +137,7 @@ struct qmi_elem_info ipa_init_complete_ind_ei[] = { ...@@ -137,7 +137,7 @@ struct qmi_elem_info ipa_init_complete_ind_ei[] = {
sizeof_field(struct ipa_init_complete_ind, sizeof_field(struct ipa_init_complete_ind,
status), status),
.tlv_type = 0x02, .tlv_type = 0x02,
.elem_size = offsetof(struct ipa_init_complete_ind, .offset = offsetof(struct ipa_init_complete_ind,
status), status),
.ei_array = qmi_response_type_v01_ei, .ei_array = qmi_response_type_v01_ei,
}, },
...@@ -218,7 +218,7 @@ struct qmi_elem_info ipa_init_modem_driver_req_ei[] = { ...@@ -218,7 +218,7 @@ struct qmi_elem_info ipa_init_modem_driver_req_ei[] = {
sizeof_field(struct ipa_init_modem_driver_req, sizeof_field(struct ipa_init_modem_driver_req,
platform_type_valid), platform_type_valid),
.tlv_type = 0x10, .tlv_type = 0x10,
.elem_size = offsetof(struct ipa_init_modem_driver_req, .offset = offsetof(struct ipa_init_modem_driver_req,
platform_type_valid), platform_type_valid),
}, },
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment