linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 11232/13260] drivers/platform/x86/thinkpad_acpi.c:9636:25: sparse: sparse: symbol 'dev_attr_charge_start_threshold' was not declared. Should it be
@ 2020-08-01  8:36 kernel test robot
  2020-08-01  8:36 ` [RFC PATCH linux-next] platform/x86: thinkpad_acpi: dev_attr_charge_start_threshold can be static kernel test robot
  0 siblings, 1 reply; 4+ messages in thread
From: kernel test robot @ 2020-08-01  8:36 UTC (permalink / raw)
  To: Thomas Weißschuh
  Cc: kbuild-all, Andy Shevchenko, Henrique de Moraes Holschuh,
	Darren Hart, ibm-acpi-devel, platform-driver-x86, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1275 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   01830e6c042e8eb6eb202e05d7df8057135b4c26
commit: e33929537b76486d2ed576a0d9ce3ebff51bf851 [11232/13260] platform/x86: thinkpad_acpi: use standard charge control attribute names
config: x86_64-randconfig-s021-20200801 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.2-115-g5fc204f2-dirty
        git checkout e33929537b76486d2ed576a0d9ce3ebff51bf851
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)

>> drivers/platform/x86/thinkpad_acpi.c:9636:25: sparse: sparse: symbol 'dev_attr_charge_start_threshold' was not declared. Should it be static?
>> drivers/platform/x86/thinkpad_acpi.c:9642:25: sparse: sparse: symbol 'dev_attr_charge_stop_threshold' was not declared. Should it be static?

Please review and possibly fold the followup patch.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 31488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [RFC PATCH linux-next] platform/x86: thinkpad_acpi: dev_attr_charge_start_threshold can be static
  2020-08-01  8:36 [linux-next:master 11232/13260] drivers/platform/x86/thinkpad_acpi.c:9636:25: sparse: sparse: symbol 'dev_attr_charge_start_threshold' was not declared. Should it be kernel test robot
@ 2020-08-01  8:36 ` kernel test robot
  2020-08-01 11:45   ` Andy Shevchenko
  0 siblings, 1 reply; 4+ messages in thread
From: kernel test robot @ 2020-08-01  8:36 UTC (permalink / raw)
  To: Thomas Weißschuh
  Cc: kbuild-all, Andy Shevchenko, Henrique de Moraes Holschuh,
	Darren Hart, ibm-acpi-devel, platform-driver-x86, linux-kernel


Fixes: e33929537b76 ("platform/x86: thinkpad_acpi: use standard charge control attribute names")
Signed-off-by: kernel test robot <lkp@intel.com>
---
 thinkpad_acpi.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index 9eda2f84a3cf98..4864a5c189d464 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
@@ -9633,13 +9633,13 @@ static ssize_t charge_control_end_threshold_store(struct device *dev,
 
 static DEVICE_ATTR_RW(charge_control_start_threshold);
 static DEVICE_ATTR_RW(charge_control_end_threshold);
-struct device_attribute dev_attr_charge_start_threshold = __ATTR(
+static struct device_attribute dev_attr_charge_start_threshold = __ATTR(
 	charge_start_threshold,
 	0644,
 	charge_control_start_threshold_show,
 	charge_control_start_threshold_store
 );
-struct device_attribute dev_attr_charge_stop_threshold = __ATTR(
+static struct device_attribute dev_attr_charge_stop_threshold = __ATTR(
 	charge_stop_threshold,
 	0644,
 	charge_control_end_threshold_show,

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [RFC PATCH linux-next] platform/x86: thinkpad_acpi: dev_attr_charge_start_threshold can be static
  2020-08-01  8:36 ` [RFC PATCH linux-next] platform/x86: thinkpad_acpi: dev_attr_charge_start_threshold can be static kernel test robot
@ 2020-08-01 11:45   ` Andy Shevchenko
  2020-08-03  0:23     ` [kbuild-all] " Rong Chen
  0 siblings, 1 reply; 4+ messages in thread
From: Andy Shevchenko @ 2020-08-01 11:45 UTC (permalink / raw)
  To: kernel test robot
  Cc: Thomas Weißschuh, kbuild-all, Andy Shevchenko,
	Henrique de Moraes Holschuh, Darren Hart, Thinkpad-acpi devel ML,
	Platform Driver, Linux Kernel Mailing List

On Sat, Aug 1, 2020 at 11:38 AM kernel test robot <lkp@intel.com> wrote:

Thanks and sorry folks, Hulk robot was faster, and TBH their patch
looks much better (proper commit message applied). Perhaps something
LKP should work on?

> Fixes: e33929537b76 ("platform/x86: thinkpad_acpi: use standard charge control attribute names")
> Signed-off-by: kernel test robot <lkp@intel.com>


-- 
With Best Regards,
Andy Shevchenko

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [kbuild-all] Re: [RFC PATCH linux-next] platform/x86: thinkpad_acpi: dev_attr_charge_start_threshold can be static
  2020-08-01 11:45   ` Andy Shevchenko
@ 2020-08-03  0:23     ` Rong Chen
  0 siblings, 0 replies; 4+ messages in thread
From: Rong Chen @ 2020-08-03  0:23 UTC (permalink / raw)
  To: Andy Shevchenko, kernel test robot
  Cc: Thomas Weißschuh, kbuild-all, Andy Shevchenko,
	Henrique de Moraes Holschuh, Darren Hart, Thinkpad-acpi devel ML,
	Platform Driver, Linux Kernel Mailing List



On 8/1/20 7:45 PM, Andy Shevchenko wrote:
> On Sat, Aug 1, 2020 at 11:38 AM kernel test robot <lkp@intel.com> wrote:
>
> Thanks and sorry folks, Hulk robot was faster, and TBH their patch
> looks much better (proper commit message applied). Perhaps something
> LKP should work on?

Hi Andy,

Thanks for the advice, we'll improve the commit message.

Best Regards,
Rong Chen

>
>> Fixes: e33929537b76 ("platform/x86: thinkpad_acpi: use standard charge control attribute names")
>> Signed-off-by: kernel test robot <lkp@intel.com>
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-08-03  0:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-01  8:36 [linux-next:master 11232/13260] drivers/platform/x86/thinkpad_acpi.c:9636:25: sparse: sparse: symbol 'dev_attr_charge_start_threshold' was not declared. Should it be kernel test robot
2020-08-01  8:36 ` [RFC PATCH linux-next] platform/x86: thinkpad_acpi: dev_attr_charge_start_threshold can be static kernel test robot
2020-08-01 11:45   ` Andy Shevchenko
2020-08-03  0:23     ` [kbuild-all] " Rong Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).