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

Rajarajeswari R rajeswarirajasekar29 at gmail.com
Wed Apr 5 13:03:42 CEST 2017


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.

Thank you.

Regards,
Raji
+91-9600551908
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.litmus-rt.org/pipermail/litmus-dev/attachments/20170405/6d505bf0/attachment.html>


More information about the litmus-dev mailing list