10764 drm: NULL pointer errors

Review Request #1729 — Created April 13, 2019 and submitted

tsoome
illumos-gate
10764
9f52fd3...
general
../../common/io/drm/drm_kstat.c: In function 'drm_init_kstats':
../../common/io/drm/drm_kstat.c:78:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
   return (NULL);
          ^

In file included from ../../common/sys/param.h:48:0,
                 from ../../common/sys/t_lock.h:38,
                 from ../../common/sys/conf.h:37,
                 from ../../common/io/drm/drm_sunmod.h:55,
                 from ../../common/io/drm/drm_sunmod.c:36:
../../common/io/drm/drm_sunmod.c: In function 'drm_supp_register':
../../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/drm/drm_sunmod.c:174:44: note: in expansion of macro 'NULL'
      INST2NODE0(instance), DDI_NT_DISPLAY, NULL);
                                            ^~~~
In file included from ../../common/io/drm/drm_sunmod.h:60:0,
                 from ../../common/io/drm/drm_sunmod.c:36:
../../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/drm/drm_sunmod.c: In function 'drm_supp_device_capability':
../../common/io/drm/drm_sunmod.c:998:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
   return (NULL);
          ^
cc1: all warnings being treated as errors


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

Status: Closed (submitted)

Loading...