drm/ttm: declare 'struct device' in ttm_page_alloc.h
Subsystems (2)
PATCH 1/1 drm/ttm: declare 'struct device' in ttm_page_alloc.h
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
---
This warning was visible when compiling Nouveau on -next today.
include/drm/ttm/ttm_page_alloc.h | 2 ++ 1 file changed, 2 insertions(+)
include/drm/ttm/ttm_page_alloc.h +2 -0
@@ -29,6 +29,8 @@#include <drm/ttm/ttm_bo_driver.h> #include <drm/ttm/ttm_memory.h> +struct device ; +/** * Initialize pool allocator. */
Signature · 1 line
1.8.5.4
Quoted 4 lines · Alexandre Courbot
Declare 'struct device' explicitly in
ttm_page_alloc.has this file does not include any file declaring it. This removes the following warning:
Quoted 8 lines
warning: 'struct device' declared inside parameter list
Signed-off-by Alexandre Courbot <[email protected]>---
This warning was visible when compiling Nouveau on -next today.include/drm/ttm/ttm_page_alloc.h | 2 ++ 1 file changed, 2 insertions(+)
I don't think I've seen this on x86, but I've certainly encountered the same warning when building nouveau on ARM, so:
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Ping, David?
Quoted 18 lines · Thierry Reding
Quoted 4 lines · Alexandre Courbot
Declare 'struct device' explicitly in
ttm_page_alloc.has this file does not include any file declaring it. This removes the following warning:Quoted 8 lines
warning: 'struct device' declared inside parameter list
Signed-off-by Alexandre Courbot <[email protected]>---
This warning was visible when compiling Nouveau on -next today.include/drm/ttm/ttm_page_alloc.h | 2 ++ 1 file changed, 2 insertions(+)I don't think I've seen this on x86, but I've certainly encountered the same warning when building nouveau on ARM, so:
Reviewed-by Thierry Reding <[email protected]>