10737 procfs: NULL pointer errors

Review Request #1703 — Created April 11, 2019 and submitted

tsoome
illumos-gate
10737
aa4690c...
general
In file included from ../../common/sys/param.h:48:0,
                 from ../../common/fs/proc/prvfsops.c:30:
../../common/sys/null.h:32:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../common/fs/proc/prvfsops.c:64:2: note: in expansion of macro 'NULL'
  NULL,
  ^~~~
../../common/sys/null.h:32:14: note: (near initialization for 'proc_mntopts.mo_count')
 #define NULL ((void *)0)
              ^
../../common/fs/proc/prvfsops.c:64:2: note: in expansion of macro 'NULL'
  NULL,
  ^~~~

../../common/fs/proc/prioctl.c: In function 'prioctl32':
../../common/fs/proc/prioctl.c:1867:12: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
    un32.va = NULL;
            ^
cc1: all warnings being treated as errors


  • 0
  • 0
  • 1
  • 0
  • 1
Description From Last Updated
jlevon
  1. 
      
  2. usr/src/uts/common/fs/proc/prioctl.c (Diff revision 1)
     
     

    (caddr32_t) NULL ?

  3. 
      
tsoome
tsoome
jlevon
  1. Ship It!
  2. 
      
rm
  1. Ship It!
  2. 
      
tsoome
jlevon
  1. Ship It!
  2. 
      
rm
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...