From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE043C433FE for ; Mon, 8 Nov 2021 05:22:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C9D1460F9B for ; Mon, 8 Nov 2021 05:22:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236841AbhKHFYz (ORCPT ); Mon, 8 Nov 2021 00:24:55 -0500 Received: from mga11.intel.com ([192.55.52.93]:44601 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231444AbhKHFYy (ORCPT ); Mon, 8 Nov 2021 00:24:54 -0500 X-IronPort-AV: E=McAfee;i="6200,9189,10161"; a="229626050" X-IronPort-AV: E=Sophos;i="5.87,217,1631602800"; d="scan'208";a="229626050" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Nov 2021 21:22:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,217,1631602800"; d="scan'208";a="469480737" Received: from lkp-server02.sh.intel.com (HELO c20d8bc80006) ([10.239.97.151]) by orsmga002.jf.intel.com with ESMTP; 07 Nov 2021 21:22:07 -0800 Received: from kbuild by c20d8bc80006 with local (Exim 4.92) (envelope-from ) id 1mjx6d-000BZM-5d; Mon, 08 Nov 2021 05:22:07 +0000 Date: Mon, 8 Nov 2021 13:21:41 +0800 From: kernel test robot To: Thomas Marangoni , sre@kernel.org, wens@csie.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kbuild-all@lists.01.org, Thomas Marangoni Subject: [RFC PATCH] PM: axp20x_ocv_values_uV[] can be static Message-ID: <20211108052141.GA10523@9d7d69d1eba2> References: <20211025144455.16665-1-thomas.marangoni@mec.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211025144455.16665-1-thomas.marangoni@mec.at> X-Patchwork-Hint: ignore User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org drivers/power/supply/axp20x_battery.c:105:11: warning: symbol 'axp20x_ocv_values_uV' was not declared. Should it be static? drivers/power/supply/axp20x_battery.c:1004:1: warning: symbol 'dev_attr_voltage_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/axp20x_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 represents * the fixed values in uV */ -const int axp20x_ocv_values_uV[AXP20X_OCV_MAX + 1] = { +static const int axp20x_ocv_values_uV[AXP20X_OCV_MAX + 1] = { 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, From mboxrd@z Thu Jan 1 00:00:00 1970 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==--