[openib-general] [PATCH][SDP] Allow SDP to compile on 2.6.12-rc3

Roland Dreier roland at topspin.com
Thu Apr 21 15:36:19 PDT 2005


    Tom> The sock structure was changed in 2.6.12-rc? and SDP no
    Tom> longer compiles against it.  This patch allows SDP to build
    Tom> with either 2.6.11 or 2.6.12-rc3 as we must preserve building
    Tom> on current stable tree.

Is this really the only change required?  It seems that the socket
allocation function changed too -- 2.6.11 has

	extern struct sock *		sk_alloc(int family, int priority, int zero_it,
						 kmem_cache_t *slab);

while my up-to-date Linus tree has

	extern struct sock		*sk_alloc(int family, int priority,
						  struct proto *prot, int zero_it);

so I think sdp_conn.c at least needs some fixing up.

(I don't have time track down what goes in struct proto right now, so
I'm not posting a real patch)

 - R.



More information about the general mailing list