]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/fbdev-client: Unexport drm_fbdev_client_setup()
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 8 Nov 2024 15:42:39 +0000 (16:42 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 15 Nov 2024 08:42:21 +0000 (09:42 +0100)
DRM drivers invoke drm_client_setup() to set up in-kernel clients.
No driver should call drm_fbdev_client_setup() directly. Therefore,
unexport the symbol and move the declaration to the internal header
drm_client_internal.h.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241108154600.126162-4-tzimmermann@suse.de
drivers/gpu/drm/clients/drm_client_internal.h [moved from include/drm/drm_fbdev_client.h with 85% similarity]
drivers/gpu/drm/clients/drm_client_setup.c
drivers/gpu/drm/clients/drm_fbdev_client.c

similarity index 85%
rename from include/drm/drm_fbdev_client.h
rename to drivers/gpu/drm/clients/drm_client_internal.h
index e11a5614f127c91ea5ab235de7ab3875fb56fb42..23258934956aa0b9f4cc60a87dce567ce430abcf 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: MIT */
 
-#ifndef DRM_FBDEV_CLIENT_H
-#define DRM_FBDEV_CLIENT_H
+#ifndef DRM_CLIENT_INTERNAL_H
+#define DRM_CLIENT_INTERNAL_H
 
 struct drm_device;
 struct drm_format_info;
index c6a295d5de50c749cfaae3609339c7b8d656379c..4b211a4812b5b36c28de3d52abb924121bc90f12 100644 (file)
@@ -2,10 +2,11 @@
 
 #include <drm/clients/drm_client_setup.h>
 #include <drm/drm_device.h>
-#include <drm/drm_fbdev_client.h>
 #include <drm/drm_fourcc.h>
 #include <drm/drm_print.h>
 
+#include "drm_client_internal.h"
+
 /**
  * drm_client_setup() - Setup in-kernel DRM clients
  * @dev: DRM device
index 246fb63ab250546dd576e93f9fc03761f6c51614..f894ba52bdb516cdd5b30cc709126c223956f17b 100644 (file)
@@ -3,11 +3,12 @@
 #include <drm/drm_client.h>
 #include <drm/drm_crtc_helper.h>
 #include <drm/drm_drv.h>
-#include <drm/drm_fbdev_client.h>
 #include <drm/drm_fb_helper.h>
 #include <drm/drm_fourcc.h>
 #include <drm/drm_print.h>
 
+#include "drm_client_internal.h"
+
 /*
  * struct drm_client_funcs
  */
@@ -164,4 +165,3 @@ err_drm_client_init:
        kfree(fb_helper);
        return ret;
 }
-EXPORT_SYMBOL(drm_fbdev_client_setup);