summaryrefslogtreecommitdiff
path: root/drivers
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 /drivers
parent70ecb564fd9f9acee231631757ce17c19c66d610 (diff)
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 'drivers')
-rw-r--r--drivers/io/io_fip.c2
-rw-r--r--drivers/io/io_memmap.c2
-rw-r--r--drivers/io/io_semihosting.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/io/io_fip.c b/drivers/io/io_fip.c
index d2914238..99cf15b9 100644
--- a/drivers/io/io_fip.c
+++ b/drivers/io/io_fip.c
@@ -128,7 +128,7 @@ static const io_dev_info_t fip_dev_info = {
/* Open a connection to the FIP device */
-static int fip_dev_open(const uintptr_t dev_spec __attribute__((unused)),
+static int fip_dev_open(const uintptr_t dev_spec __unused,
io_dev_info_t **dev_info)
{
assert(dev_info != NULL);
diff --git a/drivers/io/io_memmap.c b/drivers/io/io_memmap.c
index d45107e5..ff4efa89 100644
--- a/drivers/io/io_memmap.c
+++ b/drivers/io/io_memmap.c
@@ -95,7 +95,7 @@ static const io_dev_info_t memmap_dev_info = {
/* Open a connection to the memmap device */
-static int memmap_dev_open(const uintptr_t dev_spec __attribute__((unused)),
+static int memmap_dev_open(const uintptr_t dev_spec __unused,
io_dev_info_t **dev_info)
{
assert(dev_info != NULL);
diff --git a/drivers/io/io_semihosting.c b/drivers/io/io_semihosting.c
index 63d0f68e..30ca99cb 100644
--- a/drivers/io/io_semihosting.c
+++ b/drivers/io/io_semihosting.c
@@ -91,7 +91,7 @@ static int sh_dev_open(const uintptr_t dev_spec __unused,
/* Open a file on the semi-hosting device */
-static int sh_file_open(io_dev_info_t *dev_info __attribute__((unused)),
+static int sh_file_open(io_dev_info_t *dev_info __unused,
const uintptr_t spec, io_entity_t *entity)
{
int result = -ENOENT;