summaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2020-10-20 20:10:39 +0200
committerChristian König <christian.koenig@amd.com>2020-10-26 14:45:30 +0100
commit230c079fdcf45efacd316a76c3132b9f42cd3565 (patch)
tree43be19571786b4277d06a513fcd7301e641f0e1b /include/drm
parent05f8d25097050241d55c19a67c2a7bc7bbc428a9 (diff)
downloadlinux-230c079fdcf45efacd316a76c3132b9f42cd3565.tar.gz
linux-230c079fdcf45efacd316a76c3132b9f42cd3565.tar.bz2
linux-230c079fdcf45efacd316a76c3132b9f42cd3565.zip
drm/ttm: make num_pages uint32_t
We can still allocate 16TiB with that. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Dave Airlie <airlied@redhat.com> Link: https://patchwork.freedesktop.org/patch/396946/
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/ttm/ttm_tt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/ttm/ttm_tt.h b/include/drm/ttm/ttm_tt.h
index e3e60c1da754..931a31355870 100644
--- a/include/drm/ttm/ttm_tt.h
+++ b/include/drm/ttm/ttm_tt.h
@@ -61,7 +61,7 @@ struct ttm_operation_ctx;
struct ttm_tt {
struct page **pages;
uint32_t page_flags;
- unsigned long num_pages;
+ uint32_t num_pages;
struct sg_table *sg; /* for SG objects via dma-buf */
struct file *swap_storage;
enum ttm_caching caching;