10737 procfs: NULL pointer errors
Review Request #1703 — Created April 11, 2019 and submitted
Information | |
---|---|
tsoome | |
illumos-gate | |
10737 | |
aa4690c... | |
Reviewers | |
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
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+3 -3) |
Change Summary:
cstyle fixes
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 3 (+10 -22) |
Change Summary:
caddr32_t is 32-bit int, we can not cast 64-bit pointer directly to 32-bit int, we need to do so over uintptr_t cast.
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 4 (+10 -22) |