From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: drivers/thermal/gov_fair_share.c:111:3: error: implicit declaration of function '__thermal_cdev_update'; did you mean 'thermal_cdev_update'?
Date: Fri, 30 Apr 2021 04:28:16 +0800 [thread overview]
Message-ID: <202104300410.5LQKK98B-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3902 bytes --]
tree: https://github.com/0day-ci/linux/commits/UPDATE-20210428-034547/Lukasz-Luba/Thermal-governors-improvements-and-a-fix/20210422-233837
head: 39327e6a7d33c1b9f0865a76806d9cdeccdceffd
commit: 85ed4f1d155032ca0fed3fc4d25b77f216c02cf8 thermal: fair share: use __thermal_cdev_update()
date: 2 days ago
config: x86_64-randconfig-a005-20210429 (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/85ed4f1d155032ca0fed3fc4d25b77f216c02cf8
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review UPDATE-20210428-034547/Lukasz-Luba/Thermal-governors-improvements-and-a-fix/20210422-233837
git checkout 85ed4f1d155032ca0fed3fc4d25b77f216c02cf8
# save the attached .config to linux build tree
make W=1 W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/thermal/gov_fair_share.c: In function 'fair_share_throttle':
>> drivers/thermal/gov_fair_share.c:111:3: error: implicit declaration of function '__thermal_cdev_update'; did you mean 'thermal_cdev_update'? [-Werror=implicit-function-declaration]
111 | __thermal_cdev_update(cdev);
| ^~~~~~~~~~~~~~~~~~~~~
| thermal_cdev_update
cc1: some warnings being treated as errors
vim +111 drivers/thermal/gov_fair_share.c
58
59 /**
60 * fair_share_throttle - throttles devices associated with the given zone
61 * @tz: thermal_zone_device
62 * @trip: trip point index
63 *
64 * Throttling Logic: This uses three parameters to calculate the new
65 * throttle state of the cooling devices associated with the given zone.
66 *
67 * Parameters used for Throttling:
68 * P1. max_state: Maximum throttle state exposed by the cooling device.
69 * P2. percentage[i]/100:
70 * How 'effective' the 'i'th device is, in cooling the given zone.
71 * P3. cur_trip_level/max_no_of_trips:
72 * This describes the extent to which the devices should be throttled.
73 * We do not want to throttle too much when we trip a lower temperature,
74 * whereas the throttling is at full swing if we trip critical levels.
75 * (Heavily assumes the trip points are in ascending order)
76 * new_state of cooling device = P3 * P2 * P1
77 */
78 static int fair_share_throttle(struct thermal_zone_device *tz, int trip)
79 {
80 struct thermal_instance *instance;
81 int total_weight = 0;
82 int total_instance = 0;
83 int cur_trip_level = get_trip_level(tz);
84
85 mutex_lock(&tz->lock);
86
87 list_for_each_entry(instance, &tz->thermal_instances, tz_node) {
88 if (instance->trip != trip)
89 continue;
90
91 total_weight += instance->weight;
92 total_instance++;
93 }
94
95 list_for_each_entry(instance, &tz->thermal_instances, tz_node) {
96 int percentage;
97 struct thermal_cooling_device *cdev = instance->cdev;
98
99 if (instance->trip != trip)
100 continue;
101
102 if (!total_weight)
103 percentage = 100 / total_instance;
104 else
105 percentage = (instance->weight * 100) / total_weight;
106
107 instance->target = get_target_state(tz, cdev, percentage,
108 cur_trip_level);
109
110 mutex_lock(&cdev->lock);
> 111 __thermal_cdev_update(cdev);
112 mutex_unlock(&cdev->lock);
113 }
114
115 mutex_unlock(&tz->lock);
116 return 0;
117 }
118
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37363 bytes --]
next reply other threads:[~2021-04-29 20:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-29 20:28 kernel test robot [this message]
2021-04-30 8:23 ` drivers/thermal/gov_fair_share.c:111:3: error: implicit declaration of function '__thermal_cdev_update'; did you mean 'thermal_cdev_update'? Lukasz Luba
2021-04-30 9:06 ` Chen, Rong A
2021-04-30 9:34 ` Lukasz Luba
-- strict thread matches above, loose matches on Subject: below --
2021-05-02 2:43 kernel test robot
2021-05-04 10:58 kernel test robot
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=202104300410.5LQKK98B-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.