Skip to content

Commit 92cffd4

Browse files
committed
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: David S. Miller <[email protected]>
2 parents 34fe5a1 + a21c1f0 commit 92cffd4

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

drivers/net/ipa/ipa_gsi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#include <linux/types.h>
88

9+
#include "ipa_gsi.h"
910
#include "gsi_trans.h"
1011
#include "ipa.h"
1112
#include "ipa_endpoint.h"

drivers/net/ipa/ipa_gsi.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88

99
#include <linux/types.h>
1010

11+
struct gsi;
1112
struct gsi_trans;
13+
struct ipa_gsi_endpoint_data;
1214

1315
/**
1416
* ipa_gsi_trans_complete() - GSI transaction completion callback

drivers/net/ipa/ipa_qmi_msg.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ struct qmi_elem_info ipa_driver_init_complete_rsp_ei[] = {
119119
sizeof_field(struct ipa_driver_init_complete_rsp,
120120
rsp),
121121
.tlv_type = 0x02,
122-
.elem_size = offsetof(struct ipa_driver_init_complete_rsp,
122+
.offset = offsetof(struct ipa_driver_init_complete_rsp,
123123
rsp),
124124
.ei_array = qmi_response_type_v01_ei,
125125
},
@@ -137,7 +137,7 @@ struct qmi_elem_info ipa_init_complete_ind_ei[] = {
137137
sizeof_field(struct ipa_init_complete_ind,
138138
status),
139139
.tlv_type = 0x02,
140-
.elem_size = offsetof(struct ipa_init_complete_ind,
140+
.offset = offsetof(struct ipa_init_complete_ind,
141141
status),
142142
.ei_array = qmi_response_type_v01_ei,
143143
},
@@ -218,7 +218,7 @@ struct qmi_elem_info ipa_init_modem_driver_req_ei[] = {
218218
sizeof_field(struct ipa_init_modem_driver_req,
219219
platform_type_valid),
220220
.tlv_type = 0x10,
221-
.elem_size = offsetof(struct ipa_init_modem_driver_req,
221+
.offset = offsetof(struct ipa_init_modem_driver_req,
222222
platform_type_valid),
223223
},
224224
{

0 commit comments

Comments
 (0)