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 3986ca4..30f22d9 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 f926224..2097364 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 2fc24a9..427a34b 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 f8146ac..0fc0b61 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 7c5bab3..3c66dbd 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 ae99180..9985fb6 100644 (file)
@@ -143,7 +143,8 @@ cleanup:
                ptlrpc_hr_fini();
                req_layout_fini();
                /* Fall through */
-       default: ;
+       default:
+               ;
        }
 
        return rc;