diff options
author | Roland Dreier <rolandd@cisco.com> | 2005-11-02 23:51:01 -0500 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2005-11-02 23:51:01 -0500 |
commit | 8ae5a8a24f7fe797027d481f88c1464b0e47eede (patch) | |
tree | 389cecdfb0769cdddd0e901c1d60b9549b0a6322 /drivers/infiniband/ulp/ipoib/ipoib.h | |
parent | 21a384897d48c116b879924c3dd9e96f6f1e764b (diff) |
[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>
Diffstat (limited to 'drivers/infiniband/ulp/ipoib/ipoib.h')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib.h b/drivers/infiniband/ulp/ipoib/ipoib.h index c994a916a58a..0095acc0fbbe 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib.h +++ b/drivers/infiniband/ulp/ipoib/ipoib.h | |||
@@ -235,6 +235,7 @@ static inline void ipoib_put_ah(struct ipoib_ah *ah) | |||
235 | kref_put(&ah->ref, ipoib_free_ah); | 235 | kref_put(&ah->ref, ipoib_free_ah); |
236 | } | 236 | } |
237 | 237 | ||
238 | int ipoib_open(struct net_device *dev); | ||
238 | int ipoib_add_pkey_attr(struct net_device *dev); | 239 | int ipoib_add_pkey_attr(struct net_device *dev); |
239 | 240 | ||
240 | void ipoib_send(struct net_device *dev, struct sk_buff *skb, | 241 | void ipoib_send(struct net_device *dev, struct sk_buff *skb, |
@@ -267,6 +268,7 @@ int ipoib_mcast_stop_thread(struct net_device *dev, int flush); | |||
267 | void ipoib_mcast_dev_down(struct net_device *dev); | 268 | void ipoib_mcast_dev_down(struct net_device *dev); |
268 | void ipoib_mcast_dev_flush(struct net_device *dev); | 269 | void ipoib_mcast_dev_flush(struct net_device *dev); |
269 | 270 | ||
271 | #ifdef CONFIG_INFINIBAND_IPOIB_DEBUG | ||
270 | struct ipoib_mcast_iter *ipoib_mcast_iter_init(struct net_device *dev); | 272 | struct ipoib_mcast_iter *ipoib_mcast_iter_init(struct net_device *dev); |
271 | void ipoib_mcast_iter_free(struct ipoib_mcast_iter *iter); | 273 | void ipoib_mcast_iter_free(struct ipoib_mcast_iter *iter); |
272 | int ipoib_mcast_iter_next(struct ipoib_mcast_iter *iter); | 274 | int ipoib_mcast_iter_next(struct ipoib_mcast_iter *iter); |
@@ -276,6 +278,7 @@ void ipoib_mcast_iter_read(struct ipoib_mcast_iter *iter, | |||
276 | unsigned int *queuelen, | 278 | unsigned int *queuelen, |
277 | unsigned int *complete, | 279 | unsigned int *complete, |
278 | unsigned int *send_only); | 280 | unsigned int *send_only); |
281 | #endif | ||
279 | 282 | ||
280 | int ipoib_mcast_attach(struct net_device *dev, u16 mlid, | 283 | int ipoib_mcast_attach(struct net_device *dev, u16 mlid, |
281 | union ib_gid *mgid); | 284 | union ib_gid *mgid); |