#include <linux/sunrpc/gss_api.h>
 #include <linux/spinlock.h>
 
-#if IS_ENABLED(CONFIG_SUNRPC_DEBUG)
-# define RPCDBG_FACILITY       RPCDBG_AUTH
-#endif
-
 #define RPC_CREDCACHE_DEFAULT_HASHBITS (4)
 struct rpc_cred_cache {
        struct hlist_head       *hashtable;
                }
        }
        rcu_read_unlock();
-
-       dprintk("RPC:       %s returns %d\n", __func__, result);
        return result;
 }
 EXPORT_SYMBOL_GPL(rpcauth_list_flavors);
        struct rpc_cred *ret;
        const struct cred *cred = current_cred();
 
-       dprintk("RPC:       looking up %s cred\n",
-               auth->au_ops->au_name);
-
        memset(&acred, 0, sizeof(acred));
        acred.cred = cred;
        ret = auth->au_ops->lookup_cred(auth, &acred, flags);
        };
        struct rpc_cred *ret;
 
-       dprintk("RPC: %5u looking up %s cred\n",
-               task->tk_pid, task->tk_client->cl_auth->au_ops->au_name);
        ret = auth->au_ops->lookup_cred(auth, &acred, lookupflags);
        put_cred(acred.cred);
        return ret;
 
        if (!acred.principal)
                return NULL;
-       dprintk("RPC: %5u looking up %s machine cred\n",
-               task->tk_pid, task->tk_client->cl_auth->au_ops->au_name);
        return auth->au_ops->lookup_cred(auth, &acred, lookupflags);
 }
 
 {
        struct rpc_auth *auth = task->tk_client->cl_auth;
 
-       dprintk("RPC: %5u looking up %s cred\n",
-               task->tk_pid, auth->au_ops->au_name);
        return rpcauth_lookupcred(auth, lookupflags);
 }
 
 {
        struct rpc_cred *cred = task->tk_rqstp->rq_cred;
 
-       dprintk("RPC: %5u marshaling %s cred %p\n",
-               task->tk_pid, cred->cr_auth->au_ops->au_name, cred);
-
        return cred->cr_ops->crmarshal(task, p);
 }
 
 {
        struct rpc_cred *cred = task->tk_rqstp->rq_cred;
 
-       dprintk("RPC: %5u validating %s cred %p\n",
-               task->tk_pid, cred->cr_auth->au_ops->au_name, cred);
-
        return cred->cr_ops->crvalidate(task, p);
 }
 
 {
        struct rpc_cred *cred = task->tk_rqstp->rq_cred;
 
-       dprintk("RPC: %5u using %s cred %p to wrap rpc data\n",
-                       task->tk_pid, cred->cr_ops->cr_name, cred);
        if (cred->cr_ops->crwrap_req)
                return cred->cr_ops->crwrap_req(task, encode, rqstp, data, obj);
        /* By default, we encode the arguments normally. */
 {
        struct rpc_cred *cred = task->tk_rqstp->rq_cred;
 
-       dprintk("RPC: %5u using %s cred %p to unwrap rpc data\n",
-                       task->tk_pid, cred->cr_ops->cr_name, cred);
        if (cred->cr_ops->crunwrap_resp)
                return cred->cr_ops->crunwrap_resp(task, decode, rqstp,
                                                   data, obj);
                        goto out;
                cred = task->tk_rqstp->rq_cred;
        }
-       dprintk("RPC: %5u refreshing %s cred %p\n",
-               task->tk_pid, cred->cr_auth->au_ops->au_name, cred);
 
        err = cred->cr_ops->crrefresh(task);
 out:
 {
        struct rpc_cred *cred = task->tk_rqstp->rq_cred;
 
-       dprintk("RPC: %5u invalidating %s cred %p\n",
-               task->tk_pid, cred->cr_auth->au_ops->au_name, cred);
        if (cred)
                clear_bit(RPCAUTH_CRED_UPTODATE, &cred->cr_flags);
 }
 
 static struct rpc_auth *
 unx_create(const struct rpc_auth_create_args *args, struct rpc_clnt *clnt)
 {
-       dprintk("RPC:       creating UNIX authenticator for client %p\n",
-                       clnt);
        refcount_inc(&unix_auth.au_count);
        return &unix_auth;
 }
 static void
 unx_destroy(struct rpc_auth *auth)
 {
-       dprintk("RPC:       destroying UNIX authenticator %p\n", auth);
 }
 
 /*
 {
        struct rpc_cred *ret = mempool_alloc(unix_pool, GFP_NOFS);
 
-       dprintk("RPC:       allocating UNIX cred for uid %d gid %d\n",
-                       from_kuid(&init_user_ns, acred->cred->fsuid),
-                       from_kgid(&init_user_ns, acred->cred->fsgid));
-
        rpcauth_init_cred(ret, acred, auth, &unix_credops);
        ret->cr_flags = 1UL << RPCAUTH_CRED_UPTODATE;
        return ret;
 unx_free_cred_callback(struct rcu_head *head)
 {
        struct rpc_cred *rpc_cred = container_of(head, struct rpc_cred, cr_rcu);
-       dprintk("RPC:       unx_free_cred %p\n", rpc_cred);
+
        put_cred(rpc_cred->cr_cred);
        mempool_free(rpc_cred, unix_pool);
 }