aboutsummaryrefslogtreecommitdiff
path: root/include/linux/compiler.h
diff options
context:
space:
mode:
authorMarek BehĂșn <marek.behun@nic.cz>2021-05-20 13:23:53 +0200
committerTom Rini <trini@konsulko.com>2021-05-24 14:21:30 -0400
commit998929b535cb5503d0183fec9c9371b56bb89aca (patch)
tree32cd64ad1e2b08ff1581d92c3a1084ac51df66f7 /include/linux/compiler.h
parent236f2ec43266cb4dabd320381498df6c9d80c82d (diff)
downloadu-boot-998929b535cb5503d0183fec9c9371b56bb89aca.zip
u-boot-998929b535cb5503d0183fec9c9371b56bb89aca.tar.gz
u-boot-998929b535cb5503d0183fec9c9371b56bb89aca.tar.bz2
compiler.h: align the __ADDRESSABLE macro with Linux' version
Use UNIQUE_ID in the __ADDRESSABLE macro. Signed-off-by: Marek BehĂșn <marek.behun@nic.cz> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/linux/compiler.h')
-rw-r--r--include/linux/compiler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h
index 82a8a4e..98dd3fc 100644
--- a/include/linux/compiler.h
+++ b/include/linux/compiler.h
@@ -295,7 +295,7 @@ unsigned long read_word_at_a_time(const void *addr)
*/
#define __ADDRESSABLE(sym) \
static void * __section(".discard.addressable") __used \
- __PASTE(__addressable_##sym, __LINE__) = (void *)&sym;
+ __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)&sym;
/**
* offset_to_ptr - convert a relative memory offset to an absolute pointer