diff mbox

[U-Boot,v3,2/3] include/linux/fb.h: Add a missing include for 'list.h'

Message ID 1380798280-3449-3-git-send-email-otavio@ossystems.com.br
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Otavio Salvador Oct. 3, 2013, 11:04 a.m. UTC
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>
---
Changes in v3: None
Changes in v2:
- rework commitlog (Fabio)

 include/linux/fb.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Tom Rini Oct. 7, 2013, 8:04 p.m. UTC | #1
On Thu, Oct 03, 2013 at 08:04:39AM -0300, Otavio Salvador wrote:

> 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>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/include/linux/fb.h b/include/linux/fb.h
index 3858f8f..111372c 100644
--- a/include/linux/fb.h
+++ b/include/linux/fb.h
@@ -2,6 +2,7 @@ 
 #define _LINUX_FB_H
 
 #include <linux/types.h>
+#include <linux/list.h>
 
 /* Definitions of frame buffers						*/