Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm: Replace kernel.h with the necessary inclusions

When kernel.h is used in the headers it adds a lot into dependency hell,
especially when there are circular dependencies are involved.

Replace kernel.h inclusion with the list of what is really being used.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20211110102423.54282-1-andriy.shevchenko@linux.intel.com

authored by

Andy Shevchenko and committed by
Thomas Zimmermann
ae710a45 03848335

+5 -3
+1 -1
include/drm/drm_gem_ttm_helper.h
··· 3 3 #ifndef DRM_GEM_TTM_HELPER_H 4 4 #define DRM_GEM_TTM_HELPER_H 5 5 6 - #include <linux/kernel.h> 6 + #include <linux/container_of.h> 7 7 8 8 #include <drm/drm_device.h> 9 9 #include <drm/drm_gem.h>
+1 -1
include/drm/drm_gem_vram_helper.h
··· 11 11 #include <drm/ttm/ttm_bo_api.h> 12 12 #include <drm/ttm/ttm_bo_driver.h> 13 13 14 + #include <linux/container_of.h> 14 15 #include <linux/dma-buf-map.h> 15 - #include <linux/kernel.h> /* for container_of() */ 16 16 17 17 struct drm_mode_create_dumb; 18 18 struct drm_plane;
+3 -1
include/drm/drm_mm.h
··· 39 39 */ 40 40 #include <linux/bug.h> 41 41 #include <linux/rbtree.h> 42 - #include <linux/kernel.h> 42 + #include <linux/limits.h> 43 43 #include <linux/mm_types.h> 44 44 #include <linux/list.h> 45 45 #include <linux/spinlock.h> 46 46 #ifdef CONFIG_DRM_DEBUG_MM 47 47 #include <linux/stackdepot.h> 48 48 #endif 49 + #include <linux/types.h> 50 + 49 51 #include <drm/drm_print.h> 50 52 51 53 #ifdef CONFIG_DRM_DEBUG_MM