Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/lib/ra.c

    rfeeac0d rf97f1e51  
    391391
    392392        irq_spinlock_lock(&arena->lock, true);
    393         list_foreach(arena->spans, span_link, ra_span_t, span) {
     393        list_foreach(arena->spans, cur) {
     394                ra_span_t *span = list_get_instance(cur, ra_span_t, span_link);
     395
    394396                base = ra_span_alloc(span, size, alignment);
    395397                if (base)
     
    405407{
    406408        irq_spinlock_lock(&arena->lock, true);
    407         list_foreach(arena->spans, span_link, ra_span_t, span) {
     409        list_foreach(arena->spans, cur) {
     410                ra_span_t *span = list_get_instance(cur, ra_span_t, span_link);
     411
    408412                if (iswithin(span->base, span->size, base, size)) {
    409413                        ra_span_free(span, base, size);
Note: See TracChangeset for help on using the changeset viewer.