Changeset b09e155 in rtems-testing


Ignore:
Timestamp:
Nov 7, 2018, 5:46:14 PM (5 months ago)
Author:
Joel Sherrill <joel@…>
Branches:
8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
8895273c193787f84c4585a10f6d6aceb3b25dc4
Parents:
9ce9f66
Message:

rtems-test-template: Use more static declarations

Location:
rtems-test-template
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • rtems-test-template/psxtmtest_blocking/init.c

    r9ce9f66 rb09e155  
    2525#include <pthread.h>
    2626
    27 /* forward declarations to avoid warnings */
    28 void *POSIX_Init(void *argument);
    29 void *Middle(void *argument);
    30 void *Low(void *argument);
    31 
    32 void *Low(
     27static void *Low(
    3328  void *argument
    3429)
     
    5247}
    5348
    54 void *Middle(
     49static void *Middle(
    5550  void *argument
    5651)
     
    6055}
    6156
    62 void *POSIX_Init(
     57static void *POSIX_Init(
    6358  void *argument
    6459)
     
    8681/* configuration information */
    8782
    88 #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
     83#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
    8984#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
    9085
  • rtems-test-template/psxtmtest_init_destroy/init.c

    r9ce9f66 rb09e155  
    2525const char rtems_test_name[] = "@UPPER@";
    2626
    27 /* forward declarations to avoid warnings */
    28 void *POSIX_Init(void *argument);
    29 void benchmark_NAME_OF_CREATE_OPERATION(void);
    30 void benchmark_NAME_OF_DELETE_OPERATION(void);
    31 
    32 void benchmark_NAME_OF_CREATE_OPERATION(void)
     27static void benchmark_NAME_OF_CREATE_OPERATION(void)
    3328{
    3429  long end_time;
     
    5146}
    5247
    53 void benchmark_NAME_OF_DELETE_OPERATION(void)
     48static void benchmark_NAME_OF_DELETE_OPERATION(void)
    5449{
    5550  long end_time;
     
    7267}
    7368
    74 void *POSIX_Init(
     69static void *POSIX_Init(
    7570  void *argument
    7671)
     
    9085/* configuration information */
    9186
    92 #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
     87#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
    9388#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
    9489
  • rtems-test-template/psxtmtest_single/init.c

    r9ce9f66 rb09e155  
    2525const char rtems_test_name[] = "@UPPER@";
    2626
    27 /* forward declarations to avoid warnings */
    28 void *POSIX_Init(void *argument);
    29 void benchmark_NAME_OF_OPERATION(void);
    30 
    31 void benchmark_NAME_OF_OPERATION(void)
     27static void benchmark_NAME_OF_OPERATION(void)
    3228{
    3329  long end_time;
     
    5046}
    5147
    52 void *POSIX_Init(
     48static void *POSIX_Init(
    5349  void *argument
    5450)
     
    6763/* configuration information */
    6864
    69 #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
     65#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
    7066#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
    7167
  • rtems-test-template/psxtmtest_unblocking_nopreempt/init.c

    r9ce9f66 rb09e155  
    2727const char rtems_test_name[] = "@UPPER@";
    2828
    29 /* forward declarations to avoid warnings */
    30 void *POSIX_Init(void *argument);
    31 void *Blocker(void *argument);
     29static pthread_mutex_t MutexId;
    3230
    33 pthread_mutex_t MutexId;
    34 
    35 void *Blocker(
     31static void *Blocker(
    3632  void *argument
    3733)
     
    4541}
    4642
    47 void *POSIX_Init(
     43static void *POSIX_Init(
    4844  void *argument
    4945)
     
    9995/* configuration information */
    10096
    101 #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
     97#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
    10298#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
    10399
  • rtems-test-template/psxtmtest_unblocking_preempt/init.c

    r9ce9f66 rb09e155  
    2727const char rtems_test_name[] = "@UPPER@";""
    2828
    29 /* forward declarations to avoid warnings */
    30 void *POSIX_Init(void *argument);
    31 void *Middle(void *argument);
    32 void *Low(void *argument);
     29static pthread_mutex_t MutexId;
    3330
    34 pthread_mutex_t MutexId;
    35 
    36 void *Low(
     31static void *Low(
    3732  void *argument
    3833)
     
    5954}
    6055
    61 void *Middle(
     56static void *Middle(
    6257  void *argument
    6358)
     
    8075}
    8176
    82 void *POSIX_Init(
     77static void *POSIX_Init(
    8378  void *argument
    8479)
     
    155150/* configuration information */
    156151
    157 #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
     152#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
    158153#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
    159154
  • rtems-test-template/tmtest/init.c

    r9ce9f66 rb09e155  
    1818#include "test_support.h"
    1919
    20 /* forward declarations to avoid warnings */
    21 rtems_task Init(rtems_task_argument argument);
    22 
    23 rtems_task Init(
     20static rtems_task Init(
    2421  rtems_task_argument argument
    2522)
     
    3633/* configuration information */
    3734
    38 #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
     35#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
    3936#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
    4037
Note: See TracChangeset for help on using the changeset viewer.