Project

General

Profile

Bug #6331

cleanup gcc warnings for sun4u/px build

Added by Igor Kozhukhov about 4 years ago. Updated about 4 years ago.

Status:
In Progress
Priority:
Normal
Category:
driver - device drivers
Start date:
2015-10-13
Due date:
% Done:

80%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

we have issues with boot on sun fire v215/v890 and based on debug build we have issues with px module in px_lib4u.c

+ /usr/gcc/4.4/bin/gcc -fident -finline -fno-inline-functions -fno-builtin -fno-asm -fdiagnostics- -m64 -mcpu=ultrasparc -mvis -fno-strict-aliasing -fno-unit-at-a-time -fno-optimize-sibling-calls -O2 -D_ASM_INLINES -Wall -Wextra -Werror -Wno-missing-braces -Wno-sign-compare -Wno-unknown-pragmas -Wno-unused-parameter -Wno-missing-field-initializers -gdwarf-2 -std=gnu99 -std=gnu99 -fno-inline-small-functions -fno-inline-functions-called-once -fno-ipa-cp -massume-32bit-callers -mno-fpu -D_KERNEL -ffreestanding -D_SYSCALL32 -D_SYSCALL32_IMPL -D_ELF64 -D_DDI_STRICT -Dsun -D__sun -D__SVR4 -Dsun4u -D_MACHDEP -DSFMMU -DSPITFIRE_MINREV_SUPPORTED=0x21 -DSF_ERRATA_30 -DBB_ERRATA_1 -DSF_ERRATA_32 -DSF_ERRATA_51 -DSF_ERRATA_54 -DSF_ERRATA_57 -DSF_V9_TABLE_28 -DCHEETAH_MINREV_SUPPORTED=0x30 -DCHEETAHPLUS_ERRATUM_25 -DCHEETAH_ERRATUM_109 -DCHEETAH_ERRATUM_127 -DJALAPENO_ERRATA_85 -DCHEETAHPLUS_ERRATUM_34 -DDEBUG -I../../sun4 -I../../sun4u -I../../sfmmu -I../../sparc/v9 -I../../sparc -I../../sparc/krtld -I../../sun -I../../sun4/io/px -I../../sun4u/io/px -nostdinc -I../../common -c -o debug64/px_lib4u.o ../../sun4u/io/px/px_lib4u.c 
cc1: warnings being treated as errors
../../sun4u/io/px/px_lib4u.c: In function 'px_lib_map_regs':
../../sun4u/io/px/px_lib4u.c:139: error: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
../../sun4u/io/px/px_lib4u.c:150: error: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
../../sun4u/io/px/px_lib4u.c:138: error: label 'done' defined but not used [-Wunused-label]
*** Error code 1
dmake: Fatal error: Command failed for target `debug64/px_lib4u.o'
Current working directory /ws/builds/igork/dilos-illumos.git/usr/src/uts/sun4u/px

History

#2

Updated by Igor Kozhukhov about 4 years ago

  • % Done changed from 0 to 80

Also available in: Atom PDF