diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index d5aa67ee7..1a066466f 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -704,7 +704,11 @@ static int srpt_refresh_port(struct srpt_port *sport) ®_req, 0, srpt_mad_send_handler, srpt_mad_recv_handler, - sport); + sport +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 17, 0) + , 0 +#endif + ); if (IS_ERR(sport->mad_agent)) { ret = PTR_ERR(sport->mad_agent); sport->mad_agent = NULL;