From: Thierry Reding <treding@xxxxxxxxxx> With the last driver being fixed to not reach into the core anymore, make sure that no new drivers will be able to do so by generating a build error when they try to do so. Signed-off-by: Thierry Reding <treding@xxxxxxxxxx> --- drivers/thermal/thermal_core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/thermal_core.h b/drivers/thermal/thermal_core.h index 91d9d4f63609..9c599658b866 100644 --- a/drivers/thermal/thermal_core.h +++ b/drivers/thermal/thermal_core.h @@ -15,7 +15,7 @@ #include "thermal_netlink.h" #ifndef THERMAL_CORE_SUBSYS -#warning This header can only be included by the thermal core code +#error This header can only be included by the thermal core code #endif /* Default Thermal Governor */ -- 2.42.0