RDMA/core: Correct format of block comments
authorWenpeng Liang <liangwenpeng@huawei.com>
Wed, 7 Apr 2021 08:15:52 +0000 (16:15 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 12 Apr 2021 17:56:51 +0000 (14:56 -0300)
Block comments should not use a trailing */ on a separate line and every
line of a block comment should start with an '*'.

Link: https://lore.kernel.org/r/1617783353-48249-7-git-send-email-liweihang@huawei.com
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/cm.c
drivers/infiniband/core/iwpm_msg.c
drivers/infiniband/core/mad.c
drivers/infiniband/core/verbs.c

index e6db2e40a783e0b66b200ae875bcfb6398fccd34..1b884c4313f840e4d74fce8591f53577895fe948 100644 (file)
@@ -255,7 +255,8 @@ struct cm_id_private {
        struct completion comp;
        refcount_t refcount;
        /* Number of clients sharing this ib_cm_id. Only valid for listeners.
-        * Protected by the cm.lock spinlock. */
+        * Protected by the cm.lock spinlock.
+        */
        int listen_sharecount;
        struct rcu_head rcu;
 
index 30a0ff76b3327576bf050eef3475d0b7956d8b96..932b26f50d0328dcc6d1e52f4277934077598568 100644 (file)
@@ -528,7 +528,8 @@ add_mapping_response_exit:
 }
 
 /* netlink attribute policy for the response to add and query mapping request
- * and response with remote address info */
+ * and response with remote address info
+ */
 static const struct nla_policy resp_query_policy[IWPM_NLA_RQUERY_MAPPING_MAX] = {
        [IWPM_NLA_RQUERY_MAPPING_SEQ]     = { .type = NLA_U32 },
        [IWPM_NLA_RQUERY_LOCAL_ADDR]      = {
index 945ba5aaa8e67db773a7459962e6ceba6c5ff583..2081e4854fb026812206ed9461849de3e3ecf940 100644 (file)
@@ -1829,7 +1829,8 @@ static void ib_mad_complete_recv(struct ib_mad_agent_private *mad_agent_priv,
                                deref_mad_agent(mad_agent_priv);
                        } else {
                                /* not user rmpp, revert to normal behavior and
-                                * drop the mad */
+                                * drop the mad
+                                */
                                ib_free_recv_mad(mad_recv_wc);
                                deref_mad_agent(mad_agent_priv);
                                return;
index 9370926feb6ed5618b118ecd5295388909124092..5b6214b803a211915804d320c576e080cff500b8 100644 (file)
@@ -342,7 +342,8 @@ int ib_dealloc_pd_user(struct ib_pd *pd, struct ib_udata *udata)
        }
 
        /* uverbs manipulates usecnt with proper locking, while the kabi
-          requires the caller to guarantee we can't race here. */
+        * requires the caller to guarantee we can't race here.
+        */
        WARN_ON(atomic_read(&pd->usecnt));
 
        ret = pd->device->ops.dealloc_pd(pd, udata);