On Tue, Nov 22, 2016 at 02:38:43PM -0500, Dasaratharaman Chandramouli wrote: > +++ b/drivers/infiniband/core/sa_query.c > @@ -958,7 +958,7 @@ static void update_sm_ah(struct work_struct *work) > pr_err("Couldn't find index for default PKey\n"); > > memset(&ah_attr, 0, sizeof ah_attr); > - ah_attr.dlid = port_attr.sm_lid; > + ah_attr.dlid = (u16)port_attr.sm_lid; Why are we dropping bits here? > +++ b/drivers/infiniband/ulp/srpt/ib_srpt.c > @@ -514,7 +514,7 @@ static int srpt_refresh_port(struct srpt_port *sport) > if (ret) > goto err_query_port; > > - sport->sm_lid = port_attr.sm_lid; > + sport->sm_lid = (u16)port_attr.sm_lid; > sport->lid = port_attr.lid; And here.. > +#if !defined(OPA_ADDR_H) > +#define OPA_ADDR_H I don't think we need a header file for this. > +#define OPA_TO_IB_UCAST_LID(x) (((x) >= be16_to_cpu(IB_MULTICAST_LID_BASE)) \ > + ? 0 : x) static inline function please. Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html