diff options
author | Gargi Sharma <gs051095@gmail.com> | 2017-02-28 12:31:47 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-06 09:17:08 +0100 |
commit | 69385ad9abc34a9051e983f0b62a8f8e472a9037 (patch) | |
tree | ac84c1101b37c92f465c367a16e355a67476ca4e /drivers/staging/lustre | |
parent | Staging: xgifb: vb_setmode.c: Fix checkpath warnings (diff) | |
download | linux-dev-69385ad9abc34a9051e983f0b62a8f8e472a9037.tar.xz linux-dev-69385ad9abc34a9051e983f0b62a8f8e472a9037.zip |
staging: lustre: Replace typedef with struct
As per the Linux kernel coding style guidelines, using typedef for a
structure type is not recommended. Hence, occurences of typedefs have
been removed. To find the occurences of the structures grep was used
and no uses were found.
Coccinelle script:
@r1@
type T;
@@
typedef struct { ... } T;
@script:python c1@
T2;
T << r1.T;
@@
coccinelle.T2=T;
@@
type r1.T;
identifier c1.T2;
@@
-typedef
struct
+ T2
{ ... }
-T
;
Signed-off-by: Gargi Sharma <gs051095@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre')
-rw-r--r-- | drivers/staging/lustre/lustre/include/lustre_eacl.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/staging/lustre/lustre/include/lustre_eacl.h b/drivers/staging/lustre/lustre/include/lustre_eacl.h index 1e71a8638186..c198eda14054 100644 --- a/drivers/staging/lustre/lustre/include/lustre_eacl.h +++ b/drivers/staging/lustre/lustre/include/lustre_eacl.h @@ -49,17 +49,17 @@ #include <linux/fs.h> #include <linux/posix_acl_xattr.h> -typedef struct { +struct ext_acl_xattr_entry { __u16 e_tag; __u16 e_perm; __u32 e_id; __u32 e_stat; -} ext_acl_xattr_entry; +}; -typedef struct { - __u32 a_count; - ext_acl_xattr_entry a_entries[0]; -} ext_acl_xattr_header; +struct ext_acl_xattr_header { + __u32 a_count; + struct ext_acl_xattr_entry a_entries[0]; +}; #define CFS_ACL_XATTR_SIZE(count, prefix) \ (sizeof(prefix ## _header) + (count) * sizeof(prefix ## _entry)) |