summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Villemoes <ravi@prevas.dk>2025-06-04 21:56:06 +0200
committerTom Rini <trini@konsulko.com>2025-06-13 16:57:15 -0600
commita6f3d70a6bc2f99ac86f47bc5697d7e6e36ea7b8 (patch)
treed9f39419341d06d1ac0d25bd44b2849edede7244
parente66d7fc089912a8f84bbbfa4a69eb5c0ebaa1e1d (diff)
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>
-rw-r--r--arch/m68k/include/asm/global_data.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/m68k/include/asm/global_data.h b/arch/m68k/include/asm/global_data.h
index 29b46645676..aea2ccabe08 100644
--- a/arch/m68k/include/asm/global_data.h
+++ b/arch/m68k/include/asm/global_data.h
@@ -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 */