10439 ecpp: NULL pointer errors

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

tsoome
illumos-gate
10439
cb7333b...
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


alarcher
  1. Ship It!
  2. 
      
andy_js
  1. Ship It!
  2. 
      
citrus
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...