diff options
author | 2024-08-29 17:47:43 +0300 | |
---|---|---|
committer | 2024-09-02 15:01:59 +0300 | |
commit | 83e5af5997554115e198c2e9e97564702eac04a6 (patch) | |
tree | 4bdf86e7887c51aa84c495f381764e7a1dcb2372 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | drm/i915/fence: Mark debug_fence_free() with __maybe_unused (diff) | |
download | wireguard-linux-83e5af5997554115e198c2e9e97564702eac04a6.tar.xz wireguard-linux-83e5af5997554115e198c2e9e97564702eac04a6.zip |
drm/i915 & drm/xe: save struct drm_device to drvdata
In the future, the display code shall not have any idea about struct
xe_device or struct drm_i915_private, but will need to get at the struct
drm_device via drvdata. Store the struct drm_device pointer to drvdata
instead of the driver specific pointer.
Avoid passing NULL to container_of() via to_i915()/to_xe_device(). (It
does return NULL for NULL pointers when the offset happens to be 0, but
otherwise returns garbage pointers for NULL.)
Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/946805b32e38d4785880cc7857e01e6a309126a9.1724942754.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions