[Skiboot] [PATCH 2/7] core/test/run_mem_region: fix GCC8 compile error
Stewart Smith
stewart at linux.ibm.com
Tue May 29 16:18:05 AEST 2018
error: ‘const’ attribute on function returning ‘void’ [-Werror=attributes]
Fix by not putting the const attribute in the stub
Signed-off-by: Stewart Smith <stewart at linux.ibm.com>
---
core/test/run-mem_region_init.c | 2 +-
core/test/run-mem_region_release_unused.c | 2 +-
core/test/run-mem_region_release_unused_noalloc.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/core/test/run-mem_region_init.c b/core/test/run-mem_region_init.c
index d4265af72061..f1028da32703 100644
--- a/core/test/run-mem_region_init.c
+++ b/core/test/run-mem_region_init.c
@@ -106,7 +106,7 @@ static void add_mem_node(uint64_t start, uint64_t len)
free(name);
}
-void __attrconst add_chip_dev_associativity(struct dt_node *dev __attribute__((unused)))
+void add_chip_dev_associativity(struct dt_node *dev __attribute__((unused)))
{
}
diff --git a/core/test/run-mem_region_release_unused.c b/core/test/run-mem_region_release_unused.c
index 4941453e9b8c..fdd273a7f55b 100644
--- a/core/test/run-mem_region_release_unused.c
+++ b/core/test/run-mem_region_release_unused.c
@@ -100,7 +100,7 @@ static void add_mem_node(uint64_t start, uint64_t len)
free(name);
}
-void __attrconst add_chip_dev_associativity(struct dt_node *dev __attribute__((unused)))
+void add_chip_dev_associativity(struct dt_node *dev __attribute__((unused)))
{
}
diff --git a/core/test/run-mem_region_release_unused_noalloc.c b/core/test/run-mem_region_release_unused_noalloc.c
index 1ad4abb07800..6ae79591f08e 100644
--- a/core/test/run-mem_region_release_unused_noalloc.c
+++ b/core/test/run-mem_region_release_unused_noalloc.c
@@ -100,7 +100,7 @@ static void add_mem_node(uint64_t start, uint64_t len)
free(name);
}
-void __attrconst add_chip_dev_associativity(struct dt_node *dev __attribute__((unused)))
+void add_chip_dev_associativity(struct dt_node *dev __attribute__((unused)))
{
}
--
2.17.0
More information about the Skiboot
mailing list