From: Dominik Kaszewski <[email protected]>

[Why & How]
External improvements will allow DC to directly include Linux Kernel
headers without the os_types.h proxy. As a test, dc_memory_pool can
directly include compiler_attributes.h for __must_check and _aligned.

Reviewed-by: Nicholas Kazlauskas <[email protected]>
Signed-off-by: Dominik Kaszewski <[email protected]>
Signed-off-by: Ivan Lipski <[email protected]>
---
 drivers/gpu/drm/amd/display/dc/dc_memory_pool.c | 1 +
 drivers/gpu/drm/amd/display/dc/dc_memory_pool.h | 2 ++
 drivers/gpu/drm/amd/display/dc/os_types.h       | 1 -
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/dc_memory_pool.c 
b/drivers/gpu/drm/amd/display/dc/dc_memory_pool.c
index 8a5a72f4cc88..e3db3a43550f 100644
--- a/drivers/gpu/drm/amd/display/dc/dc_memory_pool.c
+++ b/drivers/gpu/drm/amd/display/dc/dc_memory_pool.c
@@ -17,6 +17,7 @@
 #include "dc_memory_pool.h"
 
 #include <linux/atomic.h>
+#include <linux/compiler_attributes.h>
 
 enum {
        DC_MEMORY_POOL_SENTINEL = -1,
diff --git a/drivers/gpu/drm/amd/display/dc/dc_memory_pool.h 
b/drivers/gpu/drm/amd/display/dc/dc_memory_pool.h
index 0ec305813d66..e0d3beb60ef4 100644
--- a/drivers/gpu/drm/amd/display/dc/dc_memory_pool.h
+++ b/drivers/gpu/drm/amd/display/dc/dc_memory_pool.h
@@ -19,6 +19,8 @@
 
 #include "os_types.h"
 
+#include <linux/compiler_attributes.h>
+
 /**
  * Non-resizable lock-free memory pool with fixed capacity.
  *
diff --git a/drivers/gpu/drm/amd/display/dc/os_types.h 
b/drivers/gpu/drm/amd/display/dc/os_types.h
index 27d4a96b958f..339372293a98 100644
--- a/drivers/gpu/drm/amd/display/dc/os_types.h
+++ b/drivers/gpu/drm/amd/display/dc/os_types.h
@@ -27,7 +27,6 @@
 #ifndef _OS_TYPES_H_
 #define _OS_TYPES_H_
 
-#include <linux/compiler_attributes.h>
 #include <linux/slab.h>
 #include <linux/kgdb.h>
 #include <linux/delay.h>
-- 
2.43.0

Reply via email to