]> rtime.felk.cvut.cz Git - socketcan-devel.git/commitdiff
Added 2.6.33 compatibility due to:
authorhartkopp <hartkopp@030b6a49-0b11-0410-94ab-b0dab22257f2>
Sat, 23 Jan 2010 21:15:00 +0000 (21:15 +0000)
committerhartkopp <hartkopp@030b6a49-0b11-0410-94ab-b0dab22257f2>
Sat, 23 Jan 2010 21:15:00 +0000 (21:15 +0000)
net: pass kern to net_proto_family create function

http://git.kernel.org/?p=linux/kernel/git/davem/net-next-2.6.git;a=commitdiff;h=3f378b684453f2a028eda463ce383370545d9cc9

git-svn-id: svn://svn.berlios.de//socketcan/trunk@1117 030b6a49-0b11-0410-94ab-b0dab22257f2

kernel/2.6/net/can/af_can.c

index b5513b375fedda704b9091d3941a1cbb04c11618..a96880456a1758294a3c324fec4ff1104c58f674 100644 (file)
@@ -139,7 +139,9 @@ static void can_sock_destruct(struct sock *sk)
 #endif
 }
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
+static int can_create(struct net *net, struct socket *sock, int protocol, int kern)
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
 static int can_create(struct net *net, struct socket *sock, int protocol)
 #else
 static int can_create(struct socket *sock, int protocol)