Project

General

Profile

Actions

Bug #12642

closed

n2rng: 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:

    ../../sun4v/io/n2rng/n2rng.c: In function 'n2rng_check_ctl_access':
    ../../sun4v/io/n2rng/n2rng.c:948: error: passing argument 1 of 'hv_rng_ctl_read_v2' makes integer from pointer without a cast
    ../../sun4v/sys/n2rng.h:357: note: expected 'uint64_t' but argument is of type 'void *'

    ../../sun4v/io/n2rng/n2rng_kcf.c: In function 'n2rng_register_provider':
    ../../sun4v/io/n2rng/n2rng_kcf.c:210: error: assignment makes integer from pointer without a cast
    ../../sun4v/io/n2rng/n2rng_kcf.c: In function 'n2rng_unregister_provider':
    ../../sun4v/io/n2rng/n2rng_kcf.c:239: 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 03b8b03e25cb9c6f5d0770cb73790096e0f19cbf

commit  03b8b03e25cb9c6f5d0770cb73790096e0f19cbf
Author: Toomas Soome <tsoome@me.com>
Date:   2020-05-07T14:59:38.000Z

    12642 n2rng: NULL pointer errors
    Reviewed by: Jason Lippert <jason@glasspelican.ca>
    Approved by: Gordon Ross <gordon.w.ross@gmail.com>

Actions

Also available in: Atom PDF