NetBSD-Users archive

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

Kernel compile errors



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).

-- 
markov%sdf.lonestar.org@localhost
SDF Public Access UNIX System - http://sdf.lonestar.org


Home | Main Index | Thread Index | Old Index