ttm_pool_mgr_init() does not use num_pages argument in any way. Remove
it.
Cc: Thomas Hellström <[email protected]>
Cc: Christian König <[email protected]>
Signed-off-by: Michał Grzelak <[email protected]>
---
drivers/gpu/drm/ttm/ttm_device.c | 2 +-
drivers/gpu/drm/ttm/ttm_pool.c | 4 +---
include/drm/ttm/ttm_pool.h | 2 +-
3 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/ttm/ttm_device.c b/drivers/gpu/drm/ttm/ttm_device.c
index d3bfb9a696a74..4a9786ffa5fe2 100644
--- a/drivers/gpu/drm/ttm/ttm_device.c
+++ b/drivers/gpu/drm/ttm/ttm_device.c
@@ -96,7 +96,7 @@ static int ttm_global_init(void)
>> PAGE_SHIFT;
num_dma32 = min(num_dma32, 2UL << (30 - PAGE_SHIFT));
- ttm_pool_mgr_init(num_pages);
+ ttm_pool_mgr_init();
ttm_tt_mgr_init(num_pages, num_dma32);
glob->dummy_read_page = alloc_page(__GFP_ZERO | GFP_DMA32 |
diff --git a/drivers/gpu/drm/ttm/ttm_pool.c b/drivers/gpu/drm/ttm/ttm_pool.c
index 1bf37023fed66..2f6c666868d5f 100644
--- a/drivers/gpu/drm/ttm/ttm_pool.c
+++ b/drivers/gpu/drm/ttm/ttm_pool.c
@@ -1485,11 +1485,9 @@ static inline u64 ttm_get_node_memory_size(int nid)
/**
* ttm_pool_mgr_init - Initialize globals
*
- * @num_pages: default number of pages
- *
* Initialize the global locks and lists for the MM shrinker.
*/
-int ttm_pool_mgr_init(unsigned long num_pages)
+int ttm_pool_mgr_init(void)
{
unsigned int i;
diff --git a/include/drm/ttm/ttm_pool.h b/include/drm/ttm/ttm_pool.h
index 26ee592e19949..bb6347e5b2970 100644
--- a/include/drm/ttm/ttm_pool.h
+++ b/include/drm/ttm/ttm_pool.h
@@ -94,7 +94,7 @@ long ttm_pool_backup(struct ttm_pool *pool, struct ttm_tt
*ttm,
int ttm_pool_restore_and_alloc(struct ttm_pool *pool, struct ttm_tt *tt,
const struct ttm_operation_ctx *ctx);
-int ttm_pool_mgr_init(unsigned long num_pages);
+int ttm_pool_mgr_init(void);
void ttm_pool_mgr_fini(void);
#endif
--
2.45.2