NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Kernel compile errors



On Fri, Nov 26, 2010 at 11:02:51PM +0000, Vlad D.Markov wrote:
> I am attempting to compile a CARDUS kernel but I get this:
> 
> cc1: warnings being treated as errors
> ../../../../dev/cardbus/rbus_ppb.c: In function 'rbus_pci_addr_fixup':
> ../../../../dev/cardbus/rbus_ppb.c:313: warning: format '%08lx' expects type 
> 'long unsigned int', but argument 3 has type 'bus_size_t'
> ../../../../dev/cardbus/rbus_ppb.c:313: warning: format '%08lx' expects type 
> 'long unsigned int', but argument 4 has type 'bus_size_t'
> ../../../../dev/cardbus/rbus_ppb.c:328: warning: format '%ld' expects type 
> 'long int', but argument 2 has type 'bus_size_t'
> ../../../../dev/cardbus/rbus_ppb.c:348: warning: format '%ld' expects type 
> 'long int', but argument 3 has type 'bus_size_t'
> ../../../../dev/cardbus/rbus_ppb.c:369: warning: format '%08lx' expects type 
> 'long unsigned int', but argument 5 has type 'bus_size_t'
> ../../../../dev/cardbus/rbus_ppb.c:369: warning: format '%08lx' expects type 
> 'long unsigned int', but argument 6 has type 'bus_size_t'
> ../../../../dev/cardbus/rbus_ppb.c:385: warning: format '%ld' expects type 
> 'long int', but argument 2 has type 'bus_size_t'
> ../../../../dev/cardbus/rbus_ppb.c:422: warning: format '%ld' expects type 
> 'long int', but argument 2 has type 'bus_size_t'
> 
> They looked like print statements so I cast them to (long unsigned int).
> 
I neglected to say this was 5.1. After my changes, the kernel booted
and appeared to work.
-- 
markov%sdf.lonestar.org@localhost
SDF Public Access UNIX System - http://sdf.lonestar.org


Home | Main Index | Thread Index | Old Index