10771 ibmf: NULL pointer errors

Review Request #1736 - Created April 14, 2019 and updated

Information
Toomas Soome
illumos-gate
10771
4a1b953...
Reviewers
general
../../common/io/ib/mgt/ibmf/ibmf_wqe.c: In function 'ibmf_send_wqe_cache_constructor':
../../common/io/ib/mgt/ibmf/ibmf_wqe.c:90:28: error: comparison between pointer and integer [-Werror]
  if (send_wqe->send_sg_mem == NULL) {
                            ^~
../../common/io/ib/mgt/ibmf/ibmf_wqe.c: In function 'ibmf_recv_wqe_cache_constructor':
../../common/io/ib/mgt/ibmf/ibmf_wqe.c:202:28: error: comparison between pointer and integer [-Werror]
  if (recv_wqe->recv_sg_mem == NULL) {
                            ^~
../../common/io/ib/mgt/ibmf/ibmf_wqe.c: In function 'ibmf_altqp_send_wqe_cache_constructor':
../../common/io/ib/mgt/ibmf/ibmf_wqe.c:315:28: error: comparison between pointer and integer [-Werror]
  if (send_wqe->send_sg_mem == NULL) {
                            ^~
../../common/io/ib/mgt/ibmf/ibmf_wqe.c: In function 'ibmf_altqp_recv_wqe_cache_constructor':
../../common/io/ib/mgt/ibmf/ibmf_wqe.c:428:28: error: comparison between pointer and integer [-Werror]
  if (recv_wqe->recv_sg_mem == NULL) {
                            ^~

../../common/io/ib/mgt/ibmf/ibmf_saa_utils.c: In function 'ibmf_saa_utils_pack_payload':
../../common/io/ib/mgt/ibmf/ibmf_saa_utils.c:977:24: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   *buf_payload_lengthp = NULL;
                        ^
cc1: all warnings being treated as errors

  
Andrew Stormont
Ship It!
Robert Mustacchi
Ship It!
Loading...