From dee6169ed10ee237e353fc22602b3036716c8819 Mon Sep 17 00:00:00 2001 From: Dmitry Eremin Date: Thu, 14 Mar 2013 15:47:21 +0400 Subject: [PATCH] LU-2838 build: Syntax issues in sources Just fix syntax issues in source code. Signed-off-by: Dmitry Eremin Change-Id: I822b943f31785e18ca09125466a9b21d7f7ce558 Reviewed-on: http://review.whamcloud.com/5476 Reviewed-by: John Hammond Tested-by: Hudson Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Faccini Bruno --- libcfs/libcfs/darwin/darwin-mem.c | 2 +- libcfs/libcfs/linux/linux-crypto.c | 2 +- libcfs/libcfs/linux/linux-proc.c | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libcfs/libcfs/darwin/darwin-mem.c b/libcfs/libcfs/darwin/darwin-mem.c index 59766f7..6d57c25 100644 --- a/libcfs/libcfs/darwin/darwin-mem.c +++ b/libcfs/libcfs/darwin/darwin-mem.c @@ -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) diff --git a/libcfs/libcfs/linux/linux-crypto.c b/libcfs/libcfs/linux/linux-crypto.c index f9d0c4e..ff93081 100644 --- a/libcfs/libcfs/linux/linux-crypto.c +++ b/libcfs/libcfs/linux/linux-crypto.c @@ -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; } diff --git a/libcfs/libcfs/linux/linux-proc.c b/libcfs/libcfs/linux/linux-proc.c index 684423b..874347e 100644 --- a/libcfs/libcfs/linux/linux-proc.c +++ b/libcfs/libcfs/linux/linux-proc.c @@ -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 -- 1.8.3.1