aboutsummaryrefslogtreecommitdiff
path: root/include/lib/bakery_lock.h
diff options
context:
space:
mode:
authorSoren Brinkmann <soren.brinkmann@xilinx.com>2016-01-14 10:11:05 -0800
committerSoren Brinkmann <soren.brinkmann@xilinx.com>2016-01-14 10:55:17 -0800
commit65cd299f52450cc93a6986c7a912a843a2c4f6da (patch)
tree09564e001013dc3206a63d448ebeac449edfabf8 /include/lib/bakery_lock.h
parent70ecb564fd9f9acee231631757ce17c19c66d610 (diff)
downloadtrusted-firmware-a-65cd299f52450cc93a6986c7a912a843a2c4f6da.tar.gz
Remove direct usage of __attribute__((foo))
Migrate all direct usage of __attribute__ to usage of their corresponding macros from cdefs.h. e.g.: - __attribute__((unused)) -> __unused Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Diffstat (limited to 'include/lib/bakery_lock.h')
-rw-r--r--include/lib/bakery_lock.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/lib/bakery_lock.h b/include/lib/bakery_lock.h
index 86adb9cb14..8a53891742 100644
--- a/include/lib/bakery_lock.h
+++ b/include/lib/bakery_lock.h
@@ -100,8 +100,7 @@ inline void bakery_lock_init(bakery_lock_t *bakery) {}
void bakery_lock_get(bakery_lock_t *bakery);
void bakery_lock_release(bakery_lock_t *bakery);
-#define DEFINE_BAKERY_LOCK(_name) bakery_lock_t _name \
- __attribute__ ((section("bakery_lock")))
+#define DEFINE_BAKERY_LOCK(_name) bakery_lock_t _name __section("bakery_lock")
#define DECLARE_BAKERY_LOCK(_name) extern bakery_lock_t _name