2015-07-20 11:02, Cunming Liang: > +static int turn_on_intr(struct lcore_conf *qconf) > +{ > + int i; > + struct lcore_rx_queue *rx_queue; > + uint8_t port_id, queue_id; > + > + for (i = 0; i < qconf->n_rx_queue; ++i) { > + rx_queue = &(qconf->rx_queue_list[i]); > + port_id = rx_queue->port_id; > + queue_id = rx_queue->queue_id; > + > + rte_spinlock_lock(&(locks[port_id])); > + rte_eth_dev_rx_intr_enable(port_id, queue_id); > + rte_spinlock_unlock(&(locks[port_id])); > + } > +}
examples/l3fwd-power/main.c:836:1: error: control reaches end of non-void function [-Werror,-Wreturn-type]