X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Ftimer%2Fmain.c;h=0259022f104e6bd6ced4a6af6dce6a99b7017fa7;hb=e0194feb322c;hp=968a941367f3e82dc745fb1e75416a965b3d871b;hpb=3998e2a07220844d3f3c17f76a781ced3efe0de0;p=dpdk.git diff --git a/examples/timer/main.c b/examples/timer/main.c index 968a941367..0259022f10 100644 --- a/examples/timer/main.c +++ b/examples/timer/main.c @@ -25,8 +25,8 @@ static struct rte_timer timer1; /* timer0 callback */ static void -timer0_cb(__attribute__((unused)) struct rte_timer *tim, - __attribute__((unused)) void *arg) +timer0_cb(__rte_unused struct rte_timer *tim, + __rte_unused void *arg) { static unsigned counter = 0; unsigned lcore_id = rte_lcore_id(); @@ -41,8 +41,8 @@ timer0_cb(__attribute__((unused)) struct rte_timer *tim, /* timer1 callback */ static void -timer1_cb(__attribute__((unused)) struct rte_timer *tim, - __attribute__((unused)) void *arg) +timer1_cb(__rte_unused struct rte_timer *tim, + __rte_unused void *arg) { unsigned lcore_id = rte_lcore_id(); uint64_t hz; @@ -55,8 +55,8 @@ timer1_cb(__attribute__((unused)) struct rte_timer *tim, rte_timer_reset(tim, hz/3, SINGLE, lcore_id, timer1_cb, NULL); } -static __attribute__((noreturn)) int -lcore_mainloop(__attribute__((unused)) void *arg) +static __rte_noreturn int +lcore_mainloop(__rte_unused void *arg) { uint64_t prev_tsc = 0, cur_tsc, diff_tsc; unsigned lcore_id;