public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Alexandre Bailon <abailon@baylibre.com>,
	rafael@kernel.org, rui.zhang@intel.com,
	daniel.lezcano@linaro.org, amitk@kernel.org
Cc: kbuild-all@lists.01.org, linux-pm@vger.kernel.org,
	linux-kernel@vger.kernel.org, ben.tseng@mediatek.com,
	khilman@baylibre.com, mka@chromium.org,
	Alexandre Bailon <abailon@baylibre.com>
Subject: Re: [PATCH v3 2/2] thermal: add a virtual sensor to aggregate temperatures
Date: Tue, 9 Nov 2021 10:32:34 +0800	[thread overview]
Message-ID: <202111091004.cl9rGh4a-lkp@intel.com> (raw)
In-Reply-To: <20211029150857.504891-3-abailon@baylibre.com>

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

Hi Alexandre,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on rafael-pm/thermal]
[also build test WARNING on v5.15 next-20211108]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Alexandre-Bailon/Add-a-generic-virtual-thermal-sensor/20211029-231137
base:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git thermal
config: i386-allmodconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/0day-ci/linux/commit/be0e058f9a82f32140e4e96cf67a3e0842da9f70
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Alexandre-Bailon/Add-a-generic-virtual-thermal-sensor/20211029-231137
        git checkout be0e058f9a82f32140e4e96cf67a3e0842da9f70
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

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

All warnings (new ones prefixed by >>):

>> drivers/thermal/virtual_thermal_sensor.c:73:5: warning: no previous prototype for 'virtual_thermal_sensor_get_module' [-Wmissing-prototypes]
      73 | int virtual_thermal_sensor_get_module(struct virtual_thermal_zone_device *zone,
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/thermal/virtual_thermal_sensor.c:102:6: warning: no previous prototype for 'virtual_thermal_sensor_put_modules' [-Wmissing-prototypes]
     102 | void virtual_thermal_sensor_put_modules(struct virtual_thermal_sensor *sensor)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/virtual_thermal_sensor_get_module +73 drivers/thermal/virtual_thermal_sensor.c

    72	
  > 73	int virtual_thermal_sensor_get_module(struct virtual_thermal_zone_device *zone,
    74					      const char *name)
    75	{
    76			struct platform_device *sensor_pdev;
    77			struct device_node *node;
    78	
    79			node = of_find_node_by_name(NULL, name);
    80			if (!node)
    81				return -ENODEV;
    82	
    83			node = of_parse_phandle(node, "thermal-sensors", 0);
    84			if (!node)
    85				return -ENODEV;
    86	
    87			sensor_pdev = of_find_device_by_node(node);
    88			if (!sensor_pdev)
    89				return -ENODEV;
    90	
    91			if (!sensor_pdev->dev.driver)
    92				return -EPROBE_DEFER;
    93	
    94			if (!try_module_get(sensor_pdev->dev.driver->owner))
    95				return -ENODEV;
    96	
    97			zone->owner = sensor_pdev->dev.driver->owner;
    98	
    99			return 0;
   100	}
   101	
 > 102	void virtual_thermal_sensor_put_modules(struct virtual_thermal_sensor *sensor)
   103	{
   104		int i;
   105	
   106		for (i = 0; i < sensor->count; i++) {
   107			if (sensor->zones[i].zone)
   108				module_put(sensor->zones[i].owner);
   109		}
   110	}
   111	

---
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: 65394 bytes --]

      parent reply	other threads:[~2021-11-09  2:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-29 15:08 [PATCH v3 0/2] Add a generic virtual thermal sensor Alexandre Bailon
2021-10-29 15:08 ` [PATCH v3 1/2] dt-bindings: Add DT bindings for the DT-based virtual sensor driver Alexandre Bailon
2021-10-29 15:08 ` [PATCH v3 2/2] thermal: add a virtual sensor to aggregate temperatures Alexandre Bailon
2021-10-30 23:33   ` kernel test robot
2021-11-09  2:32   ` kernel test robot [this message]

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=202111091004.cl9rGh4a-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=abailon@baylibre.com \
    --cc=amitk@kernel.org \
    --cc=ben.tseng@mediatek.com \
    --cc=daniel.lezcano@linaro.org \
    --cc=kbuild-all@lists.01.org \
    --cc=khilman@baylibre.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=mka@chromium.org \
    --cc=rafael@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