From: Roland Dreier Date: Wed, 2 May 2012 22:42:33 +0000 (-0700) Subject: RDMA/ocrdma: Fix build with IPV6=n X-Git-Tag: v3.5-rc1~171^2^8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=349556692df946b9cd5b84f2b0fa09b98732e986;p=pandora-kernel.git RDMA/ocrdma: Fix build with IPV6=n When IPV6 is not enabled: ERROR: "register_inet6addr_notifier" [drivers/infiniband/hw/ocrdma/ocrdma.ko] undefined! ERROR: "unregister_inet6addr_notifier" [drivers/infiniband/hw/ocrdma/ocrdma.ko] undefined! Fix this by wrapping the inet6 calls in #ifdef IPV6. Also make the ocrdma module depend on (IPV6 || IPV6=n) to forbid the case of modular ipv6 but built-in ocrdma (which can't work, because ocrdma calls ipv6 functions). Reported-by: Randy Dunlap Signed-off-by: Roland Dreier --- Reading git-diff-tree failed