Skip to content

Commit

Permalink
drm/ttm: declare 'struct device' in ttm_page_alloc.h
Browse files Browse the repository at this point in the history
Declare 'struct device' explicitly in ttm_page_alloc.h as this file
does not include any file declaring it. This removes the following
warning:

	warning: 'struct device' declared inside parameter list

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
  • Loading branch information
Alexandre Courbot authored and Thomas Hellstrom committed Feb 18, 2014
1 parent c2288d4 commit 728a0cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/drm/ttm/ttm_page_alloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
#include <drm/ttm/ttm_bo_driver.h>
#include <drm/ttm/ttm_memory.h>

struct device;

/**
* Initialize pool allocator.
*/
Expand Down

0 comments on commit 728a0cd

Please sign in to comment.