Subject: Re: building powernow_k7.o fails
To: Jukka Salmi <j+nbsd@2006.salmi.ch>
From: Juan RP <juan@xtrarom.org>
List: current-users
Date: 02/04/2006 15:01:43
On Sat, 4 Feb 2006 08:48:16 +0100
Jukka Salmi <j+nbsd@2006.salmi.ch> wrote:

> Hi,
> 
> building a kernel based on GENERIC_LAPTOP just failed with
> 
> #   compile  ANOLE.APM/powernow_k7.o
> /opt/tools/i386/bin/i386--netbsdelf-gcc -ffreestanding -O2 -Werror
> -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith
> -Wmissing-prototypes -Wstrict-prototypes -Wreturn-type -Wswitch
> -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare
> -fno-zero-initialized-in-bss -Di386 -I. -I/usr/src/sys/arch
> -I/usr/src/sys -nostdinc -DLKM -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT
> -I/usr/src/sys/lib/libkern/../../../common/lib/libc/quad
> -I/usr/src/sys/lib/libkern/../../../common/lib/libc/string
> -I/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/i386/string
> -I/usr/src/sys/dist/ipf
> -c /usr/src/sys/arch/i386/i386/powernow_k7.c/usr/src/sys/arch/i386/i386/powernow_k7.c:117:
> warning: `sysctllog' defined but not used
[...]
> I think the attached patch fixes this problem.

Fixed, thanks.