Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1694173

[PATCH] Staging: lustre: Place the open brace on previous line.

Path csiph.com!feeder.erje.net!2.eu.feeder.erje.net!newsfeed.datemas.de!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Shreeya Patel <shreeya.patel23498@gmail.com>
Newsgroups linux.kernel
Subject [PATCH] Staging: lustre: Place the open brace on previous line.
Date Sat, 22 Jul 2017 19:00:01 +0200
Message-ID <u65UZ-4mL-1@gated-at.bofh.it> (permalink)
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=86eW0HwNr4voXAAgULQb0rmS6B3Y8ROy71sUdZwWyBk=; b=thGqVVC+duzQEL5sAEAWqbRR6J0RtmvMY+KqlcYgYj+HxKvJ1qU4BcbahkALYomZG+ IPEI3LMK+qDEjbn78iy63Hz0dA57smP8vNS8tzkQEoT0zFfUNCV8EVL5L+kMjwuT7FrS AYWtkDvdPn5rSkvDss9bvZ0GYyUR14vEHxpYcHEA6fvSltuTcJHiz9BweFoG9KxzSiWc FTEi/8SZ9PVntD/VXT7mE7NnNcaqSpNFIuQrrPXMCMObzHrnyiuw2aWdqTmOOKsvf7bu 4d7/j/QhArTeETMdj96AbvhkRXacIMQ8MkdIrVH5SgGS5SMYBLy0Knm5vnB6Z0gtRqDe pepQ==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=86eW0HwNr4voXAAgULQb0rmS6B3Y8ROy71sUdZwWyBk=; b=AYgricOllXlKnE5IGV1OxyIKa8KYdcGEOoU9M++Asu+J8ktMnXL/Pq5/lmicVB07Oy WLGH74sbptmGJnzehmEIs0x6bTmvxqTJsRJuX+apN6TgxJcka9wHk6IwKbJmNxsEruPZ 72O8Coc3Onyd1vQssmA4jZSTvkfOMz0fEYXZKJcYqH4F2dvl+v+igFRggX10Fv2MIM5H bP5mcjA/7DFOVOJTgysG0etKWN+QfVPqxf69vnvcUrzp4o7pwJmgSerzTFprb0bCjitA bCoqgHZEGZoDKBVEPknV2p8vv1hG77hmRstwaWCa8v3tK4j8S5L/Kt+55UcOXXr+07so f6ng==
X-Gm-Message-State AIVw111I9sZG7wwVk4FhBUdpESroqy8a7WRFRS61l2oS7IwJ4a7a7ZKG IaorL/p7z8DsAw==
X-Received by 10.99.48.7 with SMTP id w7mr11244050pgw.244.1500742618485; Sat, 22 Jul 2017 09:56:58 -0700 (PDT)
X-Mailer git-send-email 2.7.4
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 96
Organization linux.* mail to news gateway
X-Original-Cc Shreeya Patel <shreeya.patel23498@gmail.com>
X-Original-Date Sat, 22 Jul 2017 22:26:41 +0530
X-Original-Message-ID <1500742601-10733-1-git-send-email-shreeya.patel23498@gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1694173

Show key headers only | View raw


Remove errors by placing the open braces on previous line.
This saves the vertical space of the code.

Problem found by checkpatch.

Signed-off-by: Shreeya Patel <shreeya.patel23498@gmail.com>
---
 drivers/staging/lustre/lnet/libcfs/hash.c | 24 ++++++++----------------
 1 file changed, 8 insertions(+), 16 deletions(-)

diff --git a/drivers/staging/lustre/lnet/libcfs/hash.c b/drivers/staging/lustre/lnet/libcfs/hash.c
index 5c2ce2e..a255e04 100644
--- a/drivers/staging/lustre/lnet/libcfs/hash.c
+++ b/drivers/staging/lustre/lnet/libcfs/hash.c
@@ -1348,8 +1348,7 @@ cfs_hash_lookup(struct cfs_hash *hs, const void *key)
 EXPORT_SYMBOL(cfs_hash_lookup);
 
 static void
-cfs_hash_for_each_enter(struct cfs_hash *hs)
-{
+cfs_hash_for_each_enter(struct cfs_hash *hs) {
 	LASSERT(!cfs_hash_is_exiting(hs));
 
 	if (!cfs_hash_with_rehash(hs))
@@ -1375,8 +1374,7 @@ cfs_hash_for_each_enter(struct cfs_hash *hs)
 }
 
 static void
-cfs_hash_for_each_exit(struct cfs_hash *hs)
-{
+cfs_hash_for_each_exit(struct cfs_hash *hs) {
 	int remained;
 	int bits;
 
@@ -1407,8 +1405,7 @@ cfs_hash_for_each_exit(struct cfs_hash *hs)
  */
 static u64
 cfs_hash_for_each_tight(struct cfs_hash *hs, cfs_hash_for_each_cb_t func,
-			void *data, int remove_safe)
-{
+			void *data, int remove_safe) {
 	struct hlist_node *hnode;
 	struct hlist_node *pos;
 	struct cfs_hash_bd bd;
@@ -1501,8 +1498,7 @@ EXPORT_SYMBOL(cfs_hash_for_each);
 
 void
 cfs_hash_for_each_safe(struct cfs_hash *hs, cfs_hash_for_each_cb_t func,
-		       void *data)
-{
+		       void *data) {
 	cfs_hash_for_each_tight(hs, func, data, 1);
 }
 EXPORT_SYMBOL(cfs_hash_for_each_safe);
@@ -1551,8 +1547,7 @@ EXPORT_SYMBOL(cfs_hash_size_get);
  */
 static int
 cfs_hash_for_each_relax(struct cfs_hash *hs, cfs_hash_for_each_cb_t func,
-			void *data, int start)
-{
+			void *data, int start) {
 	struct hlist_node *hnode;
 	struct hlist_node *tmp;
 	struct cfs_hash_bd bd;
@@ -1629,8 +1624,7 @@ cfs_hash_for_each_relax(struct cfs_hash *hs, cfs_hash_for_each_cb_t func,
 
 int
 cfs_hash_for_each_nolock(struct cfs_hash *hs, cfs_hash_for_each_cb_t func,
-			 void *data, int start)
-{
+			 void *data, int start) {
 	if (cfs_hash_with_no_lock(hs) ||
 	    cfs_hash_with_rehash_key(hs) ||
 	    !cfs_hash_with_no_itemref(hs))
@@ -1661,8 +1655,7 @@ EXPORT_SYMBOL(cfs_hash_for_each_nolock);
  */
 int
 cfs_hash_for_each_empty(struct cfs_hash *hs, cfs_hash_for_each_cb_t func,
-			void *data)
-{
+			void *data) {
 	unsigned int i = 0;
 
 	if (cfs_hash_with_no_lock(hs))
@@ -1718,8 +1711,7 @@ EXPORT_SYMBOL(cfs_hash_hlist_for_each);
  */
 void
 cfs_hash_for_each_key(struct cfs_hash *hs, const void *key,
-		      cfs_hash_for_each_cb_t func, void *data)
-{
+		      cfs_hash_for_each_cb_t func, void *data) {
 	struct hlist_node *hnode;
 	struct cfs_hash_bd bds[2];
 	unsigned int i;
-- 
2.7.4

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH] Staging: lustre: Place the open brace on previous line. Shreeya Patel <shreeya.patel23498@gmail.com> - 2017-07-22 19:00 +0200
  Re: [PATCH] Staging: lustre: Place the open brace on previous line. Joe Perches <joe@perches.com> - 2017-07-22 19:10 +0200

csiph-web