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

Configure Feed

Select the types of activity you want to include in your feed.

regulator: qcom-smd: make smd_vreg_rpm static

Since smd_vreg_rpm is used only in
drivers/regulator/qcom_smd-regulator.c, make it static and fix the
following sparse warning:

drivers/regulator/qcom_smd-regulator.c:14:21: sparse: warning:
symbol 'smd_vreg_rpm' was not declared. Should it be static?

No functional changes intended.

Fixes: 5df3b41bd6b5 ("regulator: qcom_smd: Keep one rpm handle for all vregs")
Signed-off-by: Min-Hua Chen <minhuadotchen@gmail.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://patch.msgid.link/20240926231038.31916-1-minhuadotchen@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Min-Hua Chen and committed by
Mark Brown
18be43ac 7368e9f4

+1 -1
+1 -1
drivers/regulator/qcom_smd-regulator.c
··· 11 11 #include <linux/regulator/of_regulator.h> 12 12 #include <linux/soc/qcom/smd-rpm.h> 13 13 14 - struct qcom_smd_rpm *smd_vreg_rpm; 14 + static struct qcom_smd_rpm *smd_vreg_rpm; 15 15 16 16 struct qcom_rpm_reg { 17 17 struct device *dev;