mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-12-19 16:31:27 +01:00
m68k: drop pointless #if 0 block
The way DECLARE_GLOBAL_DATA_PTR is used, the stuff under #if 0 can never compile as you cannot have a non-constant initializer at global scope (and one would get linker errors as well because the 'gd' symbol would be defined in multiple TUs). Signed-off-by: Rasmus Villemoes <ravi@prevas.dk> Acked-by: Angelo Dureghello <angelo@kernel-space.org>
This commit is contained in:
parent
e66d7fc089
commit
a6f3d70a6b
@ -32,11 +32,6 @@ struct arch_global_data {
|
||||
|
||||
#include <asm-generic/global_data.h>
|
||||
|
||||
#if 0
|
||||
extern gd_t *global_data;
|
||||
#define DECLARE_GLOBAL_DATA_PTR gd_t *gd = global_data
|
||||
#else
|
||||
#define DECLARE_GLOBAL_DATA_PTR register gd_t *gd asm ("d7")
|
||||
#endif
|
||||
|
||||
#endif /* __ASM_GBL_DATA_H */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user