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:
parent
724d8847ed
commit
9e69a04222
|
@ -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])
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue