[PATCH v2 13/13] thermal: Enforce self-encapsulation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux