Skip to content

Commit 2e14c17

Browse files
krzkandersson
authored andcommitted
soc: qcom: Do not expose internal servreg_location_entry_ei array
'struct qmi_elem_info servreg_location_entry_ei' is used only internally in qcom_pdr_msg.c, so drop the extern declaration to make headers smaller and code more obvious about intention. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Link: https://lore.kernel.org/r/20250121102817.68577-1-krzysztof.kozlowski@linaro.org Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent 1e9e40f commit 2e14c17

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/soc/qcom/pdr_internal.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ struct servreg_loc_pfr_resp {
9191
struct qmi_response_type_v01 rsp;
9292
};
9393

94-
extern const struct qmi_elem_info servreg_location_entry_ei[];
9594
extern const struct qmi_elem_info servreg_get_domain_list_req_ei[];
9695
extern const struct qmi_elem_info servreg_get_domain_list_resp_ei[];
9796
extern const struct qmi_elem_info servreg_register_listener_req_ei[];

drivers/soc/qcom/qcom_pdr_msg.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#include "pdr_internal.h"
1010

11-
const struct qmi_elem_info servreg_location_entry_ei[] = {
11+
static const struct qmi_elem_info servreg_location_entry_ei[] = {
1212
{
1313
.data_type = QMI_STRING,
1414
.elem_len = SERVREG_NAME_LENGTH + 1,
@@ -47,7 +47,6 @@ const struct qmi_elem_info servreg_location_entry_ei[] = {
4747
},
4848
{}
4949
};
50-
EXPORT_SYMBOL_GPL(servreg_location_entry_ei);
5150

5251
const struct qmi_elem_info servreg_get_domain_list_req_ei[] = {
5352
{

0 commit comments

Comments
 (0)