On Sat, Dec 5, 2009 at 1:27 PM, Raúl Porcel <armin76@xxxxxxxxxx> wrote: > If CONFIG_ALPHA_LEGACY_START_ADDRESS is not set, which is needed to be > unset if the machine is Marvel/Titan/Wildfire, it fails to build: > > CC arch/alpha/kernel/err_marvel.o > cc1: warnings being treated as errors > arch/alpha/kernel/err_marvel.c: In function 'marvel_print_err_cyc': > arch/alpha/kernel/err_marvel.c:119: error: format '%ld' expects type > 'long int', but argument 6 has type 'u64' > arch/alpha/kernel/err_marvel.c: In function 'marvel_print_po7_ugbge_sym': > arch/alpha/kernel/err_marvel.c:321: error: format '%ld' expects type > 'long int', but argument 4 has type 'u64' > arch/alpha/kernel/err_marvel.c:321: error: format '%ld' expects type > 'long int', but argument 5 has type 'u64' > arch/alpha/kernel/err_marvel.c: In function 'marvel_print_pox_spl_cmplt': > arch/alpha/kernel/err_marvel.c:560: error: format '%ld' expects type > 'long int', but argument 4 has type 'long long unsigned int' > arch/alpha/kernel/err_marvel.c:560: error: format '%ld' expects type > 'long int', but argument 5 has type 'long long unsigned int' > arch/alpha/kernel/err_marvel.c:560: error: format '%ld' expects type > 'long int', but argument 6 has type 'long long unsigned int' > make[1]: *** [arch/alpha/kernel/err_marvel.o] Error 1 > make: *** [arch/alpha/kernel] Error 2 Attached is a completely untested patch. It just tries to get rid of u64 by replacing them with unsigned long. Matt
Attachment:
fix-up-err_marvel.c.patch
Description: Binary data