summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-01-03 12:58:23 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2022-01-05 08:56:10 +0100
commit8a283531bc2851c2fa4cd46d87306232327f38eb (patch)
tree4cb6c5ca39b290e313f32591e6ed11c5ff2140f4 /include
parentbec7cde8fb6f027d82cd4d27dbae445e6e59af2d (diff)
downloadbarebox-8a283531bc2851c2fa4cd46d87306232327f38eb.tar.gz
barebox-8a283531bc2851c2fa4cd46d87306232327f38eb.tar.xz
include: <linux/compiler.h>: delete __ADDRESSABLE macro
The macro is non-functional, because it requires linker script changes. Instead of doing those and risking breakage, just drop it. These can be done when the macro is actually needed. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220103115824.1725086-4-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/compiler.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h
index f61a458414..6654c164f5 100644
--- a/include/linux/compiler.h
+++ b/include/linux/compiler.h
@@ -276,16 +276,6 @@ unsigned long read_word_at_a_time(const void *addr)
#endif /* __KERNEL__ */
-/*
- * Force the compiler to emit 'sym' as a symbol, so that we can reference
- * it from inline assembler. Necessary in case 'sym' could be inlined
- * otherwise, or eliminated entirely due to lack of references that are
- * visible to the compiler.
- */
-#define __ADDRESSABLE(sym) \
- static void * __attribute__((section(".discard.addressable"), used)) \
- __PASTE(__addressable_##sym, __LINE__) = (void *)&sym;
-
/**
* offset_to_ptr - convert a relative memory offset to an absolute pointer
* @off: the address of the 32-bit offset value