net: ipa: Drop unused qmi_elem_info arrays
Subsystems (3)
PATCH v2 1/1 net: ipa: Drop unused qmi_elem_info arrays
'ipa_mem_array_ei' is not used anywhere, so can be dropped completely. 'ipa_mem_bounds_ei' and 'ipa_mem_range_ei' are not used outside of their units, so they can be narrowed to file-scope.
Reviewed-by Alex Elder <[email protected]>
Signed-off-by Krzysztof Kozlowski <[email protected]>
---
Changes in v2:
1. Fix commit author.
2. Rb rag
--- drivers/net/ipa/ipa_qmi_msg.c | 25 ++----------------------- drivers/net/ipa/ipa_qmi_msg.h | 3 --- 2 files changed, 2 insertions(+), 26 deletions(-)
drivers/net/ipa/ipa_qmi_msg.c +2 -23
@@ -188,7 +188,7 @@ const struct qmi_elem_info ipa_init_complete_ind_ei[] = { };/* QMI message structure definition for struct ipa_mem_bounds */ -const struct qmi_elem_info ipa_mem_bounds_ei[] = { +static const struct qmi_elem_info ipa_mem_bounds_ei[] = { { .data_type =QMI_UNSIGNED_4_BYTE , .elem_len =1 ,
@@ -208,29 +208,8 @@ const struct qmi_elem_info ipa_mem_bounds_ei[] = { }, }; -/* QMI message structure definition for struct ipa_mem_array */ -const struct qmi_elem_info ipa_mem_array_ei[] = { - { - .data_type =QMI_UNSIGNED_4_BYTE , - .elem_len =1 , - .elem_size = - sizeof_field(struct ipa_mem_array, start), - .offset = offsetof(struct ipa_mem_array , start), - }, - { - .data_type =QMI_UNSIGNED_4_BYTE , - .elem_len =1 , - .elem_size = - sizeof_field(struct ipa_mem_array, count), - .offset = offsetof(struct ipa_mem_array , count), - }, - { - .data_type =QMI_EOTI , - }, -}; -/* QMI message structure definition for struct ipa_mem_range */ -const struct qmi_elem_info ipa_mem_range_ei[] = { +static const struct qmi_elem_info ipa_mem_range_ei[] = { { .data_type =QMI_UNSIGNED_4_BYTE , .elem_len =1 ,
drivers/net/ipa/ipa_qmi_msg.h +0 -3
@@ -253,9 +253,6 @@ extern const struct qmi_elem_info ipa_indication_register_rsp_ei[];extern const struct qmi_elem_info ipa_driver_init_complete_req_ei[];extern const struct qmi_elem_info ipa_driver_init_complete_rsp_ei[];extern const struct qmi_elem_info ipa_init_complete_ind_ei[]; -extern const struct qmi_elem_info ipa_mem_bounds_ei[]; -extern const struct qmi_elem_info ipa_mem_array_ei[]; -extern const struct qmi_elem_info ipa_mem_range_ei[];extern const struct qmi_elem_info ipa_init_modem_driver_req_ei[];extern const struct qmi_elem_info ipa_init_modem_driver_rsp_ei[];
Signature · 1 line
2.53.0
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Mon, 2 Nov 2026 13:36:54 +0100 you wrote:
'
ipa_mem_array_ei' is not used anywhere, so can be dropped completely. 'ipa_mem_bounds_ei' and 'ipa_mem_range_ei' are not used outside of their units, so they can be narrowed to file-scope.Reviewed-by Alex Elder <[email protected]>Signed-off-by Krzysztof Kozlowski <[email protected]>[...]
Here is the summary with links:
- [v2] net: ipa: Drop unused qmi_elem_info arrays
https://git.kernel.org/netdev/net-next/c/303d91a15925
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html