10264 vgatext: NULL pointer errors

Review Request #1381 — Created Jan. 20, 2019 and submitted

tsoome
illumos-gate
10264
7bd00c2...
general
In file included from ../../common/sys/param.h:48:0,
                 from ../../common/sys/t_lock.h:38,
                 from ../../common/sys/conf.h:37,
                 from ../../intel/io/vgatext/vgatext.c:33:
../../intel/io/vgatext/vgatext.c: In function 'vgatext_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)
              ^
../../intel/io/vgatext/vgatext.c:238:40: note: in expansion of macro 'NULL'
      INST2NODE1(unit), DDI_NT_DISPLAY, NULL);
                                        ^~~~
In file included from ../../intel/io/vgatext/vgatext.c:41: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


wiedi
  1. Ship It!
  2. 
      
ptribble
  1. Ship It!
  2. 
      
andy_js
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...