include/linux/fb.h: Add a missing include for 'list.h'
authorOtavio Salvador <otavio@ossystems.com.br>
Thu, 3 Oct 2013 11:04:39 +0000 (08:04 -0300)
committerTom Rini <trini@ti.com>
Mon, 7 Oct 2013 12:21:13 +0000 (08:21 -0400)
The modelist data uses the list definition but the 'list.h' header
were not being included. The build failure is bellow:

,----
| In file included from yyyy.c:16:0:
| .../u-boot/include/linux/fb.h:503:19: error: field 'modelist' has incomplete type
|   struct list_head modelist; /* mode list */
|                    ^
| make[1]: *** [yyyy.o] Error 1
| make[1]: Leaving directory `.../u-boot/board/xxx/yyyy'
| make: *** [board/xxx/yyyy/libyyyy.o] Error 2
`----

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
include/linux/fb.h

index 3858f8f80f6b6cc17ea62976a78d11578025bcf8..111372c9fd08f9d0817a84e95fdae9b84fcda208 100644 (file)
@@ -2,6 +2,7 @@
 #define _LINUX_FB_H
 
 #include <linux/types.h>
+#include <linux/list.h>
 
 /* Definitions of frame buffers                                                */