tech-kern archive

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

Re: _KMEMUSER and __HAVE_CPU_DATA_FIRST



christos wrote:

> If you can and have defined __HAVE_CPU_DATA_FIRST you should not
> need to expose anything in <machine/cpu.h>. It is probably better
> to revert all changes that exposed struct cpu_info in the first
> place because it is not needed.

I just tried to revert it. But compiling vmstat for PPC still doesn't work,
although __HAVE_CPU_DATA_FIRST is defined in powerpc/include/types.h.

#   compile  vmstat/vmstat.o
/home/frank/netbsd/current/src/obj/tooldir.NetBSD-5.1-i386/bin/powerpc--netbsd-gcc
-O2 -fstack-protector -Wstack-protector --param ssp-buffer-size=1 -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare
-Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow
-Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wsign-compare
-std=gnu99  -Werror   -D_KMEMUSER -I/home/frank/netbsd/current/src/sys
-nostdinc -isystem
/home/frank/netbsd/current/src/obj/destdir.macppc/usr/include 
-D_FORTIFY_SOURCE=2 -c   
/home/frank/netbsd/current/src/usr.bin/vmstat/vmstat.c
/home/frank/netbsd/current/src/usr.bin/vmstat/vmstat.c: In function
'cpucounters':
/home/frank/netbsd/current/src/usr.bin/vmstat/vmstat.c:979: error:
dereferencing pointer to incomplete type
/home/frank/netbsd/current/src/usr.bin/vmstat/vmstat.c:980: error: storage
size of 'tci' isn't known
cc1: warnings being treated as errors
/home/frank/netbsd/current/src/usr.bin/vmstat/vmstat.c:980: warning: unused
variable 'tci'
*** Failed target:  vmstat.o

-- 
Frank Wille



Home | Main Index | Thread Index | Old Index