[PATCH net-next 0/2] net: Constify static qmi structs

2020-11-22 Thread Rikard Falkeborn
Constify a couple of static qmi_ops and qmi_msg_handler structs that are never modified. Rikard Falkeborn (2): soc: qcom: ipa: Constify static qmi structs ath10k: Constify static qmi structs drivers/net/ipa/ipa_qmi.c | 8 drivers/net/wireless/ath/ath10k/qmi.c | 4

[PATCH net-next 1/2] soc: qcom: ipa: Constify static qmi structs

2020-11-22 Thread Rikard Falkeborn
These are only used as input arguments to qmi_handle_init() which accepts const pointers to both qmi_ops and qmi_msg_handler. Make them const to allow the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/net/ipa/ipa_qmi.c | 8 1 file changed, 4

[PATCH net-next 2/2] ath10k: Constify static qmi structs

2020-11-22 Thread Rikard Falkeborn
qmi_msg_handler[] and ath10k_qmi_ops are only used as input arguments to qmi_handle_init() which accepts const pointers to both qmi_ops and qmi_msg_handler. Make them const to allow the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/net/wireless/ath/ath10k