Skip to content

Commit 2833b9c

Browse files
author
Axel Heider
committed
remove attribute in prototype
Avoid Clang complaining about different attributes. Signed-off-by: Axel Heider <axel.heider@codasip.com>
1 parent fcabdef commit 2833b9c

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

libsel4bench/include/sel4bench/sel4bench.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ static_assert(ARRAY_SIZE(GENERIC_EVENTS) == ARRAY_SIZE(GENERIC_EVENT_NAMES),
7575
* Starts the cycle counter, which is guaranteed to run until
7676
* `sel4bench_destroy()` is called.
7777
*/
78-
static UNUSED void sel4bench_init();
78+
static void sel4bench_init();
7979

8080
/**
8181
* Tear down the sel4bench library. Nothing else is guaranteed to work, and may
8282
* produce strange failures, after you do this.
8383
*/
84-
static UNUSED void sel4bench_destroy();
84+
static void sel4bench_destroy();
8585

8686
/**
8787
* Query the cycle counter. If said counter needs starting, `sel4bench_init()`
@@ -92,7 +92,7 @@ static UNUSED void sel4bench_destroy();
9292
*
9393
* @return current cycle count
9494
*/
95-
static UNUSED ccnt_t sel4bench_get_cycle_count();
95+
static ccnt_t sel4bench_get_cycle_count();
9696

9797
/**
9898
* Query how many performance counters are supported on this CPU, excluding the
@@ -104,7 +104,7 @@ static UNUSED ccnt_t sel4bench_get_cycle_count();
104104
105105
* @return quantity of counters on this CPU
106106
*/
107-
static UNUSED seL4_Word sel4bench_get_num_counters();
107+
static seL4_Word sel4bench_get_num_counters();
108108

109109
/**
110110
* Query the description of a counter.
@@ -123,7 +123,7 @@ const char *sel4bench_get_counter_description(counter_t counter);
123123
*
124124
* @return counter value
125125
*/
126-
static UNUSED ccnt_t sel4bench_get_counter(counter_t counter);
126+
static ccnt_t sel4bench_get_counter(counter_t counter);
127127

128128
/**
129129
* Query the value of a set of counters.
@@ -138,8 +138,8 @@ static UNUSED ccnt_t sel4bench_get_counter(counter_t counter);
138138
*
139139
* @return current cycle count as in `sel4bench_get_cycle_count()`
140140
*/
141-
static UNUSED ccnt_t sel4bench_get_counters(counter_bitfield_t counters,
142-
ccnt_t *values);
141+
static ccnt_t sel4bench_get_counters(counter_bitfield_t counters,
142+
ccnt_t *values);
143143

144144
/**
145145
* Assign a counter to track a specific event. Events are processor-specific,
@@ -148,14 +148,14 @@ static UNUSED ccnt_t sel4bench_get_counters(counter_bitfield_t counters,
148148
* @param counter counter to configure
149149
* @param event event to track
150150
*/
151-
static UNUSED void sel4bench_set_count_event(counter_t counter, event_id_t id);
151+
static void sel4bench_set_count_event(counter_t counter, event_id_t id);
152152

153153
/**
154154
* Start counting events on a set of performance counters.
155155
*
156156
* @param counters bitfield indicating which counter(s) to start
157157
*/
158-
static UNUSED void sel4bench_start_counters(counter_bitfield_t counters);
158+
static void sel4bench_start_counters(counter_bitfield_t counters);
159159

160160
/**
161161
* Stop counting events on a set of performance counters.
@@ -164,14 +164,14 @@ static UNUSED void sel4bench_start_counters(counter_bitfield_t counters);
164164
*
165165
* @param counters bitfield indicating which counter(s) to stop
166166
*/
167-
static UNUSED void sel4bench_stop_counters(counter_bitfield_t counters);
167+
static void sel4bench_stop_counters(counter_bitfield_t counters);
168168

169169
/**
170170
* Reset all performance counters to zero. Note that the cycle counter is not a
171171
* performance counter, and is not reset.
172172
*
173173
*/
174-
static UNUSED void sel4bench_reset_counters(void);
174+
static void sel4bench_reset_counters(void);
175175

176176
/**
177177
* Query the number of benchmark loops required to read a given number of

0 commit comments

Comments
 (0)