]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: lustre: make include/linux/libcfs/linux/linux-crypto.h private
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Jul 2014 06:12:04 +0000 (23:12 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Jul 2014 06:12:04 +0000 (23:12 -0700)
There are only 2 functions that are actually called from it, so move it
to the local place where it is needed, no need for it to be "global" for
the rest of lustre to see it.

Also remove the unneeded EXPORT_SYMBOL() markings for these functions,
as no one else calls them.

Cc: Andreas Dilger <andreas.dilger@intel.com>
Cc: Oleg Drokin <oleg.drokin@intel.com>
Cc: hpdd-discuss <hpdd-discuss@lists.01.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/libcfs/linux/linux-crypto-adler.c
drivers/staging/lustre/lustre/libcfs/linux/linux-crypto.c
drivers/staging/lustre/lustre/libcfs/linux/linux-crypto.h [moved from drivers/staging/lustre/include/linux/libcfs/linux/linux-crypto.h with 72% similarity]

index 20b2d61d9ff27621b1a2a3ad4a7a5b85bfea8396..5e185fa5942ad611ce79fa274310e9ae883506c5 100644 (file)
 #include <linux/module.h>
 #include <linux/zutil.h>
 #include <crypto/internal/hash.h>
-
+#include "linux-crypto.h"
 
 #define CHKSUM_BLOCK_SIZE      1
 #define CHKSUM_DIGEST_SIZE     4
 
-
 static u32 __adler32(u32 cksum, unsigned char const *p, size_t len)
 {
        return zlib_adler32(cksum, p, len);
@@ -135,10 +134,8 @@ int cfs_crypto_adler32_register(void)
 {
        return crypto_register_shash(&alg);
 }
-EXPORT_SYMBOL(cfs_crypto_adler32_register);
 
 void cfs_crypto_adler32_unregister(void)
 {
        crypto_unregister_shash(&alg);
 }
-EXPORT_SYMBOL(cfs_crypto_adler32_unregister);
index 048a4f28f900b007a0041318e53beb8823fc2d99..aa3fffed1519fa85441435361fe95320db53190f 100644 (file)
@@ -30,7 +30,7 @@
 #include <linux/crypto.h>
 #include <linux/scatterlist.h>
 #include "../../../include/linux/libcfs/libcfs.h"
-#include "../../../include/linux/libcfs/linux/linux-crypto.h"
+#include "linux-crypto.h"
 /**
  *  Array of  hash algorithm speed in MByte per second
  */
similarity index 72%
rename from drivers/staging/lustre/include/linux/libcfs/linux/linux-crypto.h
rename to drivers/staging/lustre/lustre/libcfs/linux/linux-crypto.h
index 97c771cf691f2597f9a098a86b97e6d7470cbd2e..18e8cd4d8758c2d02e1e3dbde398b5a15d88d805 100644 (file)
  * GPL HEADER END
  */
 
-/*
- * Copyright 2012 Xyratex Technology Limited
- */
-
-/**
- * Linux crypto hash specific functions.
- */
-
-/**
- * Functions for start/stop shash CRC32 algorithm.
- */
-int cfs_crypto_crc32_register(void);
-void cfs_crypto_crc32_unregister(void);
-
 /**
  * Functions for start/stop shash adler32 algorithm.
  */
 int cfs_crypto_adler32_register(void);
 void cfs_crypto_adler32_unregister(void);
-
-/**
- * Functions for start/stop shash crc32 pclmulqdq
- */
-int cfs_crypto_crc32_pclmul_register(void);
-void cfs_crypto_crc32_pclmul_unregister(void);