From: Thomas Zimmermann Date: Tue, 21 Apr 2026 07:29:09 +0000 (+0200) Subject: drm/tegra: Make tegra_fb_alloc() an internal interface X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=edb4f5e630d9555461a48db89b4a20d5b7e160bb;p=thirdparty%2Flinux.git drm/tegra: Make tegra_fb_alloc() an internal interface Fbdev framebuffer allocation now goes through the regular ioctl call chain. This makes tegra_fb_alloc() an internal helper function. Declare it as static. Signed-off-by: Thomas Zimmermann Signed-off-by: Thierry Reding Link: https://patch.msgid.link/20260421073646.144712-6-tzimmermann@suse.de --- diff --git a/drivers/gpu/drm/tegra/drm.h b/drivers/gpu/drm/tegra/drm.h index ae68b03d8483b..bc720ae8d95e1 100644 --- a/drivers/gpu/drm/tegra/drm.h +++ b/drivers/gpu/drm/tegra/drm.h @@ -184,11 +184,6 @@ struct tegra_bo *tegra_fb_get_plane(struct drm_framebuffer *framebuffer, bool tegra_fb_is_bottom_up(struct drm_framebuffer *framebuffer); int tegra_fb_get_tiling(struct drm_framebuffer *framebuffer, struct tegra_bo_tiling *tiling); -struct drm_framebuffer *tegra_fb_alloc(struct drm_device *drm, - const struct drm_format_info *info, - const struct drm_mode_fb_cmd2 *mode_cmd, - struct tegra_bo **planes, - unsigned int num_planes); struct drm_framebuffer *tegra_fb_create(struct drm_device *drm, struct drm_file *file, const struct drm_format_info *info, diff --git a/drivers/gpu/drm/tegra/fb.c b/drivers/gpu/drm/tegra/fb.c index 1e4803d355ddb..0a7cb9e462ff6 100644 --- a/drivers/gpu/drm/tegra/fb.c +++ b/drivers/gpu/drm/tegra/fb.c @@ -102,6 +102,7 @@ static const struct drm_framebuffer_funcs tegra_fb_funcs = { .create_handle = drm_gem_fb_create_handle, }; +static struct drm_framebuffer *tegra_fb_alloc(struct drm_device *drm, const struct drm_format_info *info, const struct drm_mode_fb_cmd2 *mode_cmd,