kernel_optimize_test/net/rds
Jason Gunthorpe 7dba92037b net/rds: Use ERR_PTR for rds_message_alloc_sgs()
Returning the error code via a 'int *ret' when the function returns a
pointer is very un-kernely and causes gcc 10's static analysis to choke:

net/rds/message.c: In function ‘rds_message_map_pages’:
net/rds/message.c:358:10: warning: ‘ret’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  358 |   return ERR_PTR(ret);

Use a typical ERR_PTR return instead.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-04-15 12:33:29 -07:00
..
af_rds.c
bind.c net/rds: Check laddr_check before calling it 2019-09-27 12:10:55 +02:00
cong.c
connection.c
ib_cm.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-11-16 21:51:42 -08:00
ib_fmr.c
ib_frmr.c
ib_mr.h net/rds: Handle ODP mr registration/unregistration 2020-01-18 11:48:19 +02:00
ib_rdma.c net/rds: Use prefetch for On-Demand-Paging MR 2020-01-18 11:48:19 +02:00
ib_recv.c net/rds: Use DMA memory pool allocation for rds_header 2019-10-03 12:11:08 -07:00
ib_ring.c
ib_send.c net/rds: Handle ODP mr registration/unregistration 2020-01-18 11:48:19 +02:00
ib_stats.c net/rds: Fix 'ib_evt_handler_call' element in 'rds_ib_stat_names' 2019-09-15 20:56:19 +02:00
ib_sysctl.c
ib.c net/rds: Handle ODP mr registration/unregistration 2020-01-18 11:48:19 +02:00
ib.h net/rds: Handle ODP mr registration/unregistration 2020-01-18 11:48:19 +02:00
info.c
info.h
Kconfig net: Fix Kconfig indentation 2019-09-26 08:56:17 +02:00
loop.c
loop.h
Makefile
message.c net/rds: Use ERR_PTR for rds_message_alloc_sgs() 2020-04-15 12:33:29 -07:00
page.c
rdma_transport.c
rdma_transport.h
rdma.c net/rds: Use ERR_PTR for rds_message_alloc_sgs() 2020-04-15 12:33:29 -07:00
rds_single_path.h
rds.h net/rds: Use ERR_PTR for rds_message_alloc_sgs() 2020-04-15 12:33:29 -07:00
recv.c
send.c net/rds: Use ERR_PTR for rds_message_alloc_sgs() 2020-04-15 12:33:29 -07:00
stats.c
sysctl.c
tcp_connect.c
tcp_listen.c
tcp_recv.c
tcp_send.c
tcp_stats.c
tcp.c
tcp.h
threads.c
transport.c