From: Sebastian Sanchez Date: Wed, 8 Feb 2017 13:26:49 +0000 (-0800) Subject: IB/hfi1: Reduce oversized fields in struct hfi1_packet X-Git-Tag: v4.14-rc1~1442^2~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=76327627be1d9bd6a360b645ac7675c02a39096f;p=platform%2Fkernel%2Flinux-rpi.git IB/hfi1: Reduce oversized fields in struct hfi1_packet Some fields in struct hfi1_packet are oversized. Reduce them. Reviewed-by: Mike Marciniszyn Signed-off-by: Sebastian Sanchez Signed-off-by: Dennis Dalessandro Signed-off-by: Doug Ledford --- diff --git a/drivers/infiniband/hw/hfi1/hfi.h b/drivers/infiniband/hw/hfi1/hfi.h index 1d08739..fcfd5f1 100644 --- a/drivers/infiniband/hw/hfi1/hfi.h +++ b/drivers/infiniband/hw/hfi1/hfi.h @@ -356,12 +356,11 @@ struct hfi1_packet { u64 rhf; u32 maxcnt; u32 rhqoff; - u32 hdrqtail; - int numpkt; u16 tlen; - u16 hlen; s16 etail; - u16 rsize; + u8 hlen; + u8 numpkt; + u8 rsize; u8 updegr; u8 rcv_flags; u8 etype;