mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: kbuild-all@lists.01.org, rui.zhang@intel.com,
	edubezval@gmail.com, daniel.lezcano@linaro.org,
	linux-kernel@vger.kernel.org, amit.kucheria@linaro.org
Subject: Re: [PATCH 11/11] thermal: Move thermal governor structure to internal header
Date: Mon, 14 Oct 2019 17:54:02 +0800	[thread overview]
Message-ID: <201910141700.mlqdHGLh%lkp@intel.com> (raw)
In-Reply-To: <20191012065255.23249-11-daniel.lezcano@linaro.org>

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

Hi Daniel,

I love your patch! Perhaps something to improve:

[auto build test WARNING on soc-thermal/next]
[cannot apply to v5.4-rc3 next-20191011]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    https://github.com/0day-ci/linux/commits/Daniel-Lezcano/thermal-Move-default-governor-config-option-to-the-internal-header/20191014-103735
base:   https://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal.git next
config: i386-randconfig-g003-201941 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-13) 7.4.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

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

All warnings (new ones prefixed by >>):

   In file included from include/linux/export.h:45:0,
                    from include/linux/linkage.h:7,
                    from include/linux/kernel.h:8,
                    from drivers/platform/x86/acerhdf.c:23:
   drivers/platform/x86/acerhdf.c: In function 'acerhdf_register_thermal':
   drivers/platform/x86/acerhdf.c:747:30: error: dereferencing pointer to incomplete type 'struct thermal_governor'
     if (strcmp(thz_dev->governor->name,
                                 ^
   include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
    #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                       ^~~~
>> drivers/platform/x86/acerhdf.c:747:2: note: in expansion of macro 'if'
     if (strcmp(thz_dev->governor->name,
     ^~

vim +/if +747 drivers/platform/x86/acerhdf.c

e86435eb91b2bf Peter Feuerer  2009-06-21  731  
1d0c3fd01afbd5 Paul Gortmaker 2018-09-20  732  static int __init acerhdf_register_thermal(void)
e86435eb91b2bf Peter Feuerer  2009-06-21  733  {
e86435eb91b2bf Peter Feuerer  2009-06-21  734  	cl_dev = thermal_cooling_device_register("acerhdf-fan", NULL,
e86435eb91b2bf Peter Feuerer  2009-06-21  735  						 &acerhdf_cooling_ops);
e86435eb91b2bf Peter Feuerer  2009-06-21  736  
e86435eb91b2bf Peter Feuerer  2009-06-21  737  	if (IS_ERR(cl_dev))
e86435eb91b2bf Peter Feuerer  2009-06-21  738  		return -EINVAL;
e86435eb91b2bf Peter Feuerer  2009-06-21  739  
7e8b6d737da9c6 Peter Feuerer  2014-11-28  740  	thz_dev = thermal_zone_device_register("acerhdf", 2, 0, NULL,
48c8dd64345ba2 Peter Feuerer  2014-11-28  741  					      &acerhdf_dev_ops,
48c8dd64345ba2 Peter Feuerer  2014-11-28  742  					      &acerhdf_zone_params, 0,
e86435eb91b2bf Peter Feuerer  2009-06-21  743  					      (kernelmode) ? interval*1000 : 0);
e86435eb91b2bf Peter Feuerer  2009-06-21  744  	if (IS_ERR(thz_dev))
e86435eb91b2bf Peter Feuerer  2009-06-21  745  		return -EINVAL;
e86435eb91b2bf Peter Feuerer  2009-06-21  746  
48c8dd64345ba2 Peter Feuerer  2014-11-28 @747  	if (strcmp(thz_dev->governor->name,
48c8dd64345ba2 Peter Feuerer  2014-11-28  748  				acerhdf_zone_params.governor_name)) {
48c8dd64345ba2 Peter Feuerer  2014-11-28  749  		pr_err("Didn't get thermal governor %s, perhaps not compiled into thermal subsystem.\n",
48c8dd64345ba2 Peter Feuerer  2014-11-28  750  				acerhdf_zone_params.governor_name);
48c8dd64345ba2 Peter Feuerer  2014-11-28  751  		return -EINVAL;
48c8dd64345ba2 Peter Feuerer  2014-11-28  752  	}
48c8dd64345ba2 Peter Feuerer  2014-11-28  753  
e86435eb91b2bf Peter Feuerer  2009-06-21  754  	return 0;
e86435eb91b2bf Peter Feuerer  2009-06-21  755  }
e86435eb91b2bf Peter Feuerer  2009-06-21  756  

:::::: The code at line 747 was first introduced by commit
:::::: 48c8dd64345ba2a8c41556095c7adacb1c8af7c1 acerhdf: Use bang-bang thermal governor

:::::: TO: Peter Feuerer <peter@piie.net>
:::::: CC: Darren Hart <dvhart@linux.intel.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

  parent reply	other threads:[~2019-10-14  9:54 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-12  6:52 [PATCH 01/11] thermal: Move default governor config option to the " Daniel Lezcano
2019-10-12  6:52 ` [PATCH 02/11] thermal: Move struct thermal_attr to the private header Daniel Lezcano
2019-10-12  6:52 ` [PATCH 03/11] thermal: Move internal IPA functions Daniel Lezcano
2019-10-12  6:52 ` [PATCH 04/11] thermal: Move trip point structure definition to private header Daniel Lezcano
2019-10-12  6:52 ` [PATCH 05/11] thermal: Move set_trips function to the internal header Daniel Lezcano
2019-10-14 14:32   ` Amit Kucheria
2019-10-12  6:52 ` [PATCH 06/11] thermal: Move get_tz_trend " Daniel Lezcano
2019-10-12  6:52 ` [PATCH 07/11] thermal: Move get_thermal_instance " Daniel Lezcano
2019-10-12  6:52 ` [PATCH 08/11] thermal: Change IS_ENABLED to IFDEF in the header file Daniel Lezcano
2019-10-12  6:52 ` [PATCH 09/11] thermal: Remove stubs for thermal_zone_[un]bind_cooling_device Daniel Lezcano
2019-10-12  6:52 ` [PATCH 10/11] thermal: Remove thermal_zone_device_update() stub Daniel Lezcano
2019-10-12  6:52 ` [PATCH 11/11] thermal: Move thermal governor structure to internal header Daniel Lezcano
2019-10-14  7:48   ` kbuild test robot
2019-10-14  9:54   ` kbuild test robot [this message]
2019-10-14 14:32   ` Amit Kucheria

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201910141700.mlqdHGLh%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=amit.kucheria@linaro.org \
    --cc=daniel.lezcano@linaro.org \
    --cc=edubezval@gmail.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rui.zhang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome