Changeset 9482bf0b in mainline


Ignore:
Timestamp:
2009-03-07T21:52:11Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c247262
Parents:
1c6b3a2
Message:

Fix non-debug build.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/mm/frame.c

    r1c6b3a2 r9482bf0b  
    161161 *
    162162 */
     163#ifdef CONFIG_DEBUG
    163164static count_t total_frames_free(void)
    164165{
     
    170171        return total;
    171172}
     173#endif
    172174
    173175/** Find a zone with a given frames.
     
    289291       
    290292        bool is_left = IS_BUDDY_LEFT_BLOCK_ABS(zone, frame);
    291         bool is_right = IS_BUDDY_RIGHT_BLOCK_ABS(zone, frame);
    292        
    293         ASSERT(is_left ^ is_right);
    294293       
    295294        index_t index;
     
    297296                index = (frame_index(zone, frame)) +
    298297                    (1 << frame->buddy_order);
    299         } else {  /* if (is_right) */
     298        } else {        /* is_right */
    300299                index = (frame_index(zone, frame)) -
    301300                    (1 << frame->buddy_order);
     
    484483                return;
    485484       
    486         link_t *link = buddy_system_alloc_block(zone->buddy_system,
     485        link_t *link __attribute__ ((unused));
     486       
     487        link = buddy_system_alloc_block(zone->buddy_system,
    487488            &frame->buddy_link);
    488489       
     
    609610                return;
    610611       
    611         frame_t *frame
    612             = &zones.info[znum].frames[pfn - zones.info[znum].base];
     612        frame_t *frame __attribute__ ((unused));
     613
     614        frame = &zones.info[znum].frames[pfn - zones.info[znum].base];
    613615        ASSERT(!frame->buddy_order);
    614616       
Note: See TracChangeset for help on using the changeset viewer.