Changeset 485 for trunk


Ignore:
Timestamp:
Aug 21, 2018, 9:52:57 PM (3 years ago)
Author:
viala@…
Message:

[kern] Add void type to function prototypes with no parameter

Location:
trunk/kernel/kern
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/kern/chdev.c

    r457 r485  
    431431
    432432////////////////////////
    433 void chdev_dir_display()
     433void chdev_dir_display( void )
    434434{
    435435    uint32_t  i;
  • trunk/kernel/kern/chdev.h

    r457 r485  
    252252 * (global variable replicated in all clusters)
    253253 *****************************************************************************************/
    254 void chdev_dir_display();
     254void chdev_dir_display( void );
    255255
    256256/******************************************************************************************
  • trunk/kernel/kern/cluster.c

    r457 r485  
    223223
    224224/////////////////////////////////
    225 lid_t cluster_select_local_core()
     225lid_t cluster_select_local_core( void )
    226226{
    227227    uint32_t      min = 1000;
  • trunk/kernel/kern/cluster.h

    r457 r485  
    301301 * This function returns the core local index that has the lowest usage in local cluster.
    302302 *****************************************************************************************/
    303 lid_t cluster_select_local_core();
     303lid_t cluster_select_local_core( void );
    304304
    305305#endif  /* _CLUSTER_H_ */
  • trunk/kernel/kern/dqdt.c

    r457 r485  
    6767
    6868///////////////////
    69 void dqdt_display()
     69void dqdt_display( void )
    7070{
    7171    reg_t   save_sr;
     
    316316
    317317////////////////////////////////////
    318 cxy_t dqdt_get_cluster_for_process()
     318cxy_t dqdt_get_cluster_for_process( void )
    319319{
    320320    // build extended pointer on DQDT root node
     
    328328
    329329////////////////////////////////////
    330 cxy_t dqdt_get_cluster_for_memory()
     330cxy_t dqdt_get_cluster_for_memory( void )
    331331{
    332332    // build extended pointer on DQDT root node
  • trunk/kernel/kern/dqdt.h

    r457 r485  
    117117 * @ returns the cluster identifier with the lowest computing load.
    118118 ***************************************************************************************/
    119 cxy_t dqdt_get_cluster_for_process();
     119cxy_t dqdt_get_cluster_for_process( void );
    120120
    121121/****************************************************************************************
     
    126126 * @ returns the cluster identifier with the lowest memory load.
    127127 ***************************************************************************************/
    128 cxy_t dqdt_get_cluster_for_memory();
     128cxy_t dqdt_get_cluster_for_memory( void );
    129129
    130130/****************************************************************************************
     
    133133 * running in any cluster
    134134 ***************************************************************************************/
    135 void dqdt_display();
     135void dqdt_display( void );
    136136
    137137
  • trunk/kernel/kern/process.c

    r472 r485  
    909909
    910910//////////////////////////////
    911 bool_t process_fd_array_full()
     911bool_t process_fd_array_full( void )
    912912{
    913913    // get extended pointer on reference process
     
    14701470
    14711471//////////////////////////
    1472 void process_init_create()
     1472void process_init_create( void )
    14731473{
    14741474    process_t      * process;       // local pointer on process descriptor
     
    16721672
    16731673////////////////////////////
    1674 uint32_t process_txt_alloc()
     1674uint32_t process_txt_alloc( void )
    16751675{
    16761676    uint32_t  index;       // TXT terminal index
  • trunk/kernel/kern/process.h

    r457 r485  
    207207 * to kernel TXT0, because these streams must be defined for all user processes.
    208208 ********************************************************************************************/
    209 void process_init_create();
     209void process_init_create( void );
    210210
    211211/*********************************************************************************************
     
    444444 * @ returns true if file descriptor array full.
    445445 ********************************************************************************************/
    446 bool_t process_fd_array_full();
     446bool_t process_fd_array_full( void );
    447447
    448448/*********************************************************************************************
     
    514514 * @ return TXT terminal index if succes / kernel panic if no terminal found.
    515515 ********************************************************************************************/
    516 uint32_t process_txt_alloc();
     516uint32_t process_txt_alloc( void );
    517517
    518518/*********************************************************************************************
  • trunk/kernel/kern/rpc.c

    r473 r485  
    225225
    226226////////////////
    227 void rpc_check()
     227void rpc_check( void )
    228228{
    229229    error_t         error;
     
    322322
    323323//////////////////////
    324 void rpc_thread_func()
     324void rpc_thread_func( void )
    325325{
    326326    error_t         empty;              // local RPC fifo state
  • trunk/kernel/kern/rpc.h

    r459 r485  
    157157 *   the RPC thead to execute.
    158158 **********************************************************************************/
    159 void rpc_check();
     159void rpc_check( void );
    160160
    161161/***********************************************************************************
     
    171171 * This function contains the infinite loop executed by a RPC thread.
    172172 **********************************************************************************/
    173 void rpc_thread_func();
     173void rpc_thread_func( void );
    174174
    175175/***********************************************************************************
  • trunk/kernel/kern/thread.c

    r473 r485  
    7171// @ return pointer on thread descriptor if success / return NULL if failure.
    7272/////////////////////////////////////////////////////////////////////////////////////
    73 static thread_t * thread_alloc()
     73static thread_t * thread_alloc( void )
    7474{
    7575        page_t       * page;   // pointer on page descriptor containing thread descriptor
     
    896896
    897897/////////////////////////
    898 void thread_check_sched()
     898void thread_check_sched( void )
    899899{
    900900    thread_t * this = CURRENT_THREAD;
     
    10861086
    10871087///////////////////////
    1088 void thread_idle_func()
     1088void thread_idle_func( void )
    10891089{
    10901090
  • trunk/kernel/kern/thread.h

    r473 r485  
    336336 * is executed. We must analyse if we have the same behaviour for I86 architectures...
    337337 **************************************************************************************/
    338 void thread_idle_func();
     338void thread_idle_func( void );
    339339
    340340/***************************************************************************************
     
    376376 * have beeen released and the calling thread THREAD_FLAG_SCHED flag is set.
    377377 **************************************************************************************/
    378 void thread_check_sched();
     378void thread_check_sched( void );
    379379
    380380/***************************************************************************************
Note: See TracChangeset for help on using the changeset viewer.