* [rafael-pm:bleeding-edge 12/27] drivers/acpi/thermal_lib.c:46:5: warning: no previous prototype for function 'acpi_active_trip_temp'
@ 2023-11-20 21:27 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-11-20 21:27 UTC (permalink / raw)
To: Rafael J. Wysocki; +Cc: llvm, oe-kbuild-all, linux-acpi, devel, linux-pm
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
head: f437a8d1debff5412e36a1c9454adee193b31950
commit: 932d2c2fd0b1e8242ba7bcb7b8c2553e663e174f [12/27] ACPI: thermal_lib: Add functions returning temperature in deci-Kelvin
config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20231121/202311210522.8Y0cnwJ2-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231121/202311210522.8Y0cnwJ2-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/202311210522.8Y0cnwJ2-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/acpi/thermal_lib.c:46:5: warning: no previous prototype for function 'acpi_active_trip_temp' [-Wmissing-prototypes]
int acpi_active_trip_temp(struct acpi_device *adev, int id, int *ret_temp)
^
drivers/acpi/thermal_lib.c:46:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int acpi_active_trip_temp(struct acpi_device *adev, int id, int *ret_temp)
^
static
>> drivers/acpi/thermal_lib.c:56:5: warning: no previous prototype for function 'acpi_passive_trip_temp' [-Wmissing-prototypes]
int acpi_passive_trip_temp(struct acpi_device *adev, int *ret_temp)
^
drivers/acpi/thermal_lib.c:56:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int acpi_passive_trip_temp(struct acpi_device *adev, int *ret_temp)
^
static
>> drivers/acpi/thermal_lib.c:61:5: warning: no previous prototype for function 'acpi_hot_trip_temp' [-Wmissing-prototypes]
int acpi_hot_trip_temp(struct acpi_device *adev, int *ret_temp)
^
drivers/acpi/thermal_lib.c:61:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int acpi_hot_trip_temp(struct acpi_device *adev, int *ret_temp)
^
static
>> drivers/acpi/thermal_lib.c:66:5: warning: no previous prototype for function 'acpi_critical_trip_temp' [-Wmissing-prototypes]
int acpi_critical_trip_temp(struct acpi_device *adev, int *ret_temp)
^
drivers/acpi/thermal_lib.c:66:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int acpi_critical_trip_temp(struct acpi_device *adev, int *ret_temp)
^
static
4 warnings generated.
vim +/acpi_active_trip_temp +46 drivers/acpi/thermal_lib.c
45
> 46 int acpi_active_trip_temp(struct acpi_device *adev, int id, int *ret_temp)
47 {
48 char obj_name[] = {'_', 'A', 'C', '0' + id, '\0'};
49
50 if (id < 0 || id > 9)
51 return -EINVAL;
52
53 return acpi_trip_temp(adev, obj_name, ret_temp);
54 }
55
> 56 int acpi_passive_trip_temp(struct acpi_device *adev, int *ret_temp)
57 {
58 return acpi_trip_temp(adev, "_PSV", ret_temp);
59 }
60
> 61 int acpi_hot_trip_temp(struct acpi_device *adev, int *ret_temp)
62 {
63 return acpi_trip_temp(adev, "_HOT", ret_temp);
64 }
65
> 66 int acpi_critical_trip_temp(struct acpi_device *adev, int *ret_temp)
67 {
68 return acpi_trip_temp(adev, "_CRT", ret_temp);
69 }
70
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-20 21:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-20 21:27 [rafael-pm:bleeding-edge 12/27] drivers/acpi/thermal_lib.c:46:5: warning: no previous prototype for function 'acpi_active_trip_temp' kernel test robot
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).