staging: lustre: fix OPEN_BRACE checkpatch.pl errors
authorMike Rapoport <mike.rapoport@gmail.com>
Sat, 22 Aug 2015 14:17:23 +0000 (17:17 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:12 +0000 (18:24 -0700)
Fix occurencies of the following checkpatch.pl error:
ERROR: open brace '{' following function declarations go on
the next line

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/lprocfs_status.h
drivers/staging/lustre/lustre/include/lustre/lustre_user.h
drivers/staging/lustre/lustre/obdclass/cl_object.c

index fd3c4df319c205c221a67aba32a6df7b98b1c08c..213666b03f7c1e3857f302b6b2c4349dd48ed4fd 100644 (file)
@@ -206,7 +206,8 @@ struct lprocfs_stats {
 #define OPC_RANGE(seg) (seg ## _LAST_OPC - seg ## _FIRST_OPC)
 
 /* Pack all opcodes down into a single monotonically increasing index */
-static inline int opcode_offset(__u32 opc) {
+static inline int opcode_offset(__u32 opc)
+{
        if (opc < OST_LAST_OPC) {
                 /* OST opcode */
                return (opc - OST_FIRST_OPC);
index 9b1bb23c4d3c00ac89185d3c52a69d7f5808b2c1..144afbed4d6552bf369c0eadba65776df085d301 100644 (file)
@@ -658,7 +658,8 @@ enum changelog_rec_type {
        CL_LAST
 };
 
-static inline const char *changelog_type2str(int type) {
+static inline const char *changelog_type2str(int type)
+{
        static const char *changelog_str[] = {
                "MARK",  "CREAT", "MKDIR", "HLINK", "SLINK", "MKNOD", "UNLNK",
                "RMDIR", "RENME", "RNMTO", "OPEN",  "CLOSE", "LYOUT", "TRUNC",
index 163fe0cd7f9aa84de19034df50e54a02b1e48c97..c1a9b819e95adf1d236cacf4899f1795f331de18 100644 (file)
@@ -653,7 +653,8 @@ static inline void cl_env_do_detach(struct cl_env *cle)
        cle->ce_owner = NULL;
 }
 
-static int cl_env_store_init(void) {
+static int cl_env_store_init(void)
+{
        cl_env_hash = cfs_hash_create("cl_env",
                                      HASH_CL_ENV_BITS, HASH_CL_ENV_BITS,
                                      HASH_CL_ENV_BKT_BITS, 0,