]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/infiniband/ulp/ipoib/ipoib.h
IPoIB: Fix build with CONFIG_INFINIBAND_IPOIB_CM=n
authorRoland Dreier <roland@purestorage.com>
Wed, 3 Oct 2012 04:23:43 +0000 (21:23 -0700)
committerRoland Dreier <roland@purestorage.com>
Wed, 3 Oct 2012 04:33:41 +0000 (21:33 -0700)
commit71d9c5f9e60846fa40c9efadda122d9cf275c1d2
tree809bbc9b14de1af464f8ab278a092e1b61f9f4e6
parent7a9a2970b5c1c2ce73d4bb84edaa7ebf13e0c841
IPoIB: Fix build with CONFIG_INFINIBAND_IPOIB_CM=n

With the new netlink support in commit 862096a8bbf8 ("IB/ipoib: Add more
rtnl_link_ops callbacks") we need ipoib_set_mode() to be available even
if connected mode isn't built.  Move the function from ipoib_cm.c to
ipoib_main.c (and make a few CM-related macros available unconditonally).

This fixes the build error

    drivers/built-in.o: In function 'ipoib_changelink':
    ipoib_netlink.c:(.text+0x6a5fc9): undefined reference to 'ipoib_set_mode'
    ipoib_netlink.c:(.text+0x6a5fe3): undefined reference to 'ipoib_set_mode'

when CONFIG_INFINIBAND_IPOIB_CM isn't set.

Reported-by: Randy Dunlap <rdunlap@xenotime.net>
Reported-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/ipoib/ipoib.h
drivers/infiniband/ulp/ipoib/ipoib_cm.c
drivers/infiniband/ulp/ipoib/ipoib_main.c