aboutsummaryrefslogtreecommitdiff
path: root/hdata/test
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2019-11-13 17:26:14 +1100
committerOliver O'Halloran <oohall@gmail.com>2019-11-14 16:10:18 +1100
commit0b8f5ea3aa4fd10aa0bacdef4863fb344246e585 (patch)
treef894290f3a5ddd93ae6b73e28ce89dad562c3776 /hdata/test
parentd6fc2fb3afe7ef56415225de2114bd7ccd285d31 (diff)
downloadskiboot-0b8f5ea3aa4fd10aa0bacdef4863fb344246e585.zip
skiboot-0b8f5ea3aa4fd10aa0bacdef4863fb344246e585.tar.gz
skiboot-0b8f5ea3aa4fd10aa0bacdef4863fb344246e585.tar.bz2
tests: Squash __attrconst related warnings
Currently we get a warning because in some of the test stub functions: [ HOSTCC ] hw/test/phys-map-test.c In file included from hw/test/phys-map-test.c:8: hw/test/../../core/test/stubs.c:78:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes] 78 | { | ^ I'm pretty sure we added that __attrconst to squash a warning with an earlier GCC, then they went an added a warning for the "fix." I love compilers. Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'hdata/test')
-rw-r--r--hdata/test/stubs.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/hdata/test/stubs.c b/hdata/test/stubs.c
index 1d924b6..107f948 100644
--- a/hdata/test/stubs.c
+++ b/hdata/test/stubs.c
@@ -105,8 +105,7 @@ struct cpu_job *__cpu_queue_job(struct cpu_thread *cpu,
}
void cpu_wait_job(struct cpu_job *job, bool free_it);
-
-void __attrconst cpu_wait_job(struct cpu_job *job, bool free_it)
+void cpu_wait_job(struct cpu_job *job, bool free_it)
{
(void)job;
(void)free_it;
@@ -114,8 +113,7 @@ void __attrconst cpu_wait_job(struct cpu_job *job, bool free_it)
}
void cpu_process_local_jobs(void);
-
-void __attrconst cpu_process_local_jobs(void)
+void cpu_process_local_jobs(void)
{
}