kvm: testsuite: fix compilation failure using gcc 3.x
I've been getting compile errors lately with gcc 3.x compiling kvm 27
and 28:
gcc -I /home/dave/kvm/kvm-28/kernel/include -MMD -MF test/.access.d -g -fomit-frame-pointer -Wall -m64 -nostdlib -o test/access.flat -Wl,-T,flat.lds test/access.o test/cstart64.o test/printf.o test/print.o test/smp.o
test/print.o: In function `print':
/home/dave/kvm/kvm-28/user/test/print.S:19: undefined reference to `PSEUDO_SERIAL_PORT'
collect2: ld returned 1 exit status
Looking at 'gcc -E' output, you can see the problem:
...
.globl print
print:
push %rax
push %rsi
push %rdx
mov %rdi, %rsi
mov $PSEUDO_SERIAL_PORT, %edx
The PSEUDO_SERIAL_PORT macro isn't getting expanded for some reason.
However, it works in gcc 4.1. The following patch fixes it for me.
Signed-off-by: Avi Kivity <avi@qumranet.com>