tech-kern archive

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


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
-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/usr.bin/vmstat/vmstat.c: In function
/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