Re: [PATCH 2/3] thermal/debugfs: Add debugfs information
From: kernel test robot
Date: Wed Jun 01 2022 - 20:40:04 EST
Hi Daniel,
I love your patch! Perhaps something to improve:
[auto build test WARNING on rafael-pm/thermal]
[also build test WARNING on v5.18 next-20220601]
[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/intel-lab-lkp/linux/commits/Daniel-Lezcano/thermal-core-Encapsulate-the-set_cur_state-function/20220601-231733
base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git thermal
config: x86_64-randconfig-a016 (https://download.01.org/0day-ci/archive/20220602/202206020816.0blG5XwC-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c825abd6b0198fb088d9752f556a70705bc99dfd)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/04c295f7e8b49af742179609949736f6f056b49c
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Daniel-Lezcano/thermal-core-Encapsulate-the-set_cur_state-function/20220601-231733
git checkout 04c295f7e8b49af742179609949736f6f056b49c
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All warnings (new ones prefixed by >>):
In file included from drivers/thermal/thermal_core.c:27:
In file included from drivers/thermal/thermal_core.h:16:
>> drivers/thermal/thermal_debugfs.h:11:20: warning: function 'thermal_debugfs_init' has internal linkage but is not defined [-Wundefined-internal]
static inline void thermal_debugfs_init(void);
^
drivers/thermal/thermal_core.c:1496:2: note: used here
thermal_debugfs_init();
^
1 warning generated.
vim +/thermal_debugfs_init +11 drivers/thermal/thermal_debugfs.h
2
3 #ifdef CONFIG_THERMAL_DEBUGFS
4 void thermal_debugfs_init(void);
5 void thermal_debugfs_cdev_register(struct thermal_cooling_device *cdev);
6 void thermal_debugfs_cdev_unregister(struct thermal_cooling_device *cdev);
7 void thermal_debugfs_tz_register(struct thermal_zone_device *tz);
8 void thermal_debugfs_tz_unregister(struct thermal_zone_device *tz);
9 void thermal_debugfs_cdev_transition(struct thermal_cooling_device *cdev, int state);
10 #else
> 11 static inline void thermal_debugfs_init(void);
--
0-DAY CI Kernel Test Service
https://01.org/lkp