9
0
Fork 0

include: add includes includes to make fdt.h, of.h and state.h self contained

Otherwise compilation may fail with:

include/fdt.h:11:15: error: unknown type name 'uint64_t'
 static inline uint64_t fdt64_to_cpu(uint64_t x)

include/of.h:22:19: error: field 'list' has incomplete type
  struct list_head list;

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Marc Kleine-Budde 2015-04-15 22:44:00 +02:00 committed by Sascha Hauer
parent 724d8847ed
commit 9e69a04222
3 changed files with 6 additions and 0 deletions

View File

@ -1,6 +1,8 @@
#ifndef _FDT_H
#define _FDT_H
#include <linux/types.h>
#ifndef __ASSEMBLY__
#define _B(n) ((unsigned long long)((uint8_t *)&x)[n])

View File

@ -3,6 +3,8 @@
#include <fdt.h>
#include <errno.h>
#include <linux/types.h>
#include <linux/list.h>
#include <asm/byteorder.h>
/* Default string compare functions */

View File

@ -1,6 +1,8 @@
#ifndef __STATE_H
#define __STATE_H
#include <of.h>
struct state;
int state_backend_dtb_file(struct state *state, const char *path);