Changeset 503 for trunk/kernel/mm


Ignore:
Timestamp:
Aug 25, 2018, 6:28:18 PM (6 years ago)
Author:
viala@…
Message:

Add void type on function that takes no parameters, fix invalid call.

Fix invalid calls to thread_can_yield.

In file included from kern/chdev.c:29:
kern/chdev.c: In function 'chdev_sequencial_server':
kern/chdev.c:329:21: error: too many arguments to function 'thread_can_yield'

assert( thread_can_yield( server ) , "illegal sched_yield\n" );

~

Also fixed signature of mapper_create.

Location:
trunk/kernel/mm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/mm/mapper.h

    r457 r503  
    105105 * @ return pointer on created mapper if success / return NULL if no memory
    106106 ******************************************************************************************/
    107 mapper_t * mapper_create();
     107mapper_t * mapper_create( void );
    108108
    109109/*******************************************************************************************
  • trunk/kernel/mm/vseg.c

    r492 r503  
    6060
    6161/////////////////////
    62 vseg_t * vseg_alloc()
     62vseg_t * vseg_alloc( void )
    6363{
    6464    kmem_req_t   req;
  • trunk/kernel/mm/vseg.h

    r473 r503  
    102102 * @ return pointer on allocated vseg descriptor if success / return NULL if failure.
    103103 ******************************************************************************************/
    104 vseg_t * vseg_alloc();
     104vseg_t * vseg_alloc( void );
    105105
    106106/*******************************************************************************************
Note: See TracChangeset for help on using the changeset viewer.