Project

General

Profile

Actions

Bug #12643

closed

trapstat: NULL pointer errors

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

Build errors on SPARC with NULL pointers:

    ../../sun4/io/trapstat.c: In function 'trapstat_enable':
    ../../sun4/io/trapstat.c:931: error: passing argument 1 of 'hv_set_ctx0' makes integer from pointer without a cast
    ../../sun4v/sys/hypervisor_api.h:356: note: expected 'uint64_t' but argument is of type 'void *'
    ../../sun4/io/trapstat.c:931: error: passing argument 2 of 'hv_set_ctx0' makes integer from pointer without a cast
    ../../sun4v/sys/hypervisor_api.h:356: note: expected 'uint64_t' but argument is of type 'void *'
    ../../sun4/io/trapstat.c:932: error: passing argument 1 of 'hv_set_ctxnon0' makes integer from pointer without a cast
    ../../sun4v/sys/hypervisor_api.h:357: note: expected 'uint64_t' but argument is of type 'void *'
    ../../sun4/io/trapstat.c:932: error: passing argument 2 of 'hv_set_ctxnon0' makes integer from pointer without a cast
    ../../sun4v/sys/hypervisor_api.h:357: note: expected 'uint64_t' but argument is of type 'void *'

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 5d2f9f1aa99a42e638400d4e11f5d87ff95ce0db

commit  5d2f9f1aa99a42e638400d4e11f5d87ff95ce0db
Author: Toomas Soome <tsoome@me.com>
Date:   2020-05-09T15:09:27.000Z

    12643 trapstat: NULL pointer errors
    Reviewed by: C Fraire <cfraire@me.com>
    Approved by: Garrett D'Amore <garrett@damore.org>

Actions

Also available in: Atom PDF