linux/net/sunrpc/xprtrdma
Chuck Lever 87144ec250 xprtrdma: Squelch kbuild sparse complaint
commit eed50879d6 upstream.

New complaint from kbuild for 4.9.y:

net/sunrpc/xprtrdma/verbs.c:489:19: sparse: incompatible types in
    comparison expression (different type sizes)

verbs.c:
489	max_sge = min(ia->ri_device->attrs.max_sge, RPCRDMA_MAX_SEND_SGES);

I can't reproduce this running sparse here. Likewise, "make W=1
net/sunrpc/xprtrdma/verbs.o" never indicated any issue.

A little poking suggests that because the range of its values is
small, gcc can make the actual width of RPCRDMA_MAX_SEND_SGES
smaller than the width of an unsigned integer.

Fixes: 16f906d66c ("xprtrdma: Reduce required number of send SGEs")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2017-03-26 13:05:57 +02:00
..
backchannel.c xprtrdma: Use gathered Send for large inline messages 2016-09-19 13:08:38 -04:00
fmr_ops.c xprtrdma: Basic support for Remote Invalidation 2016-09-19 13:08:38 -04:00
frwr_ops.c xprtrdma: Make FRWR send queue entry accounting more accurate 2017-01-26 08:24:43 +01:00
Makefile xprtrdma: Remove ALLPHYSICAL memory registration mode 2016-07-11 15:50:43 -04:00
module.c rpcrdma: Merge svcrdma and xprtrdma modules into one 2015-06-04 16:56:02 -04:00
rpc_rdma.c xprtrdma: Reduce required number of send SGEs 2017-03-12 06:41:52 +01:00
svc_rdma.c svcrdma: Define maximum number of backchannel requests 2016-01-19 15:30:48 -05:00
svc_rdma_backchannel.c svcrdma: Clear xpt_bc_xps in xprt_setup_rdma_bc() error exit arm 2017-01-15 13:42:56 +01:00
svc_rdma_marshal.c svcrdma: Generalize svc_rdma_xdr_decode_req() 2016-05-13 15:53:06 -04:00
svc_rdma_recvfrom.c svcrdma: avoid duplicate dma unmapping during error recovery 2017-01-26 08:24:40 +01:00
svc_rdma_sendto.c svcrdma: support Remote Invalidation 2016-09-23 10:18:54 -04:00
svc_rdma_transport.c sunrpc: svc_age_temp_xprts_now should not call setsockopt non-tcp transports 2016-11-14 10:30:58 -05:00
transport.c xprtrdma: Disable pad optimization by default 2017-03-12 06:41:52 +01:00
verbs.c xprtrdma: Squelch kbuild sparse complaint 2017-03-26 13:05:57 +02:00
xprt_rdma.h xprtrdma: Reduce required number of send SGEs 2017-03-12 06:41:52 +01:00