10379 asy: NULL pointer errors

Review Request #1454 - Created Feb. 11, 2019 and submitted

Information
Toomas Soome
illumos-gate
10379
f81f444...
Reviewers
general
In file included from ../../common/sys/param.h:48:0,
                 from ../../common/io/asy.c:37:
../../common/io/asy.c: In function 'asyattach':
../../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/asy.c:1080:65: note: in expansion of macro 'NULL'
      asy->asy_com_port != 0 ? DDI_NT_SERIAL_MB : DDI_NT_SERIAL, NULL);
                                                                 ^~~~
In file included from ../../common/io/asy.c:62: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,
 ^~~~~~~~~~~~~~~~~~~~~
In file included from ../../common/sys/param.h:48:0,
                 from ../../common/io/asy.c:37:
../../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/asy.c:1086:25: note: in expansion of macro 'NULL'
       DDI_NT_SERIAL_DO, NULL);
                         ^~~~
In file included from ../../common/io/asy.c:62: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,
 ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

  
John Levon
Andy Fiddaman
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...