From: Eldad Zinger Date: Tue, 19 Oct 2010 14:49:53 +0000 (+0200) Subject: sdp: fix compilation error when compiling without debug flags X-Git-Tag: v4.1.12-92~264^2~5^2~80 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=39f2e2bb56604ba5c4dfdfa043399cb349981636;p=users%2Fjedix%2Flinux-maple.git sdp: fix compilation error when compiling without debug flags Signed-off-by: Eldad Zinger --- diff --git a/drivers/infiniband/ulp/sdp/sdp.h b/drivers/infiniband/ulp/sdp/sdp.h index b19997bcfb5ea..14b21b0338f32 100644 --- a/drivers/infiniband/ulp/sdp/sdp.h +++ b/drivers/infiniband/ulp/sdp/sdp.h @@ -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 */