Ticket #1922: extern_fix2.diff

File extern_fix2.diff, 4.0 KB (added by Petr Benes, on Sep 27, 2011 at 11:43:53 AM)

EDF and CBS scheduler: extern declarations fix -version 2

  • cpukit/score/include/rtems/score/schedulercbs.h

    diff --git a/cpukit/score/include/rtems/score/schedulercbs.h b/cpukit/score/include/rtems/score/schedulercbs.h
    index a319dfe..2f5d9bf 100644
    a b typedef struct { 
    130130 * List of servers. The @a Scheduler_CBS_Server is the index to the array
    131131 * of pointers to @a _Scheduler_CBS_Server_list.
    132132 */
    133 Scheduler_CBS_Server **_Scheduler_CBS_Server_list;
     133extern Scheduler_CBS_Server **_Scheduler_CBS_Server_list;
    134134
    135135/**
    136136 *  @brief Scheduler CBS Unblock
  • cpukit/score/src/schedulercbs.c

    diff --git a/cpukit/score/src/schedulercbs.c b/cpukit/score/src/schedulercbs.c
    index d29279e..9964055 100644
    a b  
    1919#include <rtems/score/schedulercbs.h>
    2020#include <rtems/rtems/signal.h>
    2121
     22Scheduler_CBS_Server **_Scheduler_CBS_Server_list;
     23
    2224void _Scheduler_CBS_Budget_callout(
    2325  Thread_Control *the_thread
    2426)
  • testsuites/sptests/spcbssched02/system.h

    diff --git a/testsuites/sptests/spcbssched02/system.h b/testsuites/sptests/spcbssched02/system.h
    index b34ab10..b1758c1 100644
    a b rtems_task Task_Periodic( 
    5252
    5353/* global variables */
    5454
    55 rtems_id   Task_id;
    56 rtems_name Task_name;
    57 rtems_id   Task_id2;
    58 rtems_name Task_name2;
    59 rtems_task_priority Priority;
    60 time_t  Period;
    61 time_t  Execution;
    62 time_t  Phase;
     55TEST_EXTERN rtems_id   Task_id;
     56TEST_EXTERN rtems_name Task_name;
     57TEST_EXTERN rtems_id   Task_id2;
     58TEST_EXTERN rtems_name Task_name2;
     59TEST_EXTERN rtems_task_priority Priority;
     60TEST_EXTERN time_t  Period;
     61TEST_EXTERN time_t  Execution;
     62TEST_EXTERN time_t  Phase;
    6363
    6464/* end of include file */
  • testsuites/sptests/spcbssched03/system.h

    diff --git a/testsuites/sptests/spcbssched03/system.h b/testsuites/sptests/spcbssched03/system.h
    index 23736a3..6dfddc1 100644
    a b rtems_task Tasks_Aperiodic( 
    6464
    6565TEST_EXTERN rtems_id   Task_id[ 1+NUM_TASKS ];     /* array of task ids */
    6666TEST_EXTERN rtems_name Task_name[ 1+NUM_TASKS ];   /* array of task names */
    67 extern rtems_task_priority Priorities[ 1+NUM_TASKS ];
    68 extern uint32_t  Periods[ 1 + NUM_PERIODIC_TASKS ];
    69 extern uint32_t  Phases[1 + NUM_TASKS];
    70 extern uint32_t  Execution[1 + NUM_TASKS];
    71 bool Violating_task[1 + NUM_PERIODIC_TASKS];
     67TEST_EXTERN rtems_task_priority Priorities[ 1+NUM_TASKS ];
     68TEST_EXTERN uint32_t  Periods[ 1 + NUM_PERIODIC_TASKS ];
     69TEST_EXTERN uint32_t  Phases[1 + NUM_TASKS];
     70TEST_EXTERN uint32_t  Execution[1 + NUM_TASKS];
     71TEST_EXTERN bool Violating_task[1 + NUM_PERIODIC_TASKS];
    7272
    7373/* end of include file */
  • testsuites/sptests/spedfsched02/system.h

    diff --git a/testsuites/sptests/spedfsched02/system.h b/testsuites/sptests/spedfsched02/system.h
    index 8007684..c180fa2 100644
    a b TEST_EXTERN rtems_name Task_name[ 7 ]; /* array of task names */ 
    6060
    6161TEST_EXTERN struct counters Count;       /* iteration counters */
    6262TEST_EXTERN struct counters Temporary_count;
    63 extern rtems_task_priority Priorities[ 7 ];
     63TEST_EXTERN rtems_task_priority Priorities[ 7 ];
    6464
    6565/* end of include file */
  • testsuites/sptests/spedfsched03/system.h

    diff --git a/testsuites/sptests/spedfsched03/system.h b/testsuites/sptests/spedfsched03/system.h
    index 01f6399..f490607 100644
    a b rtems_task Tasks_Aperiodic( 
    6363
    6464TEST_EXTERN rtems_id   Task_id[ 1+NUM_TASKS ];     /* array of task ids */
    6565TEST_EXTERN rtems_name Task_name[ 1+NUM_TASKS ];   /* array of task names */
    66 extern rtems_task_priority Priorities[ 1+NUM_TASKS ];
    67 extern uint32_t  Periods[ 1 + NUM_PERIODIC_TASKS ];
    68 extern uint32_t  Phases[1 + NUM_TASKS];
    69 extern uint32_t  Execution[1 + NUM_TASKS];
     66TEST_EXTERN rtems_task_priority Priorities[ 1+NUM_TASKS ];
     67TEST_EXTERN uint32_t  Periods[ 1 + NUM_PERIODIC_TASKS ];
     68TEST_EXTERN uint32_t  Phases[1 + NUM_TASKS];
     69TEST_EXTERN uint32_t  Execution[1 + NUM_TASKS];
    7070
    7171/* end of include file */