projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a212e5
)
global_data.h: make <asm-generic/global_data.h> self-contained
author
Masahiro Yamada
<masahiroy@kernel.org>
Mon, 24 Feb 2020 17:22:27 +0000
(
02:22
+0900)
committer
Tom Rini
<trini@konsulko.com>
Mon, 16 Mar 2020 16:49:09 +0000
(12:49 -0400)
The compiler never knows what 'bd_t' is without including <asm/u-boot.h>.
By changing it to (struct bd_info), the compiler learns it is struct.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
include/asm-generic/global_data.h
patch
|
blob
|
history
diff --git
a/include/asm-generic/global_data.h
b/include/asm-generic/global_data.h
index 5d027329fe0f048c6b9ba88b84510cfcbe734872..d9e220cfe3582eaf2bca571495cb7dd3ac0d13ba 100644
(file)
--- a/
include/asm-generic/global_data.h
+++ b/
include/asm-generic/global_data.h
@@
-25,7
+25,7
@@
#include <linux/list.h>
typedef struct global_data {
-
bd_t
*bd;
+
struct bd_info
*bd;
unsigned long flags;
unsigned int baudrate;
unsigned long cpu_clk; /* CPU clock in Hz! */