diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-07-18 13:44:42 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-07-19 15:49:39 +1000 |
commit | dc2f7ebfdf889ea97857fa32405040ea845505bf (patch) | |
tree | 4763ce37ab6fc9a17eade3640d7b743ba41f8a53 /core | |
parent | 36698d130b522d99437c07b24124ca30a94deea8 (diff) | |
download | blackbird-skiboot-dc2f7ebfdf889ea97857fa32405040ea845505bf.tar.gz blackbird-skiboot-dc2f7ebfdf889ea97857fa32405040ea845505bf.zip |
attrconst for tests
Fixes build warnings when running with higher optimization than -O0
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/test/run-mem_region_init.c | 2 | ||||
-rw-r--r-- | core/test/run-mem_region_release_unused.c | 2 | ||||
-rw-r--r-- | 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 17200c53..ee7e189c 100644 --- a/core/test/run-mem_region_init.c +++ b/core/test/run-mem_region_init.c @@ -105,7 +105,7 @@ static void add_mem_node(uint64_t start, uint64_t len) free(name); } -void add_chip_dev_associativity(struct dt_node *dev __attribute__((unused))) +void __attrconst 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 fca5278c..886585b2 100644 --- a/core/test/run-mem_region_release_unused.c +++ b/core/test/run-mem_region_release_unused.c @@ -99,7 +99,7 @@ static void add_mem_node(uint64_t start, uint64_t len) free(name); } -void add_chip_dev_associativity(struct dt_node *dev __attribute__((unused))) +void __attrconst 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 82ff89a1..2a9f6411 100644 --- a/core/test/run-mem_region_release_unused_noalloc.c +++ b/core/test/run-mem_region_release_unused_noalloc.c @@ -99,7 +99,7 @@ static void add_mem_node(uint64_t start, uint64_t len) free(name); } -void add_chip_dev_associativity(struct dt_node *dev __attribute__((unused))) +void __attrconst add_chip_dev_associativity(struct dt_node *dev __attribute__((unused))) { } |