Actions
Bug #12620
closedlittleneck: NULL pointer errors
Start date:
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
Description
Build errors on SPARC with NULL pointers:
../../../sun4u/littleneck/os/littleneck.c: In function 'startup_platform': ../../../sun4u/littleneck/os/littleneck.c:54: error: incompatible type for argument 3 of 'mutex_init' ../../../common/sys/mutex.h:88: note: expected 'kmutex_type_t' but argument is of type 'void *' ../../../sun4u/littleneck/io/pcf8574_lneck.c: In function 'pcf8574_ioctl': ../../../sun4u/littleneck/io/pcf8574_lneck.c:309: error: comparison between pointer and integer ../../../sun4u/littleneck/io/pcf8574_lneck.c: In function 'pcf8574_do_attach': ../../../sun4u/littleneck/io/pcf8574_lneck.c:526: error: passing argument 6 of 'ddi_create_minor_node' makes integer from pointer without a cast ../../../common/sys/sunddi.h:1571: note: expected 'int' but argument is of type 'void *'
Actions