public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Daniel Lezcano <daniel.lezcano@oss.qualcomm.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [thermal:thermal/cooling-device-with-id-v2 6/14] include/linux/thermal.h:327:1: warning: no previous prototype for function 'devm_thermal_cooling_device_register'
Date: Mon, 20 Apr 2026 22:07:15 +0800	[thread overview]
Message-ID: <202604202218.R6fI5MvG-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git thermal/cooling-device-with-id-v2
head:   a1f086d250b04a9b833e71a6fa865e3600c5dac0
commit: 729cfe840489da5dcaf0bf3b57361263c2cbf125 [6/14] thermal/core: Register cooling device non-OF drivers
config: loongarch-allnoconfig (https://download.01.org/0day-ci/archive/20260420/202604202218.R6fI5MvG-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 5bac06718f502014fade905512f1d26d578a18f3)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260420/202604202218.R6fI5MvG-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202604202218.R6fI5MvG-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from arch/loongarch/kernel/topology.c:11:
   In file included from include/acpi/processor.h:11:
>> include/linux/thermal.h:327:1: warning: no previous prototype for function 'devm_thermal_cooling_device_register' [-Wmissing-prototypes]
     327 | devm_thermal_cooling_device_register(struct device *dev, const char *type,
         | ^
   include/linux/thermal.h:326:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     326 | struct thermal_cooling_device *
         | ^
         | static 
   1 warning generated.


vim +/devm_thermal_cooling_device_register +327 include/linux/thermal.h

   325	
   326	struct thermal_cooling_device *
 > 327	devm_thermal_cooling_device_register(struct device *dev, const char *type,
   328					     void *devdata, const struct thermal_cooling_device_ops *ops)
   329	{
   330		return ERR_PTR(-ENODEV);
   331	}
   332	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-04-20 14:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202604202218.R6fI5MvG-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=daniel.lezcano@oss.qualcomm.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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