Commit 56ebc2e8 authored by Andreas Dilger's avatar Andreas Dilger Committed by Greg Kroah-Hartman

staging: lustre: libcfs: small alignment change for cfs_crypto_hash_*()

Change the aligment of some of the functions.
Signed-off-by: default avatarAndreas Dilger <andreas.dilger@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5053
Reviewed-on: http://review.whamcloud.com/9990Reviewed-by: default avatarBob Glossman <bob.glossman@intel.com>
Reviewed-by: default avatarJames Simmons <uja.ornl@gmail.com>
Reviewed-by: default avatarOleg Drokin <oleg.drokin@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 24a4e1ec
...@@ -75,7 +75,7 @@ static struct cfs_crypto_hash_type hash_types[] = { ...@@ -75,7 +75,7 @@ static struct cfs_crypto_hash_type hash_types[] = {
* \retval NULL for unknown algorithm identifier * \retval NULL for unknown algorithm identifier
*/ */
static inline const struct cfs_crypto_hash_type * static inline const struct cfs_crypto_hash_type *
cfs_crypto_hash_type(unsigned char hash_alg) cfs_crypto_hash_type(unsigned char hash_alg)
{ {
struct cfs_crypto_hash_type *ht; struct cfs_crypto_hash_type *ht;
...@@ -95,7 +95,8 @@ static inline const struct cfs_crypto_hash_type * ...@@ -95,7 +95,8 @@ static inline const struct cfs_crypto_hash_type *
* \retval string name of known hash algorithm * \retval string name of known hash algorithm
* \retval "unknown" if hash algorithm is unknown * \retval "unknown" if hash algorithm is unknown
*/ */
static inline const char *cfs_crypto_hash_name(unsigned char hash_alg) static inline const char *
cfs_crypto_hash_name(unsigned char hash_alg)
{ {
const struct cfs_crypto_hash_type *ht; const struct cfs_crypto_hash_type *ht;
...@@ -147,9 +148,9 @@ int cfs_crypto_hash_digest(unsigned char hash_alg, ...@@ -147,9 +148,9 @@ int cfs_crypto_hash_digest(unsigned char hash_alg,
/* cfs crypto hash descriptor */ /* cfs crypto hash descriptor */
struct cfs_crypto_hash_desc; struct cfs_crypto_hash_desc;
struct cfs_crypto_hash_desc* struct cfs_crypto_hash_desc *
cfs_crypto_hash_init(unsigned char hash_alg, cfs_crypto_hash_init(unsigned char hash_alg,
unsigned char *key, unsigned int key_len); unsigned char *key, unsigned int key_len);
int cfs_crypto_hash_update_page(struct cfs_crypto_hash_desc *desc, int cfs_crypto_hash_update_page(struct cfs_crypto_hash_desc *desc,
struct page *page, unsigned int offset, struct page *page, unsigned int offset,
unsigned int len); unsigned int len);
......
...@@ -193,8 +193,8 @@ EXPORT_SYMBOL(cfs_crypto_hash_digest); ...@@ -193,8 +193,8 @@ EXPORT_SYMBOL(cfs_crypto_hash_digest);
* \retval ERR_PTR(errno) in case of error * \retval ERR_PTR(errno) in case of error
*/ */
struct cfs_crypto_hash_desc * struct cfs_crypto_hash_desc *
cfs_crypto_hash_init(unsigned char hash_alg, cfs_crypto_hash_init(unsigned char hash_alg,
unsigned char *key, unsigned int key_len) unsigned char *key, unsigned int key_len)
{ {
struct ahash_request *req; struct ahash_request *req;
int err; int err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment