Skip to content

Commit

Permalink
10879 i86pc/i86xpv: assignment makes integer from pointer without a cast
Browse files Browse the repository at this point in the history
Reviewed by: John Levon <john.levon@joyent.com>
Approved by: Dan McDonald <danmcd@joyent.com>
  • Loading branch information
tsoome committed May 15, 2019
1 parent fb46ffc commit 8f22c1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion usr/src/uts/i86pc/os/mp_startup.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ mp_cpu_unconfigure_common(struct cpu *cp, int error)
trap_trace_ctl_t *ttc = &trap_trace_ctl[cp->cpu_id];

kmem_free((void *)ttc->ttc_first, trap_trace_bufsize);
ttc->ttc_first = NULL;
ttc->ttc_first = (uintptr_t)NULL;
}
#endif

Expand Down
4 changes: 2 additions & 2 deletions usr/src/uts/i86pc/os/trap.c
Original file line number Diff line number Diff line change
Expand Up @@ -2088,7 +2088,7 @@ dump_ttrace(void)

for (i = 0; i < n; i++) {
ttc = &trap_trace_ctl[i];
if (ttc->ttc_first == NULL)
if (ttc->ttc_first == (uintptr_t)NULL)
continue;

current = ttc->ttc_next - sizeof (trap_trace_rec_t);
Expand All @@ -2104,7 +2104,7 @@ dump_ttrace(void)
current =
ttc->ttc_limit - sizeof (trap_trace_rec_t);

if (current == NULL)
if (current == (uintptr_t)NULL)
continue;

rec = (trap_trace_rec_t *)current;
Expand Down

0 comments on commit 8f22c1d

Please sign in to comment.