Project

General

Profile

Actions

Bug #12658

closed

lw8: NULL pointer errors

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

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build errors on SPARC with NULL pointer:

    ../../../sun4u/lw8/io/ntwdt.c: In function 'ntwdt_attach':
    ../../../sun4u/lw8/io/ntwdt.c:678: 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 *'

    ../../../sun4u/lw8/io/sgfru.c: In function 'sgfru_attach':
    ../../../sun4u/lw8/io/sgfru.c:189: 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 *'

    ../../../sun4u/lw8/io/sgenv.c:260: error: initialization makes integer from pointer without a cast
    ../../../sun4u/lw8/io/sgenv.c:261: error: initialization makes integer from pointer without a cast
    ../../../sun4u/lw8/io/sgenv.c: In function 'sgenv_attach':
    ../../../sun4u/lw8/io/sgenv.c:549: 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 *'
    ../../../sun4u/lw8/io/sgenv.c: In function 'sgenv_add_kstats':
    ../../../sun4u/lw8/io/sgenv.c:647: error: passing argument 7 of 'kstat_create' makes integer from pointer without a cast
    ../../../common/sys/kstat.h:793: note: expected 'uchar_t' but argument is of type 'void *'

    ../../../sun4u/lw8/io/lw8.c: In function 'lw8_attach':
    ../../../sun4u/lw8/io/lw8.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 *'

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 d1d6926f26db4efbd2feae8af9da2c4eb205853b

commit  d1d6926f26db4efbd2feae8af9da2c4eb205853b
Author: Toomas Soome <tsoome@me.com>
Date:   2020-05-08T05:42:58.000Z

    12658 lw8: NULL pointer errors
    Reviewed by: Peter Tribble <peter.tribble@gmail.com>
    Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
    Approved by: Gordon Ross <gordon.w.ross@gmail.com>

Actions

Also available in: Atom PDF