From d1c7de4e09488123c8fdf71b05e9a2383ca32d27 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Sat, 1 Jan 2005 17:46:42 -0800 Subject: [PATCH] fix inet6_sk for non IPV6 builds again The recent ipv6 "fix" broke the build: security/selinux/avc.c: In function `avc_audit': security/selinux/avc.c:581: warning: implicit declaration of function `inet6_sk' security/selinux/avc.c:581: warning: initialization makes pointer from integer without a cast Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- include/linux/ipv6.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include') diff --git a/include/linux/ipv6.h b/include/linux/ipv6.h index c99f73e36521..f042ae186520 100644 --- a/include/linux/ipv6.h +++ b/include/linux/ipv6.h @@ -289,6 +289,17 @@ static inline struct raw6_opt * raw6_sk(const struct sock *__sk) #else #define __ipv6_only_sock(sk) 0 #define ipv6_only_sock(sk) 0 + +static inline struct ipv6_pinfo * inet6_sk(const struct sock *__sk) +{ + return NULL; +} + +static inline struct raw6_opt * raw6_sk(const struct sock *__sk) +{ + return NULL; +} + #endif #endif -- cgit v1.2.3