Current-Users archive

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

Re: kernel build failure on amd64 -- genfb_machdep.o



Hi,

I have the same problem.
Even after commenting out the failing positions (just debug-information), the
kernel won't build because x86_genfb_mtrr_init has no previous prototype.
After applying these two patches (appended), the kernel built fine for me.

Don't treat these patches as useful, they're only suitable for this single
problem. The first patch will fail to build on 32-bit-systems, but I know no
useful substitute for displaying this uint64_t generically on 32- and
64-bit-systems of different platforms.

> cc1: warnings being treated as errors
> /usr/src/sys/arch/x86/x86/genfb_machdep.c:79: warning: no previous
> prototype for 'x86_genfb_mtrr_init'
>   1
> /usr/src/sys/arch/x86/x86/genfb_machdep.c: In function
> 'x86_genfb_mtrr_init': /usr/src/sys/arch/x86/x86/genfb_machdep.c:96:
> warning: format '%llx' expects type 'long long unsigned int', but argument
> 3 has type '__uint64_t'
> /usr/src/sys/arch/x86/x86/genfb_machdep.c:96: warning: format '%llx'
> expects type 'long long unsigned int', but argument 4 has type
> '__uint64_t'


Regards, Julian

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index