]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
NFSD: Drop TRACE_DEFINE_ENUM for NFSD4_CB_<state> macros
authorChuck Lever <chuck.lever@oracle.com>
Fri, 14 May 2021 19:56:37 +0000 (15:56 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 18 May 2021 17:44:04 +0000 (13:44 -0400)
TRACE_DEFINE_ENUM() is necessary for enum {} but not for C macros.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/trace.h

index 39b7caea46646b38df81b57aa8fc1dd30a8bfb4b..1c43e6647d1e832fe8d1e56ee8a72ff0a01c8271 100644 (file)
@@ -877,11 +877,6 @@ TRACE_EVENT(nfsd_cb_nodelegs,
        TP_printk("client %08x:%08x", __entry->cl_boot, __entry->cl_id)
 )
 
-TRACE_DEFINE_ENUM(NFSD4_CB_UP);
-TRACE_DEFINE_ENUM(NFSD4_CB_UNKNOWN);
-TRACE_DEFINE_ENUM(NFSD4_CB_DOWN);
-TRACE_DEFINE_ENUM(NFSD4_CB_FAULT);
-
 #define show_cb_state(val)                                             \
        __print_symbolic(val,                                           \
                { NFSD4_CB_UP,          "UP" },                         \