|
@@ -79,7 +79,7 @@ struct rpc_task {
|
|
|
unsigned short tk_flags; /* misc flags */
|
|
|
unsigned short tk_timeouts; /* maj timeouts */
|
|
|
|
|
|
-#if defined(RPC_DEBUG) || defined(RPC_TRACEPOINTS)
|
|
|
+#if IS_ENABLED(CONFIG_SUNRPC_DEBUG) || defined(RPC_TRACEPOINTS)
|
|
|
unsigned short tk_pid; /* debugging aid */
|
|
|
#endif
|
|
|
unsigned char tk_priority : 2,/* Task priority */
|
|
@@ -187,7 +187,7 @@ struct rpc_wait_queue {
|
|
|
unsigned char nr; /* # tasks remaining for cookie */
|
|
|
unsigned short qlen; /* total # tasks waiting in queue */
|
|
|
struct rpc_timer timer_list;
|
|
|
-#if defined(RPC_DEBUG) || defined(RPC_TRACEPOINTS)
|
|
|
+#if IS_ENABLED(CONFIG_SUNRPC_DEBUG) || defined(RPC_TRACEPOINTS)
|
|
|
const char * name;
|
|
|
#endif
|
|
|
};
|
|
@@ -237,7 +237,7 @@ void rpc_free(void *);
|
|
|
int rpciod_up(void);
|
|
|
void rpciod_down(void);
|
|
|
int __rpc_wait_for_completion_task(struct rpc_task *task, wait_bit_action_f *);
|
|
|
-#ifdef RPC_DEBUG
|
|
|
+#if IS_ENABLED(CONFIG_SUNRPC_DEBUG)
|
|
|
struct net;
|
|
|
void rpc_show_tasks(struct net *);
|
|
|
#endif
|
|
@@ -251,7 +251,7 @@ static inline int rpc_wait_for_completion_task(struct rpc_task *task)
|
|
|
return __rpc_wait_for_completion_task(task, NULL);
|
|
|
}
|
|
|
|
|
|
-#if defined(RPC_DEBUG) || defined (RPC_TRACEPOINTS)
|
|
|
+#if IS_ENABLED(CONFIG_SUNRPC_DEBUG) || defined (RPC_TRACEPOINTS)
|
|
|
static inline const char * rpc_qname(const struct rpc_wait_queue *q)
|
|
|
{
|
|
|
return ((q && q->name) ? q->name : "unknown");
|