drm: make drm_file.h self contained
Subsystems (2)
PATCH v2 5/14 drm: make drm_file.h self contained
drm_file.h embed struct idr, so this file need to know the full type definition.
With this change users of drm_file.h are no longer forced to include idr.h - a file they usually get from drmP.h
This makes it simpler to remove drmP.h includes
Signed-off-by Sam Ravnborg <[email protected]>
Cc Jani Nikula <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc Maarten Lankhorst <[email protected]>
Cc Maxime Ripard <[email protected]>
Cc Sean Paul <[email protected]>
Cc David Airlie <[email protected]>
--- include/drm/drm_file.h | 1 + 1 file changed, 1 insertion(+)
include/drm/drm_file.h +1 -0
@@ -30,6 +30,7 @@#ifndef _DRM_FILE_H_#define _DRM_FILE_H_ +#include <linux/idr.h> #include <linux/types.h> #include <linux/completion.h>
Signature · 6 lines
2.12.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Den 30.12.2018 18.48, skrev Sam Ravnborg:
Quoted 8 lines
drm_file.hembed struct idr, so this file need to know the full type definition.With this change users of
drm_file.hare no longer forced to includeidr.h- a file they usually get fromdrmP.hThis makes it simpler to remove
drmP.hincludes
Quoted 8 lines
Signed-off-by Sam Ravnborg <[email protected]>Cc Jani Nikula <[email protected]>Cc Daniel Vetter <[email protected]>Cc Maarten Lankhorst <[email protected]>Cc Maxime Ripard <[email protected]>Cc Sean Paul <[email protected]>Cc David Airlie <[email protected]>---
Acked-by Noralf Trønnes <[email protected]>
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel