diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2021-11-29 10:48:41 +0100 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2021-11-30 09:41:28 +0100 |
commit | a21800bced7cbaf7bb8f5281db17a5d7ef6e197a (patch) | |
tree | b71a940ac6f0db01084d74f22a17f1ddf5418975 /include/drm/drm_legacy.h | |
parent | 2985c96485b7ef4e015d13dc3081fb0479260951 (diff) | |
download | linux-stable-a21800bced7cbaf7bb8f5281db17a5d7ef6e197a.tar.gz linux-stable-a21800bced7cbaf7bb8f5281db17a5d7ef6e197a.tar.bz2 linux-stable-a21800bced7cbaf7bb8f5281db17a5d7ef6e197a.zip |
drm: Declare hashtable as legacy
The DRM hashtable code is only used by internal functions for legacy
UMS drivers. Move the implementation behind CONFIG_DRM_LEGACY and the
declarations into legacy header files. Unexport the symbols.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211129094841.22499-4-tzimmermann@suse.de
Diffstat (limited to 'include/drm/drm_legacy.h')
-rw-r--r-- | include/drm/drm_legacy.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/include/drm/drm_legacy.h b/include/drm/drm_legacy.h index 58dc8d8cc907..0fc85418aad8 100644 --- a/include/drm/drm_legacy.h +++ b/include/drm/drm_legacy.h @@ -37,7 +37,6 @@ #include <drm/drm.h> #include <drm/drm_auth.h> -#include <drm/drm_hashtab.h> struct drm_device; struct drm_driver; @@ -51,6 +50,20 @@ struct pci_driver; * you're doing it terribly wrong. */ +/* + * Hash-table Support + */ + +struct drm_hash_item { + struct hlist_node head; + unsigned long key; +}; + +struct drm_open_hash { + struct hlist_head *table; + u8 order; +}; + /** * DMA buffer. */ |