]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Staging: lustre: libcfs: Remove typedefs for struct
authorShraddha Barke <shraddha.6596@gmail.com>
Fri, 4 Sep 2015 06:38:40 +0000 (12:08 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:47 +0000 (18:24 -0700)
commita8fff8bf6b8376ec14f3176c0601f2c318650ba0
treee5f6fafc6801df576b5ca509646d37dd87adc83e
parent780eb03eba8491bd15c0e87334660f9181757a21
Staging: lustre: libcfs: Remove typedefs for struct

The Linux kernel coding style guidelines suggest not using typedefs for
structure and enum types. This patch gets rid of the typedefs for
cfs_wi_sched_t.

The following Coccinelle semantic patch detects the cases for struct type:

@tn@
identifier i;
type td;
@@

-typedef
 struct i { ... }
-td
 ;

@@
type tn.td;
identifier tn.i;
@@

-td
+ struct i

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/libcfs/workitem.c