drm/ttm: use gfp_t instead of int for flags.
authorDave Airlie <airlied@redhat.com>
Tue, 22 Jul 2014 02:55:39 +0000 (12:55 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 22 Jul 2014 02:55:39 +0000 (12:55 +1000)
fixes sparse warning.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ttm/ttm_page_alloc.c

index 863bef9..beb8e75 100644 (file)
@@ -790,7 +790,7 @@ static int ttm_get_pages(struct page **pages, unsigned npages, int flags,
        return 0;
 }
 
-static void ttm_page_pool_init_locked(struct ttm_page_pool *pool, int flags,
+static void ttm_page_pool_init_locked(struct ttm_page_pool *pool, gfp_t flags,
                char *name)
 {
        spin_lock_init(&pool->lock);