drivers: staging: lustre: Fix that open brace { should be on the previous line errors
authorGreg Donald <gdonald@gmail.com>
Fri, 22 Aug 2014 14:06:15 +0000 (09:06 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Aug 2014 19:01:26 +0000 (12:01 -0700)
Fix checkpatch.pl that open brace { should be on the previous line errors

Signed-off-by: Greg Donald <gdonald@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/klnds/socklnd/socklnd_cb.c
drivers/staging/lustre/lnet/klnds/socklnd/socklnd_proto.c
drivers/staging/lustre/lnet/lnet/api-ni.c
drivers/staging/lustre/lnet/selftest/framework.c
drivers/staging/lustre/lustre/include/lustre/lustre_user.h
drivers/staging/lustre/lustre/ldlm/ldlm_pool.c
drivers/staging/lustre/lustre/ldlm/ldlm_request.c
drivers/staging/lustre/lustre/ldlm/ldlm_resource.c
drivers/staging/lustre/lustre/libcfs/hash.c
drivers/staging/lustre/lustre/llite/super25.c
drivers/staging/lustre/lustre/lmv/lmv_obd.c

index e98863134164c8922ef69ccb41c53d4ca927c565..b82ba996b2a16caf2690a26d736479285583fc9a 100644 (file)
@@ -1675,8 +1675,7 @@ ksocknal_send_hello (lnet_ni_t *ni, ksock_conn_t *conn,
 static int
 ksocknal_invert_type(int type)
 {
-       switch (type)
-       {
+       switch (type) {
        case SOCKLND_CONN_ANY:
        case SOCKLND_CONN_CONTROL:
                return type;
index 050a58d08809a25d3ef251348310813e737f9e06..a60bfc99cd1676cb2c754c7bb96b2c19dd05f251 100644 (file)
@@ -756,8 +756,7 @@ ksocknal_unpack_msg_v2(ksock_msg_t *msg)
        return;  /* Do nothing */
 }
 
-ksock_proto_t  ksocknal_protocol_v1x =
-{
+ksock_proto_t  ksocknal_protocol_v1x = {
        .pro_version        = KSOCK_PROTO_V1,
        .pro_send_hello  = ksocknal_send_hello_v1,
        .pro_recv_hello  = ksocknal_recv_hello_v1,
@@ -770,8 +769,7 @@ ksock_proto_t  ksocknal_protocol_v1x =
        .pro_match_tx      = ksocknal_match_tx
 };
 
-ksock_proto_t  ksocknal_protocol_v2x =
-{
+ksock_proto_t  ksocknal_protocol_v2x = {
        .pro_version        = KSOCK_PROTO_V2,
        .pro_send_hello  = ksocknal_send_hello_v2,
        .pro_recv_hello  = ksocknal_recv_hello_v2,
@@ -784,8 +782,7 @@ ksock_proto_t  ksocknal_protocol_v2x =
        .pro_match_tx      = ksocknal_match_tx
 };
 
-ksock_proto_t  ksocknal_protocol_v3x =
-{
+ksock_proto_t  ksocknal_protocol_v3x = {
        .pro_version        = KSOCK_PROTO_V3,
        .pro_send_hello  = ksocknal_send_hello_v2,
        .pro_recv_hello  = ksocknal_recv_hello_v2,
index b28734a76facdd269a25784d6f1c94b887a65bd3..20390836685d7cf0e4d8c20d9f0dfa9bdf88fc02 100644 (file)
@@ -384,8 +384,7 @@ lnet_freelist_init (lnet_freelist_t *fl, int n, int size)
        fl->fl_nobjs = n;
        fl->fl_objsize = size;
 
-       do
-       {
+       do {
                memset (space, 0, size);
                list_add ((struct list_head *)space, &fl->fl_list);
                space += size;
index d01689ac28acd00accdae4d742090be9260d0928..df04ab7de835822759dbc6e1f70fcb80b23b2cc5 100644 (file)
@@ -1592,8 +1592,7 @@ sfw_post_rpc (srpc_client_rpc_t *rpc)
        return;
 }
 
-static srpc_service_t sfw_services[] =
-{
+static srpc_service_t sfw_services[] = {
        {
                /* sv_id */    SRPC_SERVICE_DEBUG,
                /* sv_name */  "debug",
index 5a313049e8797db79ded0c0fe1049b51e11d0041..28a6a832ea133f1ae0090787d6dc8b08809ffb9a 100644 (file)
@@ -1074,8 +1074,7 @@ static inline char *hai_dump_data_field(struct hsm_action_item *hai,
        ptr = buffer;
        sz = len;
        data_len = hai->hai_len - sizeof(*hai);
-       for (i = 0 ; (i < data_len) && (sz > 0) ; i++)
-       {
+       for (i = 0 ; (i < data_len) && (sz > 0) ; i++) {
                int cnt;
 
                cnt = snprintf(ptr, sz, "%.2X",
index db36b3f46e493acd6b9034750dbe9163b6c29a3f..150b44de0f64e1b0e10afb657550cc10f848be2e 100644 (file)
@@ -1168,8 +1168,7 @@ int ldlm_pools_recalc(ldlm_side_t client)
                 */
                mutex_lock(ldlm_namespace_lock(client));
                list_for_each_entry(ns, ldlm_namespace_list(client),
-                                       ns_list_chain)
-               {
+                                       ns_list_chain) {
                        if (ns->ns_appetite != LDLM_NAMESPACE_MODEST)
                                continue;
 
index 37b86082eb731080d93d267ff2b38ab12ed864bf..7fd4d67a8b52003d5538df6cb0f0c864b1dab611 100644 (file)
@@ -1248,8 +1248,7 @@ int ldlm_cli_update_pool(struct ptlrpc_request *req)
        __u32 new_limit;
 
        if (unlikely(!req->rq_import || !req->rq_import->imp_obd ||
-                    !imp_connect_lru_resize(req->rq_import)))
-       {
+                    !imp_connect_lru_resize(req->rq_import))) {
                /*
                 * Do nothing for corner cases.
                 */
index efd45e51341666d138bc771bee64fb610d0fc38a..8fec984fb5610671c2f98c7c8ae4dabadd34239b 100644 (file)
@@ -511,8 +511,7 @@ typedef struct {
        cfs_hash_ops_t *nsd_hops;
 } ldlm_ns_hash_def_t;
 
-ldlm_ns_hash_def_t ldlm_ns_hash_defs[] =
-{
+ldlm_ns_hash_def_t ldlm_ns_hash_defs[] = {
        {
                .nsd_type       = LDLM_NS_TYPE_MDC,
                .nsd_bkt_bits   = 11,
index 8ef1deb59d4a3d3abe6f70862e43a307604d4133..4228384da1fe84b0fcd92841c48a7a0c189e5574 100644 (file)
@@ -155,8 +155,7 @@ cfs_hash_rw_unlock(union cfs_hash_lock *lock, int exclusive)
 }
 
 /** No lock hash */
-static cfs_hash_lock_ops_t cfs_hash_nl_lops =
-{
+static cfs_hash_lock_ops_t cfs_hash_nl_lops = {
        .hs_lock        = cfs_hash_nl_lock,
        .hs_unlock      = cfs_hash_nl_unlock,
        .hs_bkt_lock    = cfs_hash_nl_lock,
@@ -164,8 +163,7 @@ static cfs_hash_lock_ops_t cfs_hash_nl_lops =
 };
 
 /** no bucket lock, one spinlock to protect everything */
-static cfs_hash_lock_ops_t cfs_hash_nbl_lops =
-{
+static cfs_hash_lock_ops_t cfs_hash_nbl_lops = {
        .hs_lock        = cfs_hash_spin_lock,
        .hs_unlock      = cfs_hash_spin_unlock,
        .hs_bkt_lock    = cfs_hash_nl_lock,
@@ -173,8 +171,7 @@ static cfs_hash_lock_ops_t cfs_hash_nbl_lops =
 };
 
 /** spin bucket lock, rehash is enabled */
-static cfs_hash_lock_ops_t cfs_hash_bkt_spin_lops =
-{
+static cfs_hash_lock_ops_t cfs_hash_bkt_spin_lops = {
        .hs_lock        = cfs_hash_rw_lock,
        .hs_unlock      = cfs_hash_rw_unlock,
        .hs_bkt_lock    = cfs_hash_spin_lock,
@@ -182,8 +179,7 @@ static cfs_hash_lock_ops_t cfs_hash_bkt_spin_lops =
 };
 
 /** rw bucket lock, rehash is enabled */
-static cfs_hash_lock_ops_t cfs_hash_bkt_rw_lops =
-{
+static cfs_hash_lock_ops_t cfs_hash_bkt_rw_lops = {
        .hs_lock        = cfs_hash_rw_lock,
        .hs_unlock      = cfs_hash_rw_unlock,
        .hs_bkt_lock    = cfs_hash_rw_lock,
@@ -191,8 +187,7 @@ static cfs_hash_lock_ops_t cfs_hash_bkt_rw_lops =
 };
 
 /** spin bucket lock, rehash is disabled */
-static cfs_hash_lock_ops_t cfs_hash_nr_bkt_spin_lops =
-{
+static cfs_hash_lock_ops_t cfs_hash_nr_bkt_spin_lops = {
        .hs_lock        = cfs_hash_nl_lock,
        .hs_unlock      = cfs_hash_nl_unlock,
        .hs_bkt_lock    = cfs_hash_spin_lock,
@@ -200,8 +195,7 @@ static cfs_hash_lock_ops_t cfs_hash_nr_bkt_spin_lops =
 };
 
 /** rw bucket lock, rehash is disabled */
-static cfs_hash_lock_ops_t cfs_hash_nr_bkt_rw_lops =
-{
+static cfs_hash_lock_ops_t cfs_hash_nr_bkt_rw_lops = {
        .hs_lock        = cfs_hash_nl_lock,
        .hs_unlock      = cfs_hash_nl_unlock,
        .hs_bkt_lock    = cfs_hash_rw_lock,
index 078c0e95f4cf1b9b3a2acfa61414d2ab5cd2d201..e61dbed120a32a30c4222c41ead6eb21d6e5c5f8 100644 (file)
@@ -88,8 +88,7 @@ static void ll_destroy_inodecache(void)
 }
 
 /* exported operations */
-struct super_operations lustre_super_operations =
-{
+struct super_operations lustre_super_operations = {
        .alloc_inode   = ll_alloc_inode,
        .destroy_inode = ll_destroy_inode,
        .evict_inode   = ll_delete_inode,
index a48818a890ebe532babb712f83f6b30de9dc5691..6038c53a7ec712d7ea968171a6b534d8c660ab13 100644 (file)
@@ -2486,8 +2486,7 @@ int lmv_unpackmd(struct obd_export *exp, struct lov_stripe_md **lsmp,
 
        if (mea->mea_magic == MEA_MAGIC_LAST_CHAR ||
            mea->mea_magic == MEA_MAGIC_ALL_CHARS ||
-           mea->mea_magic == MEA_MAGIC_HASH_SEGMENT)
-       {
+           mea->mea_magic == MEA_MAGIC_HASH_SEGMENT) {
                magic = le32_to_cpu(mea->mea_magic);
        } else {
                /*