Content-Type: multipart/mixed; boundary="===============2306442971047691008==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [RFC PATCH] PM: axp20x_ocv_values_uV[] can be static Date: Mon, 08 Nov 2021 13:21:41 +0800 Message-ID: <20211108052141.GA10523@9d7d69d1eba2> In-Reply-To: <20211025144455.16665-1-thomas.marangoni@mec.at> List-Id: --===============2306442971047691008== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable drivers/power/supply/axp20x_battery.c:105:11: warning: symbol 'axp20x_ocv_v= alues_uV' was not declared. Should it be static? drivers/power/supply/axp20x_battery.c:1004:1: warning: symbol 'dev_attr_vol= tage_low_alert_level1' was not declared. Should it be static? Reported-by: kernel test robot Signed-off-by: kernel test robot --- axp20x_battery.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/power/supply/axp20x_battery.c b/drivers/power/supply/a= xp20x_battery.c index 5997c8192c73e..ec17841d51733 100644 --- a/drivers/power/supply/axp20x_battery.c +++ b/drivers/power/supply/axp20x_battery.c @@ -102,7 +102,7 @@ struct axp20x_batt_ps { * OCV curve has fixed values and percentage can be adjusted, this array r= epresents * the fixed values in uV */ -const int axp20x_ocv_values_uV[AXP20X_OCV_MAX + 1] =3D { +static const int axp20x_ocv_values_uV[AXP20X_OCV_MAX + 1] =3D { 3132800, 3273600, 3414400, @@ -1001,7 +1001,7 @@ static ssize_t voltage_low_alert_level1_store(struct = device *dev, return count; } = -DEVICE_ATTR_RW(voltage_low_alert_level1); +static DEVICE_ATTR_RW(voltage_low_alert_level1); = static ssize_t voltage_low_alert_level2_show(struct device *dev, struct device_attribute *attr, --===============2306442971047691008==--