Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Krzysztof Kozlowski and committed by
Bjorn Andersson
2e14c17a 1e9e40fc

+1 -3
-1
drivers/soc/qcom/pdr_internal.h
··· 91 91 struct qmi_response_type_v01 rsp; 92 92 }; 93 93 94 - extern const struct qmi_elem_info servreg_location_entry_ei[]; 95 94 extern const struct qmi_elem_info servreg_get_domain_list_req_ei[]; 96 95 extern const struct qmi_elem_info servreg_get_domain_list_resp_ei[]; 97 96 extern const struct qmi_elem_info servreg_register_listener_req_ei[];
+1 -2
drivers/soc/qcom/qcom_pdr_msg.c
··· 8 8 9 9 #include "pdr_internal.h" 10 10 11 - const struct qmi_elem_info servreg_location_entry_ei[] = { 11 + static const struct qmi_elem_info servreg_location_entry_ei[] = { 12 12 { 13 13 .data_type = QMI_STRING, 14 14 .elem_len = SERVREG_NAME_LENGTH + 1, ··· 47 47 }, 48 48 {} 49 49 }; 50 - EXPORT_SYMBOL_GPL(servreg_location_entry_ei); 51 50 52 51 const struct qmi_elem_info servreg_get_domain_list_req_ei[] = { 53 52 {