staging: lustre: fix TRAILING_STATEMENTS checkpatch errors
authorMike Rapoport <mike.rapoport@gmail.com>
Sat, 12 Sep 2015 16:20:03 +0000 (19:20 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Sep 2015 15:50:44 +0000 (08:50 -0700)
Move trailing statements to be on the next line to fix the
TRAILING_STATEMENTS checkpatch error.

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/obd_support.h
drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c
drivers/staging/lustre/lustre/llite/lproc_llite.c
drivers/staging/lustre/lustre/lmv/lmv_obd.c
drivers/staging/lustre/lustre/obdclass/obd_mount.c
drivers/staging/lustre/lustre/ptlrpc/ptlrpc_module.c

index 3986ca4cddaa77fbdb19123a9e224adbb09cd038..30f22d97efb3626f85ab25c8cb5773f621a53c7f 100644 (file)
@@ -655,8 +655,10 @@ do {                                                                         \
 #endif
 
 #ifdef POISON_BULK
-#define POISON_PAGE(page, val) do { memset(kmap(page), val, PAGE_CACHE_SIZE);   \
-                                   kunmap(page); } while (0)
+#define POISON_PAGE(page, val) do {              \
+       memset(kmap(page), val, PAGE_CACHE_SIZE); \
+       kunmap(page);                             \
+} while (0)
 #else
 #define POISON_PAGE(page, val) do { } while (0)
 #endif
index f9262243f9359aa2b9ae0ddd00a9f5c0937cbe6f..209736454d06e575009fe066b2eadb46c183d7d7 100644 (file)
@@ -699,7 +699,8 @@ cfs_cpt_num_estimate(void)
        /* generate reasonable number of CPU partitions based on total number
         * of CPUs, Preferred N should be power2 and match this condition:
         * 2 * (N - 1)^2 < NCPUS <= 2 * N^2 */
-       for (ncpt = 2; ncpu > 2 * ncpt * ncpt; ncpt <<= 1) {}
+       for (ncpt = 2; ncpu > 2 * ncpt * ncpt; ncpt <<= 1)
+               ;
 
        if (ncpt <= nnode) { /* fat numa system */
                while (nnode > ncpt)
index 2fc24a946590d72996d57594228b920839c51126..427a34b00e8504333ecb5bf4196c148731138e8f 100644 (file)
@@ -1326,7 +1326,8 @@ void ll_rw_stats_tally(struct ll_sb_info *sbi, pid_t pid,
        }
 
        for (i = 0; (count >= (1 << LL_HIST_START << i)) &&
-            (i < (LL_HIST_MAX - 1)); i++);
+            (i < (LL_HIST_MAX - 1)); i++)
+               ;
        if (rw == 0) {
                io_extents->pp_extents[cur].pp_r_hist.oh_buckets[i]++;
                io_extents->pp_extents[LL_PROCESS_HIST_MAX].pp_r_hist.oh_buckets[i]++;
index f8146acd883d8bf29e689cdbefeb7666c81c0b6e..0fc0b61d9201e63ac27ca0fd90f40e600e679870 100644 (file)
@@ -2099,7 +2099,8 @@ static void lmv_adjust_dirpages(struct page **pages, int ncfspgs, int nlupgs)
                while (--nlupgs > 0) {
                        ent = lu_dirent_start(dp);
                        for (end_dirent = ent; ent != NULL;
-                            end_dirent = ent, ent = lu_dirent_next(ent));
+                            end_dirent = ent, ent = lu_dirent_next(ent))
+                               ;
 
                        /* Advance dp to next lu_dirpage. */
                        dp = (struct lu_dirpage *)((char *)dp + LU_PAGE_SIZE);
index 7c5bab377f5cc27b4dfb30f53b6fb7157b9a40df..3c66dbdbf076f45c6dd37fdd8b697ef857cd408a 100644 (file)
@@ -929,7 +929,8 @@ static int lmd_parse_mgs(struct lustre_mount_data *lmd, char **ptr)
        int   oldlen = 0;
 
        /* Find end of nidlist */
-       while (class_parse_nid_quiet(tail, &nid, &tail) == 0) {}
+       while (class_parse_nid_quiet(tail, &nid, &tail) == 0)
+               ;
        length = tail - *ptr;
        if (length == 0) {
                LCONSOLE_ERROR_MSG(0x159, "Can't parse NID '%s'\n", *ptr);
@@ -1117,7 +1118,8 @@ static int lmd_parse(char *options, struct lustre_mount_data *lmd)
                ++s1;
                lmd->lmd_flags |= LMD_FLG_CLIENT;
                /* Remove leading /s from fsname */
-               while (*++s1 == '/') ;
+               while (*++s1 == '/')
+                       ;
                /* Freed in lustre_free_lsi */
                lmd->lmd_profile = kasprintf(GFP_NOFS, "%s-client", s1);
                if (!lmd->lmd_profile)
index ae99180d6036f10647d0b4dbbf8b7e3bdbcb1589..9985fb61f63019a1f0656981a036b1dae861f1e5 100644 (file)
@@ -143,7 +143,8 @@ cleanup:
                ptlrpc_hr_fini();
                req_layout_fini();
                /* Fall through */
-       default: ;
+       default:
+               ;
        }
 
        return rc;