Project

General

Profile

Actions

Bug #10635

closed

ramdisk: NULL pointer errors

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

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build errors with NULL pointer:

    In file included from ../../common/sys/param.h:48:0,
                     from ../../common/io/ramdisk.c:69:
    ../../common/io/ramdisk.c: In function 'rd_attach':
    ../../common/sys/null.h:32:14: error: passing argument 6 of 'ddi_create_minor_node' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/io/ramdisk.c:827:32: note: in expansion of macro 'NULL'
            S_IFCHR, 0, DDI_PSEUDO, NULL) == DDI_FAILURE) {
                                    ^~~~
    In file included from ../../common/io/ramdisk.c:83:0:
    ../../common/sys/sunddi.h:1564:1: note: expected 'int' but argument is of type 'void *'
     ddi_create_minor_node(dev_info_t *dip, char *name, int spec_type,
     ^~~~~~~~~~~~~~~~~~~~~
    cc1: all warnings being treated as errors

Actions #1

Updated by Electric Monk about 3 years ago

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

git commit 3e2cb4848b2c2c2e9311650d86c7e37e82a245f4

commit  3e2cb4848b2c2c2e9311650d86c7e37e82a245f4
Author: Toomas Soome <tsoome@me.com>
Date:   2019-04-05T05:16:51.000Z

    10635 ramdisk: NULL pointer errors
    Reviewed by: Sebastian Wiedenroth <sebastian.wiedenroth@skylime.net>
    Reviewed by: Andy Fiddaman <andy@omniosce.org>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF