2004-06-24 05:20:58

by Darren Williams

[permalink] [raw]
Subject: [PATCH] 2.6.7 fix broken alpha build ptrace.c error

When compiling an alpha 2.6.7 kernel the following
error was produced, attached is a patch that fixes
the build. I can supply a config file if necessary.

alpha-linux-gcc -Wp,-MD,arch/alpha/kernel/.ptrace.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -pipe -mno-fp-regs -ffixed-8 -msmall-data -mcpu=ev56 -Wa,-mev6 -O2 -fomit-frame-pointer -Werror -Wno-sign-compare -DKBUILD_BASENAME=ptrace -DKBUILD_MODNAME=ptrace -c -o arch/alpha/kernel/ptrace.o arch/alpha/kernel/ptrace.c
cc1: warnings being treated as errors
In file included from include/net/checksum.h:26,
from include/linux/skbuff.h:30,
from include/linux/security.h:34,
from arch/alpha/kernel/ptrace.c:16:
include/asm/checksum.h:75: warning: `struct in6_addr' declared inside parameter list
include/asm/checksum.h:75: warning: its scope is only this definition or declaration, which is probably not what you want
make[1]: *** [arch/alpha/kernel/ptrace.o] Error 1
make: *** [arch/alpha/kernel] Error 2

Darren

--------------------------------------------------
Darren Williams <dsw AT gelato.unsw.edu.au>
Gelato@UNSW <http://www.gelato.unsw.edu.au>
--------------------------------------------------


Attachments:
(No filename) (1.26 kB)
alpha-2.6.7-build-fix.patch (807.00 B)
Download all attachments