diff --git a/sys/dev/cxgb/cxgb_main.c b/sys/dev/cxgb/cxgb_main.c index def180de82f..fe50caedb00 100644 --- a/sys/dev/cxgb/cxgb_main.c +++ b/sys/dev/cxgb/cxgb_main.c @@ -112,8 +112,9 @@ static __inline void reg_block_dump(struct adapter *ap, uint8_t *buf, unsigned i static void cxgb_get_regs(adapter_t *sc, struct ifconf_regs *regs, uint8_t *buf); static int cxgb_get_regs_len(void); static int offload_open(struct port_info *pi); +#ifdef notyet static int offload_close(struct toedev *tdev); - +#endif static device_method_t cxgb_controller_methods[] = { @@ -1346,7 +1347,7 @@ out: } return (err); } - +#ifdef notyet static int offload_close(struct toedev *tdev) { @@ -1370,6 +1371,7 @@ offload_close(struct toedev *tdev) cxgb_offload_deactivate(adapter); return (0); } +#endif static void cxgb_init(void *arg) diff --git a/sys/dev/cxgb/cxgb_sge.c b/sys/dev/cxgb/cxgb_sge.c index 676ab09222b..ec5bf868d55 100644 --- a/sys/dev/cxgb/cxgb_sge.c +++ b/sys/dev/cxgb/cxgb_sge.c @@ -707,6 +707,7 @@ int t3_sge_init_port(struct port_info *p) { TASK_INIT(&p->timer_reclaim_task, 0, sge_timer_reclaim, p); + return (0); } void