[LITMUS^RT] implementation of new plugin -step 5 -error encountered

Andrea Bastoni bastoni at sprg.uniroma2.it
Thu Apr 6 13:17:29 CEST 2017


Hi Raji,

On Wed, Apr 5, 2017 at 1:03 PM, Rajarajeswari R
<rajeswarirajasekar29 at gmail.com> wrote:
> Dear sir,
> I am creating a new scheduler plugin in litmus-rt for my master thesis . I
> am facing an error in step 5 where the P-EDF scheduling logic is implemented
> .
>
> The errors are
>
> litmus/sched_demo.c: In function ‘demo_schedule’:
> litmus/sched_demo.c:54:10: error: implicit declaration of function
> ‘__get_cpu_var’ [-Werror=implicit-function-declaration]
>    struct demo_cpu_state *local_state = local_cpu_state();
>           ^
> litmus/sched_demo.c:19:28: error: lvalue required as unary ‘&’ operand
>  #define local_cpu_state() (&__get_cpu_var(demo_cpu_state))
>                             ^
> litmus/sched_demo.c:54:40: note: in expansion of macro ‘local_cpu_state’
>    struct demo_cpu_state *local_state = local_cpu_state();
>                                         ^
> litmus/sched_demo.c:68:9: error: implicit declaration of function
> ‘is_running’ [-Werror=implicit-function-declaration]
>          self_suspends = exists && !is_running(prev);
>          ^
> cc1: some warnings being treated as errors
> make[1]: *** [litmus/sched_demo.o] Error 1
> make: *** [litmus] Error 2
> root at raji-Latitude-E5420:~/16-gb/litmus-rt#
>
>
> I tried my best solving it but there is no improvement.please help me in
> solving in it.

I'm not getting it. Are there compilation errors in your code on in a
default scheduler plugin that you pulled from the litmus repository?

Thanks,
  Andrea

>
> Thank you.
>
> Regards,
> Raji
> +91-9600551908
>
> _______________________________________________
> litmus-dev mailing list
> litmus-dev at lists.litmus-rt.org
> https://lists.litmus-rt.org/listinfo/litmus-dev
>



More information about the litmus-dev mailing list