10388 bofi: NULL pointer errors

Review Request #1462 - Created Feb. 11, 2019 and submitted - Latest diff uploaded

Information
Toomas Soome
illumos-gate
10388
6707d09...
Reviewers
general
In file included from ../../common/sys/param.h:48:0,
                 from ../../common/sys/sysmacros.h:37,
                 from ../../common/io/bofi.c:31:
../../common/io/bofi.c: In function 'bofi_attach':
../../common/sys/null.h:32:14: error: passing argument 6 of 'ddi_create_minor_node' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../common/io/bofi.c:628:19: note: in expansion of macro 'NULL'
       DDI_PSEUDO, NULL) == DDI_FAILURE)
                   ^~~~
In file included from ../../common/io/bofi.c:46:0:
../../common/sys/sunddi.h:1564:1: note: expected 'int' but argument is of type 'void *'
 ddi_create_minor_node(dev_info_t *dip, char *name, int spec_type,
 ^~~~~~~~~~~~~~~~~~~~~
../../common/io/bofi.c: In function 'bofi_post_event':
../../common/io/bofi.c:4481:32: error: comparison between pointer and integer [-Werror]
     if ((ep->errstate.msg_time == NULL ||
                                ^~
../../common/io/bofi.c: In function 'bofi_fm_ereport_callback':
../../common/io/bofi.c:4538:30: error: comparison between pointer and integer [-Werror]
    if (ep->errstate.msg_time != NULL)
                              ^~
cc1: all warnings being treated as errors

  
Loading...