From 189cec947430b7a6f341aec722db58c877856ed4 Mon Sep 17 00:00:00 2001 From: panda Date: Mon, 2 Nov 2009 12:38:55 +0000 Subject: [PATCH] b=18948 i=Mike Pershin i=Andrew Perepechko fix the compile warning --- lustre/include/lustre_net.h | 5 ++++- lustre/ptlrpc/pinger.c | 1 + lustre/ptlrpc/ptlrpc_internal.h | 5 ----- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lustre/include/lustre_net.h b/lustre/include/lustre_net.h index 67d5ca6..d5e060e 100644 --- a/lustre/include/lustre_net.h +++ b/lustre/include/lustre_net.h @@ -1159,7 +1159,10 @@ int ping_evictor_wake(struct obd_export *exp); #else #define ping_evictor_start() do {} while (0) #define ping_evictor_stop() do {} while (0) -#define ping_evictor_wake(exp) 1 +static inline int ping_evictor_wake(struct obd_export *exp) +{ + return 1; +} #endif /* ptlrpc/ptlrpcd.c */ diff --git a/lustre/ptlrpc/pinger.c b/lustre/ptlrpc/pinger.c index 9ad3ca7..1374e03 100644 --- a/lustre/ptlrpc/pinger.c +++ b/lustre/ptlrpc/pinger.c @@ -46,6 +46,7 @@ #include #include +#include #include "ptlrpc_internal.h" struct semaphore pinger_sem; diff --git a/lustre/ptlrpc/ptlrpc_internal.h b/lustre/ptlrpc/ptlrpc_internal.h index 84dccf9..7813a40 100644 --- a/lustre/ptlrpc/ptlrpc_internal.h +++ b/lustre/ptlrpc/ptlrpc_internal.h @@ -97,11 +97,6 @@ void ptlrpc_pinger_sending_on_import(struct obd_import *imp); void ptlrpc_pinger_commit_expected(struct obd_import *imp); void ptlrpc_pinger_wake_up(void); void ptlrpc_ping_import_soon(struct obd_import *imp); -#ifdef __KERNEL__ -int ping_evictor_wake(struct obd_export *exp); -#else -#define ping_evictor_wake(exp) 1 -#endif /* recov_thread.c */ int llog_recov_init(void); -- 1.8.3.1