drm/ttm: Fix build failure due to missing struct page
authorMartin Michlmayr <tbm@cyrius.com>
Thu, 19 Nov 2009 16:29:45 +0000 (16:29 +0000)
committerDave Airlie <airlied@redhat.com>
Thu, 3 Dec 2009 23:11:16 +0000 (09:11 +1000)
commitc3a73ba13bac7fd96030f39202b2d37fb19c46a6
treee91c424da8f71a5e5923ff4175c3b15cf4543b65
parent46a79fa08a9a890a12cf9ec3ce51800911a907bf
drm/ttm: Fix build failure due to missing struct page

drm/ttm fails to build on MIPS because "struct page" is not known:
| In file included from drivers/gpu/drm/ttm/ttm_memory.c:28:
| include/drm/ttm/ttm_memory.h:154: warning: 'struct page' declared inside parameter list
| include/drm/ttm/ttm_memory.h:154: warning: its scope is only this definition or declaration, which is probably not what you want
| include/drm/ttm/ttm_memory.h:156: warning: 'struct page' declared inside parameter list
| drivers/gpu/drm/ttm/ttm_memory.c:540: error: conflicting types for 'ttm_mem_global_alloc_page'
| include/drm/ttm/ttm_memory.h:154: error: previous declaration of 'ttm_mem_global_alloc_page' was here
| drivers/gpu/drm/ttm/ttm_memory.c:561: error: conflicting types for 'ttm_mem_global_free_page'
| include/drm/ttm/ttm_memory.h:156: error: previous declaration of 'ttm_mem_global_free_page' was here

Signed-off-by: Martin Michlmayr <tbm@cyrius.com>
Cc: stable@kernel.org
Acked-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
include/drm/ttm/ttm_memory.h