[PATCH] 2.6.7 fix broken alpha build ptrace.c error

From: Darren Williams
Date: Thu Jun 24 2004 - 00:22:57 EST


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 <www.gelato.unsw.edu.au>
--------------------------------------------------
# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2004/06/24 15:04:33+10:00 dsw@quasar.(none)
# Fix broken alpha build
#
# include/asm-alpha/checksum.h
# 2004/06/24 15:04:23+10:00 dsw@quasar.(none) +1 -0
# A change was made between 2.6.6 and 2.6.7 that breaks the alpha build.
# This patch rectifies the problem, by including 'linux/in6.h'
#
# signed-off-by Darren Williams <dsw@xxxxxxxxxxxxxxxxxx>
#
diff -Nru a/include/asm-alpha/checksum.h b/include/asm-alpha/checksum.h
--- a/include/asm-alpha/checksum.h 2004-06-24 15:06:28 +10:00
+++ b/include/asm-alpha/checksum.h 2004-06-24 15:06:28 +10:00
@@ -1,6 +1,7 @@
#ifndef _ALPHA_CHECKSUM_H
#define _ALPHA_CHECKSUM_H

+#include <linux/in6.h>

/*
* This is a version of ip_compute_csum() optimized for IP headers,