Changeset 473 for trunk/kernel/mm


Ignore:
Timestamp:
Aug 21, 2018, 6:01:01 PM (6 years ago)
Author:
alain
Message:

Fix several GCC warning related to the -Wextra compilation option.

Location:
trunk/kernel/mm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/mm/vmm.c

    r469 r473  
    718718
    719719        // remove vseg from VSL
    720                 vseg_detach( vmm , vseg );
     720                vseg_detach( vseg );
    721721
    722722        // release memory allocated to vseg descriptor
     
    747747__FUNCTION__ , vseg_type_str( vseg->type ), vseg->vpn_base, vseg->vpn_size );
    748748#endif
    749                     vseg_detach( vmm , vseg );
     749                    vseg_detach( vseg );
    750750            vseg_free( vseg );
    751751
     
    10221022    // get pointers on calling process and VMM
    10231023    thread_t   * this    = CURRENT_THREAD;
    1024     process_t  * process = this->process;
    10251024    vmm_t      * vmm     = &this->process->vmm;
    10261025    uint32_t     type    = vseg->type;
     
    10291028    xptr_t lock_xp = XPTR( local_cxy , &vmm->vsegs_lock );
    10301029        remote_rwlock_wr_lock( lock_xp );
    1031         vseg_detach( &process->vmm , vseg );
     1030        vseg_detach( vseg );
    10321031        remote_rwlock_wr_unlock( lock_xp );
    10331032
  • trunk/kernel/mm/vseg.c

    r457 r473  
    209209}
    210210
    211 ///////////////////////////////
    212 void vseg_detach( vmm_t  * vmm,
    213                   vseg_t * vseg )
     211/////////////////////////////////
     212void vseg_detach( vseg_t * vseg )
    214213{
    215214    // update vseg descriptor
  • trunk/kernel/mm/vseg.h

    r457 r473  
    161161 * The lock protecting the vsegs list in VMM must be taken by the caller.
    162162 *******************************************************************************************
    163  * @ vmm       : pointer on the VMM
    164163 * @ vseg      : pointer on the vseg descriptor
    165164 ******************************************************************************************/
    166 void vseg_detach( struct vmm_s  * vmm,
    167                   vseg_t        * vseg );
     165void vseg_detach( vseg_t        * vseg );
    168166
    169167
Note: See TracChangeset for help on using the changeset viewer.