Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/ttm: Include <linux/export.h>

Fix the compile-time warnings

drivers/gpu/drm/ttm/tests/ttm_kunit_helpers.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
drivers/gpu/drm/ttm/tests/ttm_mock_manager.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
drivers/gpu/drm/ttm/ttm_agp_backend.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
drivers/gpu/drm/ttm/ttm_backup.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
drivers/gpu/drm/ttm/ttm_bo.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
drivers/gpu/drm/ttm/ttm_bo_util.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
drivers/gpu/drm/ttm/ttm_bo_vm.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
drivers/gpu/drm/ttm/ttm_device.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
drivers/gpu/drm/ttm/ttm_execbuf_util.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
drivers/gpu/drm/ttm/ttm_pool.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
drivers/gpu/drm/ttm/ttm_range_manager.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
drivers/gpu/drm/ttm/ttm_resource.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
drivers/gpu/drm/ttm/ttm_tt.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Fixes: a934a57a42f6 ("scripts/misc-check: check missing #include <linux/export.h> when W=1")
Reviewed-by: André Almeida <andrealmeid@igalia.com>
Cc: Masahiro Yamada <masahiroy@kernel.org>
Cc: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/20250612121633.229222-10-tzimmermann@suse.de

+22
+3
drivers/gpu/drm/ttm/tests/ttm_kunit_helpers.c
··· 2 2 /* 3 3 * Copyright © 2023 Intel Corporation 4 4 */ 5 + 6 + #include <linux/export.h> 7 + 5 8 #include <drm/ttm/ttm_tt.h> 6 9 7 10 #include "ttm_kunit_helpers.h"
+3
drivers/gpu/drm/ttm/tests/ttm_mock_manager.c
··· 2 2 /* 3 3 * Copyright © 2023 Intel Corporation 4 4 */ 5 + 6 + #include <linux/export.h> 7 + 5 8 #include <drm/ttm/ttm_resource.h> 6 9 #include <drm/ttm/ttm_device.h> 7 10 #include <drm/ttm/ttm_placement.h>
+1
drivers/gpu/drm/ttm/ttm_agp_backend.c
··· 36 36 #include <drm/ttm/ttm_tt.h> 37 37 #include <drm/ttm/ttm_resource.h> 38 38 #include <linux/agp_backend.h> 39 + #include <linux/export.h> 39 40 #include <linux/module.h> 40 41 #include <linux/slab.h> 41 42 #include <linux/io.h>
+2
drivers/gpu/drm/ttm/ttm_backup.c
··· 4 4 */ 5 5 6 6 #include <drm/ttm/ttm_backup.h> 7 + 8 + #include <linux/export.h> 7 9 #include <linux/page-flags.h> 8 10 #include <linux/swap.h> 9 11
+1
drivers/gpu/drm/ttm/ttm_bo.c
··· 35 35 #include <drm/ttm/ttm_placement.h> 36 36 #include <drm/ttm/ttm_tt.h> 37 37 38 + #include <linux/export.h> 38 39 #include <linux/jiffies.h> 39 40 #include <linux/slab.h> 40 41 #include <linux/sched.h>
+2
drivers/gpu/drm/ttm/ttm_bo_util.c
··· 28 28 /* 29 29 * Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com> 30 30 */ 31 + 32 + #include <linux/export.h> 31 33 #include <linux/swap.h> 32 34 #include <linux/vmalloc.h> 33 35
+2
drivers/gpu/drm/ttm/ttm_bo_vm.c
··· 31 31 32 32 #define pr_fmt(fmt) "[TTM] " fmt 33 33 34 + #include <linux/export.h> 35 + 34 36 #include <drm/ttm/ttm_bo.h> 35 37 #include <drm/ttm/ttm_placement.h> 36 38 #include <drm/ttm/ttm_tt.h>
+1
drivers/gpu/drm/ttm/ttm_device.c
··· 28 28 #define pr_fmt(fmt) "[TTM DEVICE] " fmt 29 29 30 30 #include <linux/debugfs.h> 31 + #include <linux/export.h> 31 32 #include <linux/mm.h> 32 33 33 34 #include <drm/ttm/ttm_bo.h>
+2
drivers/gpu/drm/ttm/ttm_execbuf_util.c
··· 26 26 * 27 27 **************************************************************************/ 28 28 29 + #include <linux/export.h> 30 + 29 31 #include <drm/ttm/ttm_execbuf_util.h> 30 32 #include <drm/ttm/ttm_bo.h> 31 33
+1
drivers/gpu/drm/ttm/ttm_pool.c
··· 31 31 * cause they are rather slow compared to alloc_pages+map. 32 32 */ 33 33 34 + #include <linux/export.h> 34 35 #include <linux/module.h> 35 36 #include <linux/dma-mapping.h> 36 37 #include <linux/debugfs.h>
+2
drivers/gpu/drm/ttm/ttm_range_manager.c
··· 34 34 #include <drm/ttm/ttm_range_manager.h> 35 35 #include <drm/ttm/ttm_bo.h> 36 36 #include <drm/drm_mm.h> 37 + 38 + #include <linux/export.h> 37 39 #include <linux/slab.h> 38 40 #include <linux/spinlock.h> 39 41
+1
drivers/gpu/drm/ttm/ttm_resource.c
··· 23 23 */ 24 24 25 25 #include <linux/debugfs.h> 26 + #include <linux/export.h> 26 27 #include <linux/io-mapping.h> 27 28 #include <linux/iosys-map.h> 28 29 #include <linux/scatterlist.h>
+1
drivers/gpu/drm/ttm/ttm_tt.c
··· 33 33 34 34 #include <linux/cc_platform.h> 35 35 #include <linux/debugfs.h> 36 + #include <linux/export.h> 36 37 #include <linux/file.h> 37 38 #include <linux/module.h> 38 39 #include <linux/sched.h>