]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
sdp: fix compilation error when compiling without debug flags
authorEldad Zinger <eldadz@mellanox.co.il>
Tue, 19 Oct 2010 14:49:53 +0000 (16:49 +0200)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 6 Oct 2015 12:05:29 +0000 (05:05 -0700)
Signed-off-by: Eldad Zinger <eldadz@mellanox.co.il>
drivers/infiniband/ulp/sdp/sdp.h

index b19997bcfb5ea0af51506cc2c60546790ece7916..14b21b0338f32a55cd2fe67dc4ab45acd8e02716 100644 (file)
@@ -614,10 +614,7 @@ out:
 #define sdp_add_to_history(sk, str)    \
        _sdp_add_to_history(sk, str, __func__, __LINE__, 0, 0)
 #else
-static inline void _sdp_add_to_history(struct sock *sk, const char *str,
-                               const char *func, int line, int ref_type, int ref_enum)
-{
-}
+#define _sdp_add_to_history(sk, str, func, line, ref_type, ref_enum)
 #define sdp_add_to_history(sk, str)
 #endif /* SDP_SOCK_HISTORY */