10439 ecpp: NULL pointer errors

Review Request #1508 - Created Feb. 22, 2019 and submitted

Information
Toomas Soome
illumos-gate
10439
cb7333b...
Reviewers
general
In file included from ../../common/sys/param.h:48:0,
                 from ../../common/io/ecpp.c:33:
../../common/io/ecpp.c: In function 'ecpp_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/ecpp.c:694:22: note: in expansion of macro 'NULL'
      DDI_NT_PRINTER, NULL) == DDI_FAILURE) {
                      ^~~~
In file included from ../../common/io/ecpp.c:43: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/ecpp.c: In function 'dma8237_read_count':
../../common/io/ecpp.c:6206:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
   return (NULL);
          ^
cc1: all warnings being treated as errors

  
Aurélien Larcher
Andrew Stormont
Andy Fiddaman
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...