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


Groups > linux.kernel > #1192399

[PATCH 2/2] staging: lustre: fixed 80-char rule

From Mario Bambagini <mario.bambagini@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 2/2] staging: lustre: fixed 80-char rule
Date 2015-07-25 18:30 +0200
Message-ID <pQauK-1mf-3@gated-at.bofh.it> (permalink)
References <pQauK-1mf-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


This patch fixes 2 lines longer than 80 chars

The first one is a function whose argument has been moved to next line.
The second one is a comment split on two lines

The script checkpatch does not complain anymore

Signed-off-by: Mario Bambagini <mario.bambagini@gmail.com>
---
 drivers/staging/lustre/lustre/llite/llite_capa.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/lustre/lustre/llite/llite_capa.c b/drivers/staging/lustre/lustre/llite/llite_capa.c
index 119f017..1f72066 100644
--- a/drivers/staging/lustre/lustre/llite/llite_capa.c
+++ b/drivers/staging/lustre/lustre/llite/llite_capa.c
@@ -70,7 +70,8 @@ static unsigned long long ll_capa_renewal_retries;
 
 static int ll_update_capa(struct obd_capa *ocapa, struct lustre_capa *capa);
 
-static inline void update_capa_timer(struct obd_capa *ocapa, unsigned long expiry)
+static inline void update_capa_timer(struct obd_capa *ocapa,
+							   unsigned long expiry)
 {
 	if (time_before(expiry, ll_capa_timer.expires) ||
 	    !timer_pending(&ll_capa_timer)) {
@@ -165,7 +166,8 @@ static void ll_delete_capa(struct obd_capa *ocapa)
 /* three places where client capa is deleted:
  * 1. capa_thread_main(), main place to delete expired capa.
  * 2. ll_clear_inode_capas() in ll_clear_inode().
- * 3. ll_truncate_free_capa() delete truncate capa explicitly in ll_setattr_ost().
+ * 3. ll_truncate_free_capa() delete truncate capa explicitly in
+ *    ll_setattr_ost().
  */
 static int capa_thread_main(void *unused)
 {
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

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


Thread

[PATCH 1/2] staging: lustre: fixed comments without */ on a separate line Mario Bambagini <mario.bambagini@gmail.com> - 2015-07-25 18:30 +0200
  [PATCH 2/2] staging: lustre: fixed 80-char rule Mario Bambagini <mario.bambagini@gmail.com> - 2015-07-25 18:30 +0200
    Re: [PATCH 2/2] staging: lustre: fixed 80-char rule Dan Carpenter <dan.carpenter@oracle.com> - 2015-07-26 21:20 +0200
      [RFC PATCH] checkpatch: Make --strict the default for  drivers/staging files and patches Joe Perches <joe@perches.com> - 2015-07-26 21:50 +0200
        Re: [RFC PATCH] checkpatch: Make --strict the default for  drivers/staging files and patches Dan Carpenter <dan.carpenter@oracle.com> - 2015-07-27 11:30 +0200

csiph-web