Skip to contentSkip to conversation

thermal/core: Hardening the self-encapsulation

PATCH In review Daniel Lezcano 5 participants 11 messages Oct 12, 2023 – Oct 17, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 thermal/core: Hardening the self-encapsulation

The thermal private header has leaked all around the drivers which interacted with the core internals. The thermal zone structure which was part of the exported header led also to a leakage of the fields into the different drivers, making very difficult to improve the core code without having to change the drivers.

Now we mostly fixed how the thermal drivers were interacting with the thermal zones (actually fixed how they should not interact). The thermal zone structure will be moved to the private thermal core header. This header has been removed from the different drivers and must belong to the core code only. In order to prevent this private header to be included again in the drivers, make explicit only the core code can include this header by defining a THERMAL_CORE_SUBSYS macro. The private header will contain a check against this macro.

The Tegra SoCtherm driver needs to access thermal_core.h to have the get_thermal_instance() function definition. It is the only one remaining driver which need to access the thermal_core.h header, so the check will emit a warning at compilation time.

Thierry Reding is reworking the driver to get rid of this function [1] and thus when the changes will be merged, the compilation warning will be converted to a compilation error, closing definitively the door to the drivers willing to play with the thermal zone device internals.

No functional changes intended.

[1] https://lore.kernel.org/all/[email protected]/

---
 drivers/thermal/gov_bang_bang.c       | 1 +
 drivers/thermal/gov_fair_share.c      | 1 +
 drivers/thermal/gov_power_allocator.c | 1 +
 drivers/thermal/gov_step_wise.c       | 1 +
 drivers/thermal/gov_user_space.c      | 1 +
 drivers/thermal/thermal_acpi.c        | 1 +
 drivers/thermal/thermal_core.c        | 1 +
 drivers/thermal/thermal_core.h        | 4 ++++
 drivers/thermal/thermal_helpers.c     | 1 +
 drivers/thermal/thermal_hwmon.c       | 1 +
 drivers/thermal/thermal_netlink.c     | 1 +
 drivers/thermal/thermal_of.c          | 1 +
 drivers/thermal/thermal_sysfs.c       | 1 +
 drivers/thermal/thermal_trip.c        | 1 +
 14 files changed, 17 insertions(+)
drivers/thermal/gov_bang_bang.c +1 -0
index 1b121066521f..752c627075ba 100644
@@ -11,6 +11,7 @@
 
 #include <linux/thermal.h>
 
+#define THERMAL_CORE_SUBSYS
 #include "thermal_core.h"
 
 static int thermal_zone_trip_update(struct thermal_zone_device *tz, int trip_id)
drivers/thermal/gov_fair_share.c +1 -0
index 03c2daeb6ee8..108cb5074594 100644
@@ -13,6 +13,7 @@
 #include <linux/thermal.h>
 #include "thermal_trace.h"
 
+#define THERMAL_CORE_SUBSYS
 #include "thermal_core.h"
 
 /**
drivers/thermal/gov_power_allocator.c +1 -0
index 8642f1096b91..d1c6ad92e5b4 100644
@@ -14,6 +14,7 @@
 #define CREATE_TRACE_POINTS
 #include "thermal_trace_ipa.h"
 
+#define THERMAL_CORE_SUBSYS
 #include "thermal_core.h"
 
 #define INVALID_TRIP -1
drivers/thermal/gov_step_wise.c +1 -0
index 1050fb4d94c2..1c844004afe5 100644
@@ -14,6 +14,7 @@
 #include <linux/minmax.h>
 #include "thermal_trace.h"
 
+#define THERMAL_CORE_SUBSYS
 #include "thermal_core.h"
 
 /*
drivers/thermal/gov_user_space.c +1 -0
index 8bc1c22aaf03..8883c9ca930f 100644
@@ -13,6 +13,7 @@
 #include <linux/slab.h>
 #include <linux/thermal.h>
 
+#define THERMAL_CORE_SUBSYS
 #include "thermal_core.h"
 
 static int user_space_bind(struct thermal_zone_device *tz)
drivers/thermal/thermal_acpi.c +1 -0
index 0e5698818f69..556c9f0cc40d 100644
@@ -9,6 +9,7 @@
 #include <linux/acpi.h>
 #include <linux/units.h>
 
+#define THERMAL_CORE_SUBSYS
 #include "thermal_core.h"
 
 /*
drivers/thermal/thermal_core.c +1 -0
index 58533ea75cd9..9ee0ec3bdff6 100644
@@ -24,6 +24,7 @@
 #define CREATE_TRACE_POINTS
 #include "thermal_trace.h"
 
+#define THERMAL_CORE_SUBSYS
 #include "thermal_core.h"
 #include "thermal_hwmon.h"
 
drivers/thermal/thermal_core.h +4 -0
index de884bea28b6..387b06c49415 100644
@@ -14,6 +14,10 @@
 
 #include "thermal_netlink.h"
 
+#ifndef THERMAL_CORE_SUBSYS
+#warning This header can only be included by the thermal core code
+#endif
+
 /* Default Thermal Governor */
 #if defined(CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE)
 #define DEFAULT_THERMAL_GOVERNOR       "step_wise"
drivers/thermal/thermal_helpers.c +1 -0
index 4d66372c9629..26804cfdd494 100644
@@ -19,6 +19,7 @@
 #include <linux/string.h>
 #include <linux/sysfs.h>
 
+#define THERMAL_CORE_SUBSYS
 #include "thermal_core.h"
 #include "thermal_trace.h"
 
drivers/thermal/thermal_hwmon.c +1 -0
index c3ae44659b81..ba2ae5be0c23 100644
@@ -17,6 +17,7 @@
 #include <linux/thermal.h>
 
 #include "thermal_hwmon.h"
+#define THERMAL_CORE_SUBSYS
 #include "thermal_core.h"
 
 /* hwmon sys I/F */
drivers/thermal/thermal_netlink.c +1 -0
index 08bc46c3ec7b..f3ac6432bf5f 100644
@@ -11,6 +11,7 @@
 #include <net/genetlink.h>
 #include <uapi/linux/thermal.h>
 
+#define THERMAL_CORE_SUBSYS
 #include "thermal_core.h"
 
 static const struct genl_multicast_group thermal_genl_mcgrps[] = {
drivers/thermal/thermal_of.c +1 -0
index 1e0655b63259..db83596ea105 100644
@@ -16,6 +16,7 @@
 #include <linux/types.h>
 #include <linux/string.h>
 
+#define THERMAL_CORE_SUBSYS
 #include "thermal_core.h"
 
 /***   functions parsing device tree nodes   ***/
drivers/thermal/thermal_sysfs.c +1 -0
index 4e6a97db894e..ca616b3f5172 100644
@@ -19,6 +19,7 @@
 #include <linux/string.h>
 #include <linux/jiffies.h>
 
+#define THERMAL_CORE_SUBSYS
 #include "thermal_core.h"
 
 /* sys I/F for thermal zone */
drivers/thermal/thermal_trip.c +1 -0
index 024e2e365a26..2f4c6fa83bea 100644
@@ -7,6 +7,7 @@
  *
  * Thermal trips handling
  */
+#define THERMAL_CORE_SUBSYS
 #include "thermal_core.h"
 
 int for_each_thermal_trip(struct thermal_zone_device *tz,
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/2 thermal/core: Reorder the headers inclusion

The next changes will move the thermal device structure inside the thermal core code. Consequently, the traces must be included after thermal_core.h as this one contains the thermal zone device structure definition the traces need.

Reorder the inclusions.

No functional changes intended.

---
 drivers/thermal/gov_power_allocator.c | 6 +++---
 drivers/thermal/thermal_core.c        | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
drivers/thermal/gov_power_allocator.c +3 -3
index d1c6ad92e5b4..6056ed15460b 100644
@@ -11,12 +11,12 @@
 #include <linux/slab.h>
 #include <linux/thermal.h>
 
-#define CREATE_TRACE_POINTS
-#include "thermal_trace_ipa.h"
-
 #define THERMAL_CORE_SUBSYS
 #include "thermal_core.h"
 
+#define CREATE_TRACE_POINTS
+#include "thermal_trace_ipa.h" 
+
 #define INVALID_TRIP -1
 
 #define FRAC_BITS 10
drivers/thermal/thermal_core.c +3 -3
index 9ee0ec3bdff6..51a6bed47213 100644
@@ -21,13 +21,13 @@
 #include <linux/of.h>
 #include <linux/suspend.h>
 
-#define CREATE_TRACE_POINTS
-#include "thermal_trace.h"
-
 #define THERMAL_CORE_SUBSYS
 #include "thermal_core.h"
 #include "thermal_hwmon.h"
 
+#define CREATE_TRACE_POINTS
+#include "thermal_trace.h"
+
 static DEFINE_IDA(thermal_tz_ida);
 static DEFINE_IDA(thermal_cdev_ida);
 
Signature · 1 line
2.34.1
maintainer Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] thermal/core: Reorder the headers inclusion

Quoted 21 lines · Daniel Lezcano

The next changes will move the thermal device structure inside the thermal core code. Consequently, the traces must be included after thermal_core.h as this one contains the thermal zone device structure definition the traces need.

Reorder the inclusions.

No functional changes intended.

---
  drivers/thermal/gov_power_allocator.c | 6 +++---
  drivers/thermal/thermal_core.c        | 6 +++---
  2 files changed, 6 insertions(+), 6 deletions(-)
drivers/thermal/gov_power_allocator.c +0 -0
index d1c6ad92e5b4..6056ed15460b 100644
@@ -11,12 +11,12 @@
  #include <linux/slab.h>

drivers/thermal/gov_power_allocator.c line 18

Quoted 10 lines
drivers/thermal/gov_power_allocator.c +2 -3
  #include <linux/thermal.h>
 
-#define CREATE_TRACE_POINTS
-#include "thermal_trace_ipa.h"
-
  #define THERMAL_CORE_SUBSYS
  #include "thermal_core.h"
 
+#define CREATE_TRACE_POINTS
+#include "thermal_trace_ipa.h"

There is a small issue here to fix:

Applying: thermal/core: Reorder the headers inclusion .git/rebase-apply/patch:21: trailing whitespace. #include "thermal_trace_ipa.h"
warning: 1 line adds whitespace errors.

Other than that LGTM

maintainer
#3 lore raw
In reply to Daniel Lezcano

Hi Daniel,

Quoted 20 lines · Daniel Lezcano

The thermal private header has leaked all around the drivers which interacted with the core internals. The thermal zone structure which was part of the exported header led also to a leakage of the fields into the different drivers, making very difficult to improve the core code without having to change the drivers.

Now we mostly fixed how the thermal drivers were interacting with the thermal zones (actually fixed how they should not interact). The thermal zone structure will be moved to the private thermal core header. This header has been removed from the different drivers and must belong to the core code only. In order to prevent this private header to be included again in the drivers, make explicit only the core code can include this header by defining a THERMAL_CORE_SUBSYS macro. The private header will contain a check against this macro.

The Tegra SoCtherm driver needs to access thermal_core.h to have the get_thermal_instance() function definition. It is the only one remaining driver which need to access the thermal_core.h header, so the check will emit a warning at compilation time.

Quoted 4 lines

Thierry Reding is reworking the driver to get rid of this function [1] and thus when the changes will be merged, the compilation warning will be converted to a compilation error, closing definitively the door to the drivers willing to play with the thermal zone device internals.

That looks like a good idea. Although, shouldn't we avoid the compilation warnings and just first merge the fixes for drivers?

Regards,
Lukasz

#4 lore raw

Hi Lukasz,

Quoted 23 lines · Lukasz Luba

Hi Daniel,

Quoted 20 lines · Daniel Lezcano

The thermal private header has leaked all around the drivers which interacted with the core internals. The thermal zone structure which was part of the exported header led also to a leakage of the fields into the different drivers, making very difficult to improve the core code without having to change the drivers.

Now we mostly fixed how the thermal drivers were interacting with the thermal zones (actually fixed how they should not interact). The thermal zone structure will be moved to the private thermal core header. This header has been removed from the different drivers and must belong to the core code only. In order to prevent this private header to be included again in the drivers, make explicit only the core code can include this header by defining a THERMAL_CORE_SUBSYS macro. The private header will contain a check against this macro.

The Tegra SoCtherm driver needs to access thermal_core.h to have the get_thermal_instance() function definition. It is the only one remaining driver which need to access the thermal_core.h header, so the check will emit a warning at compilation time.

Quoted 7 lines
Quoted 4 lines

Thierry Reding is reworking the driver to get rid of this function [1] and thus when the changes will be merged, the compilation warning will be converted to a compilation error, closing definitively the door to the drivers willing to play with the thermal zone device internals.

That looks like a good idea. Although, shouldn't we avoid the compilation warnings and just first merge the fixes for drivers?

Yes, we should but there is the series for nvidia (pointed in the changelog) which need a slight refresh for the bindings AFAIR. That series is since March 2023 and Thierry seems busy [1]. I'm holding the hardening since then.

So I don't know how to make progress on this? I was assuming we can merge this series and let the compiler recall what has to be fixed.

[1] https://lore.kernel.org/all/ZK14edZUih1kH_sZ@orome/

and as soon as it is fixed, we convert the WARNING to ERROR :P

Signature · 5 lines
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
#5 lore raw
Quoted 39 lines · Daniel Lezcano

Hi Lukasz,

Quoted 23 lines · Lukasz Luba

Hi Daniel,

Quoted 20 lines · Daniel Lezcano

The thermal private header has leaked all around the drivers which interacted with the core internals. The thermal zone structure which was part of the exported header led also to a leakage of the fields into the different drivers, making very difficult to improve the core code without having to change the drivers.

Now we mostly fixed how the thermal drivers were interacting with the thermal zones (actually fixed how they should not interact). The thermal zone structure will be moved to the private thermal core header. This header has been removed from the different drivers and must belong to the core code only. In order to prevent this private header to be included again in the drivers, make explicit only the core code can include this header by defining a THERMAL_CORE_SUBSYS macro. The private header will contain a check against this macro.

The Tegra SoCtherm driver needs to access thermal_core.h to have the get_thermal_instance() function definition. It is the only one remaining driver which need to access the thermal_core.h header, so the check will emit a warning at compilation time.

Quoted 7 lines
Quoted 4 lines

Thierry Reding is reworking the driver to get rid of this function [1] and thus when the changes will be merged, the compilation warning will be converted to a compilation error, closing definitively the door to the drivers willing to play with the thermal zone device internals.

That looks like a good idea. Although, shouldn't we avoid the compilation warnings and just first merge the fixes for drivers?

Yes, we should but there is the series for nvidia (pointed in the changelog) which need a slight refresh for the bindings AFAIR. That series is since March 2023 and Thierry seems busy [1]. I'm holding the hardening since then.

Quoted 6 lines

So I don't know how to make progress on this? I was assuming we can merge this series and let the compiler recall what has to be fixed.

[1] https://lore.kernel.org/all/ZK14edZUih1kH_sZ@orome/

and as soon as it is fixed, we convert the WARNING to ERROR :P

Yeah, sorry about that. This has been plagued by bad luck. Since then the device that I need to test this on broke and it then took a while to get a new one. I still need to find time to set this up and do some more extensive testing to make sure I haven't regressed anything.

Thierry

#6 lore raw
In reply to Daniel Lezcano
Quoted 41 lines · Daniel Lezcano

Hi Lukasz,

Quoted 23 lines · Lukasz Luba

Hi Daniel,

Quoted 20 lines · Daniel Lezcano

The thermal private header has leaked all around the drivers which interacted with the core internals. The thermal zone structure which was part of the exported header led also to a leakage of the fields into the different drivers, making very difficult to improve the core code without having to change the drivers.

Now we mostly fixed how the thermal drivers were interacting with the thermal zones (actually fixed how they should not interact). The thermal zone structure will be moved to the private thermal core header. This header has been removed from the different drivers and must belong to the core code only. In order to prevent this private header to be included again in the drivers, make explicit only the core code can include this header by defining a THERMAL_CORE_SUBSYS macro. The private header will contain a check against this macro.

The Tegra SoCtherm driver needs to access thermal_core.h to have the get_thermal_instance() function definition. It is the only one remaining driver which need to access the thermal_core.h header, so the check will emit a warning at compilation time.

Quoted 7 lines
Quoted 4 lines

Thierry Reding is reworking the driver to get rid of this function [1] and thus when the changes will be merged, the compilation warning will be converted to a compilation error, closing definitively the door to the drivers willing to play with the thermal zone device internals.

That looks like a good idea. Although, shouldn't we avoid the compilation warnings and just first merge the fixes for drivers?

Yes, we should but there is the series for nvidia (pointed in the changelog) which need a slight refresh for the bindings AFAIR. That series is since March 2023 and Thierry seems busy [1]. I'm holding the hardening since then.

Quoted 6 lines

So I don't know how to make progress on this? I was assuming we can merge this series and let the compiler recall what has to be fixed.

[1] https://lore.kernel.org/all/ZK14edZUih1kH_sZ@orome/

and as soon as it is fixed, we convert the WARNING to ERROR :P

To be honest, I'm not sure if anything needs to be done along the lines of this patch right now or even at all.

The only concern here would be that some new drivers would include thermal_core.h while we were waiting for the remaining existing abusers to be fixed, but since this hasn't happened for the last 6 months, I'm not worried.

It would be good to add a notice to thermal_core.h that this file is for internal use in the thermal core only, though.

#7 lore raw

On 12/10/2023 19:44, Rafael J. Wysocki wrote:

[ ... ]

Quoted 15 lines
Quoted 11 lines

Yes, we should but there is the series for nvidia (pointed in the changelog) which need a slight refresh for the bindings AFAIR. That series is since March 2023 and Thierry seems busy [1]. I'm holding the hardening since then.

So I don't know how to make progress on this? I was assuming we can merge this series and let the compiler recall what has to be fixed.

[1] https://lore.kernel.org/all/ZK14edZUih1kH_sZ@orome/

and as soon as it is fixed, we convert the WARNING to ERROR :P

To be honest, I'm not sure if anything needs to be done along the lines of this patch right now or even at all.

Quoted 7 lines

The only concern here would be that some new drivers would include thermal_core.h while we were waiting for the remaining existing abusers to be fixed, but since this hasn't happened for the last 6 months, I'm not worried.

It would be good to add a notice to thermal_core.h that this file is for internal use in the thermal core only, though.

So this series will give a warning for the remaining nvidia driver but Thierry just send the changes to get rid of the thermal_core.h (Thanks!)

AFAICT, the last user of the thermal_zone_device structure is the int340x driver but the patch fixing the structure internal usage is already in the bleeding edge (well perhaps one nit is missing for the trace)

As soon as the bindings are acked, then I can pick the patches from Thierry which will end up in your tree. Then you can apply the current series. And finally I'll send the last patch moving the thermal zone device structure to the thermal_core.h. And we will be done with this part.

Having a compilation warning (I would prefer a more coercive error if we agree on that) will help to not have to double check every time thermal_core.h is not pulled in the drivers when patches are submitted.

Signature · 5 lines
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
#8 lore raw
Quoted 31 lines · Daniel Lezcano

On 12/10/2023 19:44, Rafael J. Wysocki wrote:

[ ... ]

Quoted 15 lines
Quoted 11 lines

Yes, we should but there is the series for nvidia (pointed in the changelog) which need a slight refresh for the bindings AFAIR. That series is since March 2023 and Thierry seems busy [1]. I'm holding the hardening since then.

So I don't know how to make progress on this? I was assuming we can merge this series and let the compiler recall what has to be fixed.

[1] https://lore.kernel.org/all/ZK14edZUih1kH_sZ@orome/

and as soon as it is fixed, we convert the WARNING to ERROR :P

To be honest, I'm not sure if anything needs to be done along the lines of this patch right now or even at all.

Quoted 7 lines

The only concern here would be that some new drivers would include thermal_core.h while we were waiting for the remaining existing abusers to be fixed, but since this hasn't happened for the last 6 months, I'm not worried.

It would be good to add a notice to thermal_core.h that this file is for internal use in the thermal core only, though.

So this series will give a warning for the remaining nvidia driver but Thierry just send the changes to get rid of the thermal_core.h (Thanks!)

Quoted 8 lines

AFAICT, the last user of the thermal_zone_device structure is the int340x driver but the patch fixing the structure internal usage is already in the bleeding edge (well perhaps one nit is missing for the trace)

As soon as the bindings are acked, then I can pick the patches from Thierry which will end up in your tree. Then you can apply the current series. And finally I'll send the last patch moving the thermal zone device structure to the thermal_core.h. And we will be done with this part.

OK

Quoted 3 lines

Having a compilation warning (I would prefer a more coercive error if we agree on that) will help to not have to double check every time thermal_core.h is not pulled in the drivers when patches are submitted.

Well, at least it doesn't hurt to have it.

maintainer Reviewed-by
#9 lore raw
In reply to Daniel Lezcano
Quoted 35 lines · Daniel Lezcano

Hi Lukasz,

Quoted 23 lines · Lukasz Luba

Hi Daniel,

Quoted 20 lines · Daniel Lezcano

The thermal private header has leaked all around the drivers which interacted with the core internals. The thermal zone structure which was part of the exported header led also to a leakage of the fields into the different drivers, making very difficult to improve the core code without having to change the drivers.

Now we mostly fixed how the thermal drivers were interacting with the thermal zones (actually fixed how they should not interact). The thermal zone structure will be moved to the private thermal core header. This header has been removed from the different drivers and must belong to the core code only. In order to prevent this private header to be included again in the drivers, make explicit only the core code can include this header by defining a THERMAL_CORE_SUBSYS macro. The private header will contain a check against this macro.

The Tegra SoCtherm driver needs to access thermal_core.h to have the get_thermal_instance() function definition. It is the only one remaining driver which need to access the thermal_core.h header, so the check will emit a warning at compilation time.

Quoted 7 lines
Quoted 4 lines

Thierry Reding is reworking the driver to get rid of this function [1] and thus when the changes will be merged, the compilation warning will be converted to a compilation error, closing definitively the door to the drivers willing to play with the thermal zone device internals.

That looks like a good idea. Although, shouldn't we avoid the compilation warnings and just first merge the fixes for drivers?

Quoted 11 lines

Yes, we should but there is the series for nvidia (pointed in the changelog) which need a slight refresh for the bindings AFAIR. That series is since March 2023 and Thierry seems busy [1]. I'm holding the hardening since then.

So I don't know how to make progress on this? I was assuming we can merge this series and let the compiler recall what has to be fixed.

[1] https://lore.kernel.org/all/ZK14edZUih1kH_sZ@orome/

and as soon as it is fixed, we convert the WARNING to ERROR :P

OK, so that should be good for possible distro configs IMO. The chicken egg problem should be addressed and we can start from this patch approach.

#10 lore raw
In reply to Daniel Lezcano
kernel test robot noticed the following build warnings:

Hi Daniel,

kernel test robot noticed the following build warnings:

[auto build test WARNING on v6.6-rc6]
[also build test WARNING on linus/master next-20231016] [cannot apply to rafael-pm/thermal]
[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#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Daniel-Lezcano/thermal-core-Reorder-the-headers-inclusion/20231017-105029
base:   v6.6-rc6
patch link:    https://lore.kernel.org/r/20231012102700.2858952-1-daniel.lezcano%40linaro.org
patch subject: [PATCH 1/2] thermal/core: Hardening the self-encapsulation
config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20231017/[email protected]/config)
compiler: m68k-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231017/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

In file included from drivers/thermal/tegra/soctherm.c:36:

>> drivers/thermal/tegra/../thermal_core.h:18:2: warning: #warning This header can only be included by the thermal core code [-Wcpp]

18 | #warning This header can only be included by the thermal core code
| ^~~~~~~

vim +18 drivers/thermal/tegra/../thermal_core.h

16
17 #ifndef THERMAL_CORE_SUBSYS

  > 18	#warning This header can only be included by the thermal core code
    19	#endif
    20	
Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki