Whamcloud - gitweb
LU-2838 build: Syntax issues in sources
authorDmitry Eremin <dmitry.eremin@intel.com>
Thu, 14 Mar 2013 11:47:21 +0000 (15:47 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 1 May 2013 04:41:36 +0000 (00:41 -0400)
Just fix syntax issues in source code.

Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com>
Change-Id: I822b943f31785e18ca09125466a9b21d7f7ce558
Reviewed-on: http://review.whamcloud.com/5476
Reviewed-by: John Hammond <johnlockwoodhammond@gmail.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Faccini Bruno <bruno.faccini@intel.com>
libcfs/libcfs/darwin/darwin-mem.c
libcfs/libcfs/linux/linux-crypto.c
libcfs/libcfs/linux/linux-proc.c

index 59766f7..6d57c25 100644 (file)
@@ -374,7 +374,7 @@ void *cfs_kmap(cfs_page_t *pg)
 void cfs_kunmap(cfs_page_t *pg)
 {
         LASSERT(page_type_is_valid(pg));
-        return page_ops[pg->type]->page_unmap(pg);
+        page_ops[pg->type]->page_unmap(pg);
 }
 
 void xnu_page_ops_register(int type, struct xnu_page_ops *ops)
index f9d0c4e..ff93081 100644 (file)
@@ -357,7 +357,7 @@ int cfs_crypto_register(void)
        crc32pclmul = cfs_crypto_crc32_pclmul_register();
 #endif
 
-       /* check all algorithms and do perfermance test */
+       /* check all algorithms and do performance test */
        cfs_crypto_test_hashes();
        return 0;
 }
index 684423b..874347e 100644 (file)
@@ -584,9 +584,11 @@ static cfs_sysctl_table_t top_table[] = {
                 INIT_CTL_NAME(0)
         }
 };
+#endif
 
 int insert_proc(void)
 {
+#ifdef CONFIG_SYSCTL
         if (lnet_table_header == NULL)
                 lnet_table_header = cfs_register_sysctl_table(top_table, 0);
 #endif