projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2288d4
)
drm/ttm: declare 'struct device' in ttm_page_alloc.h
author
Alexandre Courbot
<acourbot@nvidia.com>
Sun, 9 Feb 2014 09:43:18 +0000
(18:43 +0900)
committer
Thomas Hellstrom
<thellstrom@vmware.com>
Tue, 18 Feb 2014 13:01:48 +0000
(14:01 +0100)
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>
include/drm/ttm/ttm_page_alloc.h
patch
|
blob
|
history
diff --git
a/include/drm/ttm/ttm_page_alloc.h
b/include/drm/ttm/ttm_page_alloc.h
index d1f61bfe0ebe49841cc5f249c8307b75973b98a7..49a828425fa2d984615b6352812681a455d7d99b 100644
(file)
--- a/
include/drm/ttm/ttm_page_alloc.h
+++ b/
include/drm/ttm/ttm_page_alloc.h
@@
-29,6
+29,8
@@
#include <drm/ttm/ttm_bo_driver.h>
#include <drm/ttm/ttm_memory.h>
+struct device;
+
/**
* Initialize pool allocator.
*/