Files
twx-linux/include/linux
Martin Blumenstingl fa545a5f3b thermal: devfreq_cooling: inline all stubs for CONFIG_DEVFREQ_THERMAL=n
commit 3f5b995904 upstream.

When CONFIG_DEVFREQ_THERMAL is disabled all functions except
of_devfreq_cooling_register_power() were already inlined. Also inline
the last function to avoid compile errors when multiple drivers call
of_devfreq_cooling_register_power() when CONFIG_DEVFREQ_THERMAL is not
set. Compilation failed with the following message:
  multiple definition of `of_devfreq_cooling_register_power'
(which then lists all usages of of_devfreq_cooling_register_power())

Thomas Zimmermann reported this problem [0] on a kernel config with
CONFIG_DRM_LIMA={m,y}, CONFIG_DRM_PANFROST={m,y} and
CONFIG_DEVFREQ_THERMAL=n after both, the lima and panfrost drivers
gained devfreq cooling support.

[0] https://www.spinics.net/lists/dri-devel/msg252825.html

Fixes: a76caf55e5 ("thermal: Add devfreq cooling")
Cc: stable@vger.kernel.org
Reported-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Tested-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200403205133.1101808-1-martin.blumenstingl@googlemail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-24 08:00:36 +02:00
..
2019-12-17 20:39:59 +01:00
2020-01-27 14:46:52 +01:00
2019-12-05 15:38:25 +01:00
2018-08-03 07:50:38 +02:00
2019-03-23 14:35:28 +01:00
2019-11-24 08:22:48 +01:00
2020-04-02 16:34:21 +02:00
2020-04-02 16:34:21 +02:00
2018-06-21 04:02:49 +09:00
2019-12-17 20:38:50 +01:00
2019-12-31 12:37:21 +01:00
2020-03-20 10:54:12 +01:00
2019-06-11 12:21:48 +02:00
2019-12-05 15:38:28 +01:00
2020-04-02 16:34:36 +02:00
2019-04-17 08:37:44 +02:00
2018-11-13 11:15:11 -08:00
2019-06-17 19:52:43 +02:00
2020-04-02 16:34:20 +02:00
2020-04-02 16:34:36 +02:00