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> Applied-Upstream: v2015.06.0, commit:9e69a04222ee88c51bd5ca4f802b5fa5ad42b0f8
This commit is contained in:
parent
532059b525
commit
d9ada004ea
|
@ -1,6 +1,8 @@
|
||||||
#ifndef _FDT_H
|
#ifndef _FDT_H
|
||||||
#define _FDT_H
|
#define _FDT_H
|
||||||
|
|
||||||
|
#include <linux/types.h>
|
||||||
|
|
||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
|
|
||||||
#define _B(n) ((unsigned long long)((uint8_t *)&x)[n])
|
#define _B(n) ((unsigned long long)((uint8_t *)&x)[n])
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
|
|
||||||
#include <fdt.h>
|
#include <fdt.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <linux/types.h>
|
||||||
|
#include <linux/list.h>
|
||||||
#include <asm/byteorder.h>
|
#include <asm/byteorder.h>
|
||||||
|
|
||||||
/* Default string compare functions */
|
/* Default string compare functions */
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
#ifndef __STATE_H
|
#ifndef __STATE_H
|
||||||
#define __STATE_H
|
#define __STATE_H
|
||||||
|
|
||||||
|
#include <of.h>
|
||||||
|
|
||||||
struct state;
|
struct state;
|
||||||
|
|
||||||
int state_backend_dtb_file(struct state *state, const char *path);
|
int state_backend_dtb_file(struct state *state, const char *path);
|
||||||
|
|
Loading…
Reference in New Issue