pthread_mutex_unlock(¬es->lock);
 }
 
-static int __symbol__account_cycles(struct annotation *notes,
+static int __symbol__account_cycles(struct cyc_hist *ch,
                                    u64 start,
                                    unsigned offset, unsigned cycles,
                                    unsigned have_start)
 {
-       struct cyc_hist *ch;
-
-       ch = notes->src->cycles_hist;
        /*
         * For now we can only account one basic block per
         * final jump. But multiple could be overlapping.
                        start = 0;
        }
        offset = addr - sym->start;
-       return __symbol__account_cycles(notes,
+       return __symbol__account_cycles(notes->src->cycles_hist,
                                        start ? start - sym->start : 0,
                                        offset, cycles,
                                        !!start);