]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/shmem-helper: Revert accidental non-GPL export
authorAsahi Lina <lina@asahilina.net>
Mon, 27 Feb 2023 09:04:21 +0000 (18:04 +0900)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 28 Feb 2023 08:45:56 +0000 (09:45 +0100)
The referenced commit added a wrapper for drm_gem_shmem_get_pages_sgt(),
but in the process it accidentally changed the export type from GPL to
non-GPL. Switch it back to GPL.

Reported-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Fixes: ddddedaa0db9 ("drm/shmem-helper: Fix locking for drm_gem_shmem_get_pages_sgt()")
Signed-off-by: Asahi Lina <lina@asahilina.net>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20230227-shmem-export-fix-v1-1-8880b2c25e81@asahilina.net
drivers/gpu/drm/drm_gem_shmem_helper.c

index 259176d78f3b9ff02f13640fdf5f2290c4f5ee7f..b05dc62418f7dcaa0c66d49acf6363c8468e9e94 100644 (file)
@@ -744,7 +744,7 @@ struct sg_table *drm_gem_shmem_get_pages_sgt(struct drm_gem_shmem_object *shmem)
 
        return sgt;
 }
-EXPORT_SYMBOL(drm_gem_shmem_get_pages_sgt);
+EXPORT_SYMBOL_GPL(drm_gem_shmem_get_pages_sgt);
 
 /**
  * drm_gem_shmem_prime_import_sg_table - Produce a shmem GEM object from