Project

General

Profile

Actions

Bug #12542

closed

dtrace: NULL pointer errors

Added by Toomas Soome about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
DTrace
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build errors with NULL pointer:

  cc1: warnings being treated as errors
  ../../sparc/dtrace/fbt.c: In function 'fbt_trampoline_unmap':
  ../../sparc/dtrace/fbt.c:382: error: assignment makes integer from pointer without a cast
  ../../sparc/dtrace/fbt.c: In function 'fbt_provide_module':
  ../../sparc/dtrace/fbt.c:1043: error: comparison between pointer and integer
  ../../sparc/dtrace/fbt.c: In function 'fbt_attach':
  ../../sparc/dtrace/fbt.c:1733: error: passing argument 6 of 'ddi_create_minor_node' makes integer from pointer without a cast
  ../../common/sys/sunddi.h:1577: note: expected 'int' but argument is of type 'void *'
  *** Error code 1
  dmake: Warning: Command failed for target `obj64/fbt.o'
  ../../sparc/dtrace/sdt.c: In function 'sdt_attach':
  ../../sparc/dtrace/sdt.c:370: error: passing argument 6 of 'ddi_create_minor_node' makes integer from pointer without a cast
  ../../common/sys/sunddi.h:1577: note: expected 'int' but argument is of type 'void *'
  cc1: warnings being treated as errors
  ../../sparc/dtrace/dtrace_isa.c: In function 'dtrace_getpcstack':
  ../../sparc/dtrace/dtrace_isa.c:303: error: assignment makes integer from pointer without a cast
  ../../sparc/dtrace/dtrace_isa.c:346: error: assignment makes integer from pointer without a cast
  ../../sparc/dtrace/dtrace_isa.c: In function 'dtrace_getupcstack':
  ../../sparc/dtrace/dtrace_isa.c:508: error: assignment makes integer from pointer without a cast
  ../../sparc/dtrace/dtrace_isa.c: In function 'dtrace_getustackdepth':
  ../../sparc/dtrace/dtrace_isa.c:537: error: comparison between pointer and integer
  ../../sparc/dtrace/dtrace_isa.c: In function 'dtrace_getufpstack':
  ../../sparc/dtrace/dtrace_isa.c:640: error: assignment makes integer from pointer without a cast

Actions #1

Updated by Electric Monk about 2 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

git commit 692bcae7eb9419bcc3f9d011a67c6a5c6497a72f

commit  692bcae7eb9419bcc3f9d011a67c6a5c6497a72f
Author: Toomas Soome <tsoome@me.com>
Date:   2020-04-24T18:10:03.000Z

    12542 dtrace: NULL pointer errors
    Reviewed by: Gergő Doma <domag02@gmail.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF