On Fri, Jun 29, 2018 at 09:32:42AM -0700, Bart Van Assche wrote:
On 06/29/18 09:21, Jason Gunthorpe wrote:
On Tue, Jun 26, 2018 at 03:24:48PM -0700, Bart Van Assche wrote:
Since there are adapters that have four ports, increase the size of the srpt_device.port[] array. This patch avoids that the following warning is hit with quad port Chelsio adapters:
WARN_ON(sdev->device->phys_port_cnt > ARRAY_SIZE(sdev->port));
Reported-by: Steve Wise swise@opengridcomputing.com Signed-off-by: Bart Van Assche bart.vanassche@wdc.com Cc: Steve Wise swise@opengridcomputing.com Cc: Christoph Hellwig hch@infradead.org Cc: stable@vger.kernel.org drivers/infiniband/ulp/srpt/ib_srpt.c | 6 +++--- drivers/infiniband/ulp/srpt/ib_srpt.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-)
Can we write it this way instead? More typesafe.
Hello Jason,
The patch you posted looks fine to me. Do you want me to add your Signed-off-by after I have retested this patch when I repost it?
If you can retest it today just send me a note and I'll use it as posted, otherwise yes please.
Jason