git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
236f2ec
)
compiler.h: align the __ADDRESSABLE macro with Linux' version
author
Marek Behún
<marek.behun@nic.cz>
Thu, 20 May 2021 11:23:53 +0000
(13:23 +0200)
committer
Tom Rini
<trini@konsulko.com>
Mon, 24 May 2021 18:21:30 +0000
(14:21 -0400)
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>
include/linux/compiler.h
patch
|
blob
|
history
diff --git
a/include/linux/compiler.h
b/include/linux/compiler.h
index
82a8a4e
..
98dd3fc
100644
(file)
--- 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