staging/lustre: Get rid of cfs_trace_buf_type_t typedef
authorOleg Drokin <green@linuxhacker.ru>
Tue, 16 Feb 2016 05:47:12 +0000 (00:47 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Feb 2016 22:33:11 +0000 (14:33 -0800)
Replace it with enum cfs_trace_buf_type

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/libcfs/linux/linux-tracefile.c
drivers/staging/lustre/lustre/libcfs/tracefile.h

index eccf048abc009ca3cdaff1abaa5522e62c8baad1..809ea50fd08fef4de32685c7f36e3d731219ef73 100644 (file)
@@ -130,7 +130,7 @@ void cfs_tracefile_write_unlock(void)
        up_write(&cfs_tracefile_sem);
 }
 
-cfs_trace_buf_type_t cfs_trace_buf_idx_get(void)
+enum cfs_trace_buf_type cfs_trace_buf_idx_get(void)
 {
        if (in_irq())
                return CFS_TCD_TYPE_IRQ;
index dffe07fd513389634d0a7dfb87561b8a8439bd31..4c77f9044dd35d1228f64827f8df7d61620006ba 100644 (file)
 
 #include "../../include/linux/libcfs/libcfs.h"
 
-typedef enum {
+enum cfs_trace_buf_type {
        CFS_TCD_TYPE_PROC = 0,
        CFS_TCD_TYPE_SOFTIRQ,
        CFS_TCD_TYPE_IRQ,
        CFS_TCD_TYPE_MAX
-} cfs_trace_buf_type_t;
+};
 
 /* trace file lock routines */
 
@@ -208,7 +208,7 @@ int cfs_trace_lock_tcd(struct cfs_trace_cpu_data *tcd, int walking);
 void cfs_trace_unlock_tcd(struct cfs_trace_cpu_data *tcd, int walking);
 
 extern char *cfs_trace_console_buffers[NR_CPUS][CFS_TCD_TYPE_MAX];
-cfs_trace_buf_type_t cfs_trace_buf_idx_get(void);
+enum cfs_trace_buf_type cfs_trace_buf_idx_get(void);
 
 static inline char *
 cfs_trace_get_console_buffer(void)