]> git.baikalelectronics.ru Git - kernel.git/commit
[IPoIB] don't compile debug code if debugging isn't enabled
authorRoland Dreier <rolandd@cisco.com>
Thu, 3 Nov 2005 04:51:01 +0000 (20:51 -0800)
committerRoland Dreier <rolandd@cisco.com>
Thu, 3 Nov 2005 04:51:01 +0000 (20:51 -0800)
commit41ca7706eac073ec5d41141b65b0abe5f3433e80
tree389cecdfb0769cdddd0e901c1d60b9549b0a6322
parent2e54528d73cb37289238d08dac47435ad7f12abd
[IPoIB] don't compile debug code if debugging isn't enabled

Don't build ipoib_mcast_iter_ functions if CONFIG_INFINIBAND_IPOIB_DEBUG
is not enabled -- their only callers will not be built either.

Also move the prototype for ipoib_open() to ipoib.h to fix a sparse warning.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib.h
drivers/infiniband/ulp/ipoib/ipoib_ib.c
drivers/infiniband/ulp/ipoib/ipoib_multicast.c